Digital Marketing

Bash prompt variables

We can customize bash prompt by changing the values of bash PS1, PS2, PS3, PS4.
root@2e5540791177:/# echo "Bash PS1 variable:"  $PS1
Bash PS1 variable: \[\e]0;\u@\h: \w\a\]${debian_chroot:+($debian_chroot)}\u@\h:\w\$
root@2e5540791177:/# echo "Bash PS2 variable:"  $PS2
Bash PS2 variable: >
root@2e5540791177:/# PS1="\u@\H:\w [\t]\$ "
root@2e5540791177:/ [23:52:00]$

Comments

Popular posts from this blog

Make online money from the Internet