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

That does m represent in y=mx+b
I need help on this.
Some species that appear to be very different from other species can actually have similar anatomy. For example the scientist believe that whales involved from
Use the library, encyclopedia, and Internet to research and then write a 750 word report on one of the following topics: Nineteenth century isolationism The Sp
6 and 8 I don’t get it
electron dot structure of ccl4
PLEASE HELP simplify (b^4)^3
What form of literature flourished under the Tang Dynasty
In terms of “what’s in it for me” dominant group members have little gain when they join efforts against privilege and oppression is true or falls with resin?
Which of the following is the economic term that indicates that figures have been adjusted for inflammation? A: Deflated B: adjusted C: real D: nominal