My Gnu/Linux system is red hat and I ssh it from xshell. The command prompt format is like this:[xuemeng.cyn@e92e01494.em21 /home/qihang.gqh/online/h5_reco/user_level_1.0]$vi dn_click.pyI remember that there is another format that the current working dictionary is in front of the command like this: user_level_1.0# *****(command)How can I switch the format ?
How to change the format of the bash prompt?
bash;prompt
If you want to see: (the last part of your current directory) followed by the pound sign, you would use:PS1='\W# 'Put this line in the file .bashrc in your home directory.Although I would caution you against using # in a non-root prompt, as it's customary to use something like > or $ in non-root prompt strings and # in root's prompt.Reference: Bash shell prompting