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 nation that remained neutral in World War I was: the United States Turkey Japan Switzerland Italy
Recently a small college had an enrollment of 1342 students and 215 faculty. What was the student-Faculty ratio for this college? Write your answer as both a mi
deep ocean trenches are associated with? A) ocean ridge systems B) subduction zones C) transform fault boundaries D) rift zones please help need this in the nex
jan drove 843 miles. rick drove 4 time as many miles as jan. how manymiles did rick drive
Which company made the concept of Santa Claus popular worldwide?
Which best describes how slaves were regarded in the South in the pre-Civil War years?
Which of the following are involved in graphs of linear equations? Slope Intercepts The graph is a curve The graph is the solution set. The equation usuall
what do you call it when 50 people stand on a wooden dock
In which modern country is St Nicholas's birthplace and hometown?
How does the electron transport chain transfer light energy in photosynthesis