显示-bash-3.2$问题
普通用户更换家目录后终端显示-bash-3.2$问题
- 将配置文件从/etc/skel下的.bash_profile、.bashrc、.bash_logout文件拷贝到用户的家目录下
# -bash-3.2$ ls -a
. .. .ssh
# cp /etc/skel/.bash_profile /export/disk4/dingwz/
# cp /etc/skel/.bashrc /export/disk4/dingwz/
# cp /etc/skel/.bash_logout /export/disk4/dingwz/
# su - dingwz
$ ls -a
. .. .bash_history .bash_logout .bash_profile .bashrc .ss
- 重启切换显示正常
网友评论