Ubuntu去掉指令行前使用者名和主機名方法
$ vi ~/.bashrc +59
按a或i進入編輯模式
PS1='${debian_chroot:+(debian_chroot)}\w\$ '
預設為
PS1='${debian_chroot:+(debian_chroot)}u@h:\w\$ '
注:u為username,h為hostname
按Esc鍵退出編輯模式
:wq (儲存并退出)
$ source ~/.bashrc
本文轉自linux部落格51CTO部落格,原文連結http://blog.51cto.com/yangzhiming/1360535如需轉載請自行聯系原作者
yangzhimingg