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

Please help! Solve for a.
Can someone please help Please Write a paragraph explaining “Over Production” during “the Great Depression”
explain female reproduction.explaon functios​
Which table represents an exponential function?
Early in her diary Anne lists many of the ways Jews are precipitated now that the Germans have taken over which of the following is NOT something that Anne ment
define atomic mass and molecular mass​
Which polynomial is the standard form of
A punch recipe calls for mixing 7 parts of cranberry juice with 4 parts of lemon juice. Find how much cranberry juice should be mixed with 84 ounces of lemon ju
In Europe and North America during the 1800s what mostly caused people to move to the cities
It's possible to find out exactly where your site visitors are coming from using a free tool called Question 6 options: StumbleUpon. Yahoo! Mozilla. Google Anal