date and time in prompt

Archives

date and time in prompt

Postby Bob » Wed Feb 23, 2005 6:09 pm

My current unix prompt is "Hello $user :" i would like to know how to put the date and time in before the colon. Any ideas? Anyone?
Bob
 

Re: date and time in prompt

Postby anonymous » Fri Feb 25, 2005 6:34 pm

PS1=`date +"%d %h %y"`:
anonymous
 


Return to Archives

Who is online

Users browsing this forum: No registered users and 1 guest

cron