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

Carla y Joshua ___ en sus casas.
I need help please! Thank you!
How does the author develop the connection between language and cultural preservation?
Read the quotation: "our policy in regard to Europe ... Remains the same, which is, not to interfere in the internal concerns of any of its power s." President
What does this photo suggest about Hitler?He was a charismatic leader who inspired great loyalty.He was a powerful dictator who made the Germans fear him.He had
Taq polymerase uses a _____ (dna or rna) template to synthesize _____ (dna or rna). (1pt.
1a) Why do we study gases since reformation​
An appliance store decreases the price of a 19-in. television set 17% to a sale price of $518.34. What was the original price? The original price of the televis
A quadrilateral has angles that measure 115, 97, and 68. What is the measure of the missing angle?
What is speech? Give examples formal and informal speech situation.