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

What is the mode for the data set? 67, 73, 78, 71, 80, 74, 79, 76, 75, 70, 72 a.67 b.74 c.79 d.80 e.none
During interphase, the DNA in the nucleus of the cell is thin and threadlike and called _____.
How many times does the throat move up and down in one minute in a frog?
How many provinces make up the u.s ' neighbor canada?
Wich colonial government reserved many prominent leadership positions for Catholic Church leaders
True or false? In deductive thinking, you formulate general ideas and rules based on your experiences and observations.
How can you express (32+56) as a multiple of a sum of whole numbers with no common factor
Why is King Charles of Martel important in Europe’s history?
What natural resources might the Bahamas need that are in North America?
A software store has put some of its inventory on sale. Games are marked down by 15%, and security programs are marked down by 18%. If you pay $35.70 each for t