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

Why is carbon unique among the elements?????
What is the complete predicate of the following sentence?sharon and Jason went for a walk then a bike ride
what did the Muslims gain from the crusaders ?
contrasting: how some Jews differ in their beliefs about Jesus ?
How was Martin Luther King a significant figure in the Civil Rights Movement?
Force and Motion: Force changes _________.
You are given two solid materials one that is organic and one that is not organic. Describe three tests you could perform to help you decide which is which.
Which substance does not obey the Lewis octet rule? (a) N₂ (b) NO (c) CF₄ (d) Ar Can anyone explain this?
Which of the following was not one of the four bodily humours? a) choler b) blood c) cholesterol d) black bile e) phlegm
Can someone help me please!!!!!1.Grace and Allie are going to meet at the fountain near their houses.They both leave their houses at the same time. Allie passes