linux under the shell displays -bash-4.1 # does not display the path Solution
It does not show in the path in linux shell,Appears as -bash-4.1 # inconvenient to use them。
How to show the path of the shell it?
Proceed as follows:
vim ~/.bash_profile
(Do not bother .bash_profile This file has several,Their new one is also possible)
Add the final
export PS1='[\u@h W]\$’
And then do
source ~/.bash_profile
So you can show the path of the shell。