Sabrin
asked on
bash
hello,
I have modified my /etc/bashrc file and I was wondering if there's a way of showing the time
instead of this
[(11:29 PM)][(root@server)] [(~)] $
to something like this
[(11:29 45 PM)][(root@server)] [(~)] $
this is what I have
[ "$PS1" = "\\s-\\v\\\$ " ] && PS1="\[\033[1;32m\][\[\033 [0;32m\](\ [\033[1;37 m\]\@\[\03 3[0;32m\]) \[\033[1;3 2m\]]\[\03 3[1;32m\][ \[\033[0;3 2m\](\[\03 3[1;37m\]\ u\[\033[1; 30m\]@\[\0 33[1;37m\] \h\[\033[0 ;32m\])\[\ 033[1;32m\ ]] \[\033[1;32m\][\[\033[0;32 m\](\[\033 [1;37m\]\w \[\033[0;3 2m\])\[\03 3[1;32m\]] \[\033[1;37m\]\$ "
I have modified my /etc/bashrc file and I was wondering if there's a way of showing the time
instead of this
[(11:29 PM)][(root@server)] [(~)] $
to something like this
[(11:29 45 PM)][(root@server)] [(~)] $
this is what I have
[ "$PS1" = "\\s-\\v\\\$ " ] && PS1="\[\033[1;32m\][\[\033
What is the 45 supposed to represent?
ASKER
seconds
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
what will be the final code?