Modify the default directory even ssh

vi / etc / passwd

ssh to connect linux server displays only -bash-4.1 # is not displayed path, we only need to modify ~ / .bash_profile file, if the file does not exist, then create a new, increased content export PS1 = '[\ u @ \ h \ W ] \ $ 'save and exit, the final implementation,

source ~/.bash_profile

Then you can show the path of the shell

Guess you like

Origin www.cnblogs.com/zephyr-1/p/11735915.html