[kanchilug] [Tip] Fun with terminal-3 (Terminal Clock)

  • From: "Tha.Suresh" <jemenisuresh@xxxxxxxxx>
  • To: ILUG-C <ilugc@xxxxxxxxxxxxx>, KanchiLug <kanchilug@xxxxxxxxxxxxx>, iitdlug@xxxxxxxxxxxxxxxx, Mlug <glug-meerut@xxxxxxxxxxxxxxxx>
  • Date: Wed, 24 Nov 2010 10:02:47 +0530

If you want see the clock time on your terminal,

$ export PS1="${PS1%\\\$*}"' \t \$ '

:-)

Ex:

shrinivasan@shrinivasan-laptop:~$ export PS1="${PS1%\\\$*}"' \t \$ '
shrinivasan@shrinivasan-laptop:~ 09:50:27 $ echo "Have a nice day"
Have a nice day
shrinivasan@shrinivasan-laptop:~ 09:50:52 $



-- 
Regards,
Tha.Suresh
http://thasulinux.wordpress.com
 

Other related posts: