Gedit/etc/bashrc
The default special symbolic meaning in the shell environment:
\d: Represents the date, formatted as weekday month date, for example: "Sun Sep"
\h: The full host name. For example: My machine name is: Redhat.linux, then this name is Fc4.linux
\h: Only the first name of the host is taken, as in the example above, then Redhat.linux,.linux is omitted
\ t: Display time in 24-hour format such as: HH:MM:SS
\ t: Display time in 12-hour format
\a: Display time in 24-hour format: hh:mm
\u: Current user's account name
version information for \v:bash
\w: The full working directory name. Home directory will be replaced by ~
\w: Use basename to get the working directory name, so only the last directory is listed
\#: The first few commands issued
\$: Prompt character, if root, Prompt is: #, normal user is: $
\ n: Line break
According to the above format can be modified freely
Then SOURCE/ETC/BASHRC can take effect.
[Email protected]/mydisk/eclispe_workspace/normandy]# echo $PS 1
[\[email protected]\h \w]\$
[Email protected]/mydisk/eclispe_workspace/normandy]#