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

purchasing a home usually requires ____ for the down payment A) Nothing B) A credit card C) A loan D) A lump sum
What was the motivation for a German POW to work?
Pleeeeaaaseee help!!
which one is an example of information that is appropriate to include cover letter?
20 POINTS!! HELP PLEASE LOOK AT ALL IMAGES
What motivates entrepreneurs to risk their capital (resources and time) on starting their own business?
Quadrilateral ABCD is the figure below represents a scaled-down model of a walkway around a historic site. quadrilateral EFGH represents the actual walkway. ABC
I need some help with ideas
Pleeeeaaaseee help!!
After jogging 3 miles bobby checked his heart rate he counted 30 beats and 15 seconds what would his heart rate be for one minute