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

How do you think the guarantees of religious freedom ratified in 1791 affected?
Most of the diversity in the rates of cell division in the adult body lies in variations in the time that each cell spends in
The first step in the succession planning process is to _____.
When you divide a whole number by a decimal less than 1, the quotient is greater than the whole number. Why?
why do all organism must have ribosome
which of the following was not a benefit of later portuguese explorations along the west african coast
Why were the homeowners in new london fighting for private property rights?
What rhetorical features does Stanton use throughout the list of facts, that she presents, beginning with line 32? How does her rhetoric contribute to the power
3/5 List the first five multiples of the denominator of the fraction in order.PLS I WILL GIVE 20 POINTS AND BRAINLIEST
What did humankind gain from the industrial revolution, and what did it lose?