LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1185|回复: 4

切换到root用户以后,目录和可执行文件的颜色全都变成了黑色

[复制链接]
发表于 2010-2-6 21:08:23 | 显示全部楼层 |阅读模式
rt
但切换到普通用户下,就恢复正常了,只要切换到root用户后,又是老样子。google 了好久,都没找到解决办法。请知道的朋友指点一下,谢谢!
发表于 2010-2-6 21:15:28 | 显示全部楼层
试下
alias ls='ls --color=auto'
回复 支持 反对

使用道具 举报

发表于 2010-2-7 09:45:22 | 显示全部楼层
root 跟普通用户的 profile 或 bashrc 设置不相同,把相关的 alias 加入便行
回复 支持 反对

使用道具 举报

 楼主| 发表于 2010-2-8 00:14:55 | 显示全部楼层
谢谢二位,照你们的指点解决了!
回复 支持 反对

使用道具 举报

发表于 2010-2-9 23:10:04 | 显示全部楼层
看到root 求教一个问题,提示如下:如何解决
pzi@debian:~$ sudo ls

We trust you have received the usual lecture from the local System
Administrator. It usually boils down to these three things:

    #1) Respect the privacy of others.
    #2) Think before you type.
    #3) With great power comes great responsibility.

[sudo] password for pzi:
pzi is not in the sudoers file.  This incident will be reported.
pzi@debian:~$
我的用户名不在sudoers文件?
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表