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

The Universal Product Code (UPC) on most grocery items contains a zero that is printedto the left of the bar code and 10 digits that are printed in two groups o
There were 8 roses in the vase. Sally cut some more roses from her flower garden. There are now 11 roses in the vase. How many roses did she cut? Which operatio
I need help please and thank you
What shows that religion was important in the life of Roman families
And so the king sent for his daughter, lying that she was to be married to ___________________.
Pericles created the....How and why?Why did Sparta decide to initiate (start) thewar?Describe the Spartan strategy to win the war.Describe the Spartan strategy
How are graphs and equations related
Please help! Please help!
Does a jar of honey contain disaccharides
what does is losing her mom teach chow about grief​