您的位置:首页 > 运维架构 > Shell

redhat切换用户前面是-bash-4.1$v

2014-08-09 22:27 211 查看
使用root用户切换到普通用户时,提示如下命令行

[root@Lee ~]# su - oracle

-bash-4.1$ 

前面不是oracle@Lee...

而是-bash-4.1$ 

只需要

cd/etc/skel

cp .bash_logout .bash_profile .bashrc /home/oracle

[root@Lee ~]# cd /etc/skel/

[root@Lee skel]# cp .bash_logout .bash_profile .bashrc /home/oracle/

[root@Lee ~]# su - oracle

[oracle@Lee ~]$ 
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  linux