⇤ ← Revision 1 as of 2017-01-27 20:21:28
352
Comment:
|
← Revision 2 as of 2017-01-27 20:34:33 ⇥
670
|
Deletions are marked like this. | Additions are marked like this. |
Line 4: | Line 4: |
* Links: [[https://www.cyberciti.biz/tips/howto-linux-unix-bash-shell-setup-prompt.html]] , [[https://www.cyberciti.biz/faq/bash-shell-change-the-color-of-my-shell-prompt-under-linux-or-unix/]] | |
Line 9: | Line 10: |
* $ export PS1="\[\033[1;33m\][\u@\h] \t \w\$\[\033[0m\] " {{{ [root@SLT01MGT00MEL01-PRD] 20:26:56 /var/lib$ }}} |
Linux terminal prompt
Links: https://www.cyberciti.biz/tips/howto-linux-unix-bash-shell-setup-prompt.html , https://www.cyberciti.biz/faq/bash-shell-change-the-color-of-my-shell-prompt-under-linux-or-unix/
- Controlled by value of $PS1 environment variable.
- e.g. #export PS1="[\\u@\\H@\\A \\w]\\$"
[root@hostname@20:13 lib]#
- with yellow color #export PS1='\[\033[1;33m\][\u@\h] \t \w\$\[\033[0m\] '
[root@SLT01MGT00MEL01-PRD] 20:19:56 /var/lib#
- $ export PS1="\[\033[1;33m\][\u@\h] \t \w\$\[\033[0m\] "
[root@SLT01MGT00MEL01-PRD] 20:26:56 /var/lib$
- e.g. #export PS1="[\\u@\\H@\\A \\w]\\$"
...