Читать книгу Linux Bible - Christopher Negus - Страница 116
TIP
ОглавлениеIf you are setting your prompt temporarily by typing at the shell, you should put the value of PS1
in quotes. For example, you could type export PS1="[\t \w]\$ " to see a prompt that looks like this:
[20:26:32 /var/spool]$.
To make a change to your prompt permanent, add the value of PS1
to your .bashrc
file in your home directory (assuming that you are using the bash shell). There may already be a PS1
value in that file, which you can modify. Refer to the Bash Prompt HOWTO
(http://www.tldp.org/HOWTO/Bash-Prompt-HOWTO
) for information on changing colors, commands, and other features of your bash shell prompt.