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

Luiza’s paragraph can best be described as a(n) detailed description. Informal viewpoint. Objective summary. Personal opinion
Example: Je mange de la salade. (manger - to eat) Nous les carottes. (couper - to cut) Tu de la pâte. (pétrir - to knead) Vous les oeufs. (battre - to beat)
Please answer this asaapppppp
please help!!!!!!!!!!
What are three ratios equivalent to 12:16
What happens to Jem's pants? What excuse does Dill make up to explain the situation? (Chapter 6)
PUTTING IT ALL TOGETHER: WRITING A HERO’S LAMENT Read the following passage on the death of Achilles’ friend and mentor, Patroclus. When Achilles and the Greeks
3. Triangle JKL is shown below. Which of the following is not a true statement about the angles in the triangle? J 7X+2 A. The sum of 2J + ZK + ZL = 180° B. T
how good sanitation improve our health​
What is underemployed?​