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

Paragraph 19 contains the phrase "but what if a Gorgon should return." This is an example of A) alliteration. B) allusion. C) hyperbole. D) metaph
_______ is the artist who invented the mobile
Is 10inches bigger or smaller then 3 ft
can u help me with science?
a feeling of sadness because of the suffering of others
nina wants to put color tiles on a square.3 color tiles fit across the top of the square .how many rows and columns of squares will Nina need?how many color til
A scientist crossed two pea plants, both having the genotype RrYy. The Punnett square representing the cross is shown in the table. The scientist concluded that
can you please answer all plspls answer i will vote for you follow you and press the thank you button!!
What was the goal of the Continental System? Codify laws throughout Europe. (Codify means to classify or arrange into a system) Cut off trade between Britain an
What is the value of x? Enter your answer in the box. x=