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

5/8 divide by 2 please need it
Solve for x. The triangles in each pair are similar.A. 11B. 8C. 9D. 3​
a) According to Fishman, what are the effects of Wal-Mart's business model on consumers, suppliers, workers, and their communities? b) How does Wal-Mart's busin
HELP HELP HELP I NEED HELP ASAP IM BEHIND IN MATH
10. Which of the principles of successful decision making emphasizes "buy-in" rather than consensus? O A. Participation B. Clarity C. Focus on action O D. Measu
ejemplos de fisica teorica​
a) ¿Qué utensilios de uso común y pensando en la contingencia sanitaria, podrían ser elaborados del cobre?
Please help ASAP !!!
Question 7 of 10 Fill in the blank in the timeline: was followed by job specialization, then by social stratification, and finally by chiefdoms.
. If you are reading this, YOU JUST WON A FREE TRIP TO SIBERIA