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

Help? I know C is not true for sure.. Mark the statement if it correctly describes Catherine the Great. A. She was an eighteenth-century princess who became emp
what is 7/21 in its simplest form
Peter has 18 dimes. He uses 12 dimes to buy a drink. The number of dimes he has left is one half the number of pennies he has. How many pennies does Peter have?
what is a barrel maker called
which of the following stars has the highest surface temperature? A. red star B. blue star c. yellow star D. orange star
What is the difference between 3/12 and 5/8
how do i write the quotient of k decreased by 4 and 9
What tribes used only one route to get to the Indian Territory?
Find the student’s error in solving the following inequality. 31 < –5x + 6 25 < –5x –5 < x
1. Directions: Select all the correct answers.Which of the following sentences have the compound-complex structure? -Jorge wanted to do well in school, so he