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

Can somebody show me step by step how to solve this?
Who believed in a government that has a lack of individual freedoms for people? A. John Locke B. Thomas Hobbes C. Thomas Jefferson
How to write my name in binary code ? Rivas
Which property can be used to show that if 16=9+7 then 9+7=16 ?
Which is parallel to y=8x+4
Copper is a reddish brown metal that is easily stretched to make wires. These characteristics are examples of__________ properties of chopper
Is the word think a sensory detail word
Can someone help me, I tried everything to find the cancel subscription button but I don’t seem to find it anywhere, I already check “Account settings” “manage
please help me I will mark you as Brainlist☺️​
can someone solve this ?​