Ubuntu修改命令行提示符 (linux - customize prompt in shell)

Ubuntu中若是要把提示符改成當前路徑的最後一個目錄再加一個空格,能夠在~/.bashrc里加入 export PS1='\W> '。(若是在/etc/rc.local/加,~/.bashrc中默認對PS1的設置會覆蓋/etc/rc.local中的自定義設置。)html 提示符的其它選項、參數能夠參見linux http://www.linux521.com/2009/system/201103
相關文章
相關標籤/搜索