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

Which achievement was Giovanni Caboto, also known as John Cabot, known for? A. He reached North America before Columbus but was unable to prove that he had foun
Algebra. View the picture and help please..
What number is .72 more than .971?
how do you write improper fraction as a whole number or mixed number in simplest form 25/5
The table shows the number of Salvador has read. Find the ratio of mystery books to the total. Explain it's meaning. (look at the picture of the table)
what percent increase is it to go from $1.25 to $1.50?
Scientific notation of 0.000105
Please guys can you help on this word problem I'm stuck on it
which two oceans can you see on the globe above
A certain vehicle can travel 483 miles on 14 gallons of gasoline. Determine how many gallons of gasoline this vehicle will need to travel 600 miles. Round to th