在 linux shell 中不顯示路徑了 , 用起來很不友善 .
如何改為顯示路徑的shell呢
步驟如下:
vi ~/.bash_profile
(不用管.bash_profile這個檔案有幾個,自己建立一個也是可以的)
在最後加上:
export PS1=’[\[email protected]\h \W]\$’
然後執行
source ~/.bash_profile
這樣shell就可以顯示路徑了
End.
轉載于:https://www.cnblogs.com/lianche/p/3316052.html