login shell with system time !
Dear Friends ,
I want to add time format in my linux shell during every command . For example : -------------------------------------------- [root@pbltest ~]# ls anaconda-ks.cfg Desktop install.log install.log.syslog nmon_linux_x86 plsql [root@pbltest ~]# mkdir temp [root@pbltest ~]# ls anaconda-ks.cfg Desktop install.log install.log.syslog nmon_linux_x86 plsql temp [root@pbltest ~]# ----------------------------------------- In the above output , when I make 'ls' and then press enter , for each and every enter it shows the system time with the default shell info , like :[root@TIME] . Is it possible to add time with username shell ? Waiting for your kind reply ... .. |
google(bash change prompt)[1] = http://www.cyberciti.biz/tips/howto-...up-prompt.html
|
Also this will put a running clock/date in the upper right corner of shell.
Code:
#! /usr/bin/env bash |
I believe that if you edit your PS1 in ~/.bashrc (or /etc/bashrc) to something along the lines of:
Code:
PS1="[\t \u@\h:\w] $ " |
Quote:
|
Thx Texkk , seanferguson and All of the Friends . My purpose is completed .
|
All times are GMT -5. The time now is 08:33 PM. |