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 many solutions does the system have?2y=4x+6 y=2x+6
Which pair of words describes this system of equations ? 3y=9x-6 2y-6x=4 A) inconsistent and dependent B) consistent and dependent C) consistent and independe
State the scale factor of the dilation about the origin of these coordinates.​
A realtor earns a 3.25% commission on the sale of each house. How much did a house sell for if the realtor earned $10,566.40?
Question4..........................
The war bond drive alone raised over for the U.S. war effort. A. $10,000,000 B. $100,000,000 C. $10,000,000,000 D. $100,000,000,000
PLEASE HURRY I NEED HELP SOS!!!!!!!! (10 POINTS)solve sinø+1=cos2ø on the interval 0≤ø<2π
If the absolute temperature of a gas is 600 K The temperature in degrees Celsius is
how many stars our thier in the universe​
If Johnny had 20 complete living room outfits, disregard color scheme, how many different sets of five complete outfits could be arranged?