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

Which types of light cause damage to genetic material?
Read the summary paragraph for the article on service and answer the question that follows: Service improves society, impacting the helpers as well as those nee
PLS (factorise): x²-33
What is the solution set of -11 > 1+ a? o ac-12 Oa>-12 O a<-10 a>-10
Determine the element symbol, mass number, and charge for an atom or ion that has a 51 neutrons, 38 protons, and 36 electrons.
What is the solution set of -11 > 1+ a? o ac-12 Oa>-12 O a<-10 a>-10
Sandra sets the cruise control in her car to 71 miles per hour when she goes on road trips. Which equation can be used to find how many hours, h, it will take h
confused on what this answer is can you guys help me?
Mr. Lewis’s paycheck is $506.14. After he spends $48.69 of the money on groceries, how much will he have left?
list and explain the eight characteristics of living organisims​