ondreduty9759 ondreduty9759
  • 03-12-2020
  • Computers and Technology
contestada

How would you change your prompt to have it display the current time (hour and minute) and the full path of the current directory?

Respuesta :

tgalligan92 tgalligan92
  • 03-12-2020

Answer:I tried using following command:

Code:

export PS1="$(date +%k:%M:%S) $ "

but it gave me a fixed time in prompt whereas my objective is to get the current time everytime.

Code:

$ export PS1="$(date +%k:%M:%S) $ "

17:42:42 $

17:42:42 $ date

Tue Oct  2 17:42:54 PDT 2012

17:42:42 $

Explanation:

Answer Link

Otras preguntas

15. Seven days ago, the gas tank on Rosa's car was filled with 20 gallons of gasoline. Today there are 6 gallons of gasoline. a. What integer represents the cha
Which is the smallest part of an element that retains all the properties of the element? A. Atom B. Proton C. Neutron D. Electron
Which equation is represented by the graph shown below?
Solve 9(a + 2b) + c a = 3 b = 2 c = 1
how did the Cherokee get their name?
A. 1/14 B. 3/14 C. 11/3 D. 14/11
Roz bought 3 dozen bagels and a $0.69 orange juice. She paid $7.89. How much was one bagel ?
The Plastic Flowerpots Company has two manufacturing departments, molding and packaging. At the beginning of the month, the molding department has 2,000 units i
Missy ordered french toast and she plans to leave a $7.00 tip to cover everyone. If she pays with a $20.00 bill, how much change should she receive?​
Solve the equation 12(16x – 6) = 2.