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 unit is used to measure distance? A. Grams B. Seconds C. Millimeters D. Centers
Gary ordered 30 pizzas for a party. 60% of the pizzas have 12 slices each. The remaining 40% of the pizzas have 10 slices each.
Find the product: − 3/5 (− 14/9 )
(99 points, will give brainlist~) -The story that is used to answer these questions is the wonderful wizard of oz- Q1: List two settings and give examples from
What is 6√ / 5√ in simplest radical form?
11+?÷4-?=9 I have been stumped on this for a while
In the diagram, . To prove that △VWZ ~ △YXZ by the SAS similarity theorem, which other sides or angles should be used? WV and XY WV and ZY ∠VZW ≅ ∠YZX ∠VWZ
Arron just paid $7.40 for a new pair of sunglasses. His father told him that prices were different 10 years ago. Then his grandfather told him that 20 years ago
The cost of 2.5 pounds of cheese is $5.60. Mrs Peterson bought 9 pounds of cheese for her deli how much did she spend
What is the electron geometry and molecular geometry of TeO2