将.bashrc文件中的
PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\$ '
修改为
PS1='[$(whoami)@\h \W]\$ '
修改后的效果为:
[root@ubuntu /]#
将.bashrc文件中的
PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\$ '
修改为
PS1='[$(whoami)@\h \W]\$ '
修改后的效果为:
[root@ubuntu /]#