修改Ubuntu终端中@前后的用户名和主机名
gedit ~/.bashrc

修改
if [ "$color_prompt" = yes ]; then
PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '
将\u@\h中的\u(表示用户名)改为预设置的用户名比如XiaoPawnYe
if [ "$color_prompt" = yes ]; then
PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]user@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '
也可以修改主机名,也就是@后面的名称

浙公网安备 33010602011771号