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

A four-pack of 42-ounce ink cartridges sells for $85.99. The expression 42c represents the amount of ink in a number of cartridges. What does the variable c rep
What is the most efficient enzyme known that can catalyze hydrogen?
what is negative seven equal v divided by ten minus six
A savings account compounds interest, at a rate of 15%, once a year. Elizabeth puts $800 in the account as the principal. How can Elizabeth set up a function to
(From the Outsiders) What are SPECIFIC acts of loyalty done by Sodapop Curtis.
please explain how i do this
Kathy has been exercising vigorously for the past half hour. her body feels sore and she feels pain in her limbs. what could be the reason for this? select one
what is 170 as a decimal (in the hundreths) i think that it is 17.0 i have no idea, im so confused
On a piece of paper, use a protractor to construct △ABC with m∠A=30° , m∠B=60° , and m∠C=90° .Which statements about the triangles are true?Select each correct
Where is Azerbaijan and when was it established