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

In the carbon cycle the role of plant is to a breakdown dead organisms into usable matter be convert nitrogen from the soil into carbon dioxide C remove carbon
Liner systems of equations
Hurry ASAP I need 10points
5y+33+6y into distributive property
In which stage of the fashion life cycle is the garment?
A sign in the the store window advertises 3-t shirts for $16.50 which coronet pierced as a unit rate of the T-shirt sale sc $16.50 which coordinate pair shirt
What type of government developed Egypt after 3100 BC.?
Symptoms of excessive stress include all of the following except
A hat store sells 900 hats in its first year. If the number of hats it sells in the next year is 50% higher, how many hats will it sell in its second year?
A pile of newspaper was 17 3/4 inches high. Each consecutive week for the next 5 weeks the height of pile increase by 8 7/12 inches. What is the height in inche