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 can we tell a piece of metal is hot​
If f(x) = 2x – 7, what is the equation for f–1(x)?
For Mortenson Company, the following information is available: Cost of goods sold $130,000 Dividend revenue
Find the selling price of a $7.50 agenda book with a 15% discount. Round to the nearest cent when necessary.
The Three-Fifths Compromise was reached because the Northern states did not want to count slaves as people. true or false
:X: The image represents a(n)
It takes 2 scoops of detergent for every 3 scoops of softener. If you have 28 scoops of detergent, how many scoops of softener will you need?
please help me with this question
A bicycle has a listed price of $544.98 before tax. If the sales tax rate is 9.75%, find the total cost of the bicycle with sales tax included. Round your answe
Which government can create local governments? 1. National Government 2. State Government 3. Concurrent Power