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

15(b – 1) + 2(3b + 7) = 6
Read the time line. What is the main use of this type of time line? A) comparing events across time and place B) understanding the conflicts in the regions C) d
Examples of sociological imagination
1.how do drugs emotionally affect the community. 2. how does teen sex emotionally affect the community. 3. how does self esteem emotionally affect the community
Determine the intercepts of each of the equations by using the tableY=3x+6​
what do you subtract to 47/6 to make 7
( Conditional sentences )Sophia and Diana aren't my close friends. If Sophia and Diana ___ (be) my close friends, I ___ (invite) them to my birthday party.​
Find the slope and the y-intercept of the line. Y= -5/4x + 7
Choose the correct statement of Kirchhoff's current law. 1. The product of the currents entering a node equals the product of the currents leaving. 2. The sum
How to write -4.16 as a fraction