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

Por favor, seleccione la mejor palabra para complementar la siguiente oración : La gente de esta ciudad __________ muy simpática. siente es dice vive
Can some please explain and solve how to do these unit rate equations?
pls help ill give brainliest and 5 staarts
what’s a word for normalising something in a bad way i need it for an essay
1. The_______ of 1866 invalidated the Black Codes. 2. During Reconstruction the________ Party was in control
The function f(x) = x2 is transformed to obtain the graph of the related function g(x) using a vertical stretch by a factor of 3.
Ava buys 3.5 pounds of strawberries for $2.99 per pound. How much does she spend?
Briefly explain one event in history that another race was targeted/marginalized
Now you should be ready to write your five-paragraph essay. Before you begin, check each step that you have completed. I have decided on three ads to analyze fo
Describe events that show terrorism is now a major threat to U.S. national security