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

answers to 6,7,8 pleaseee?
G. Washington’s Fun Report Card
A nature center offer 2 guided walks. The morning walk is 2/3 miles. The evening walk is 3/6 mile. Which is shorter
please help me with german
Examine these two paintings that depict famous events from American history. The image on the left, painted in 1940, shows the signing of the U.S. Constitution
Landon wrote that 3−2.6=4. Which statement about his answer is true?
In trapezoid ABCD, AC is a diagonal and ∠ABC≅∠ACD. Find AC if the lengths of the bases BC and AD are 12m and 27m respectively.
Ammonia molecules have three hydrogen atoms and one nitrogen atom.How many of each atom arein five molecules of ammonia
answers to 6,7,8 pleaseee?
Asking questions from a text while reading helps with what?