Link to home
Start Free TrialLog in
Avatar of Sabrin
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;37m\]\@\[\033[0;32m\])\[\033[1;32m\]]\[\033[1;32m\][\[\033[0;32m\](\[\033[1;37m\]\u\[\033[1;30m\]@\[\033[1;37m\]\h\[\033[0;32m\])\[\033[1;32m\]] \[\033[1;32m\][\[\033[0;32m\](\[\033[1;37m\]\w\[\033[0;32m\])\[\033[1;32m\]] \[\033[1;37m\]\$ "
Avatar of ozo
ozo
Flag of United States of America image

What is the 45 supposed to represent?
Avatar of Sabrin
Sabrin

ASKER

seconds
ASKER CERTIFIED SOLUTION
Avatar of ozo
ozo
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Sabrin

ASKER

what will be the final code?