1、修改显示全路径:
vim /etc/bashrc
找到[ "$PS1" = "\s-\v\$ " ] && PS1="[u@h W]\$ " 把里面的大写W改为小写w
2、修改主机名
hostnamectl set-hostname 新主机名