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

which phrase defines “mortified” best
Which shows all the names that apply to the figure? A. parallelogram and rectangle B. parallelogram, rhombus, and rectangle C. parallelogram, rectangle, an
you are given the steps for using a compass and a straightedge to construct a line perpendicular to a given line through a point not lying on the given line. ar
What township do i live in? zip code 19460
Which country is the flattest of the nordic nations? denmark iceland norway sweden
How one feels about one's health (how satisfied one is with one's health) is a stronger predictor of happiness than is one's actual level of health.?
Name 5 social issues in a community
Question 2 (Multiple Choice Worth 3 points)(03.01 MC)Jessica and Francis are best friends. Francis exercises every day, but Jessica is only active once in a whi
_____ allow you to resize a graphic using the mouse.
how many atoms are there in 5.10 moles of sulfur?