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

PLZ HELP ME! In which year did the demolition of the Berlin Wall begin?
HURRRRRRRY!!!!!!! What are the three benefits the East Coast to West Coast promises?
what is the root word of circumspect
Jasmine. made a pitcher of lemonade. One pitcher contains 12 glasses of lemonade. After Jasmine serves 4 glasses of lemonade, how many more glasses, g, can she
How do you name somebody brainiest on brainly? This may sound silly but I don't know how to. The first person who explains it the best I will try to name them
Rome was not part of a nation in 1550 where was it located
2(5*3)+2(5*8)+2(3*8)
the 8th grade student council sold 180 tickets to its pancake breakfast fundraiser. 6 ounces of pancake mix makes enough pancake for 5 people. How many ounces o
What are the first 10 terms of a_n= 2 + 3n ??
Which measure is most closely connected to a nation's standard of living?counting the populationgross domestic productthe circular flow analysisGDP per capita