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

6 cakes cost to pound £2.40 how much does 10 cakes cost?
how do you solve polynomial equation by factoring 2x^3 - 12x^2 = 32x - 192
What is 1/6 + (2/3 - 1/4) in simplest form
What is one way local governments are similar to federal governments?
I have to solve for b but I can't figure it out
start at 1000 create a pattern that subtract 8 from each number stop when you have five numbers
How do landforms link the geography of Canada to the United states.
Water boils when its vapor pressure becomes equal to _________ pressure.
for ratios what would 45 out of 60 be as a fraction?
The _____ is the layer of tissue that forms during gastrulation and becomes the animal's organs. a. ectoderm b. mesoderm c. endoderm