请问怎么配置 ls --color=auto 的显示颜色呀?

h2plus0 2007-02-08 09:05:46
在我的显示器上,ls --color=auto 有些颜色非常难于辨认,
请问怎么配置 ls --color=auto 的显示颜色呀?
谢谢!
...全文
607 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
gangjh 2007-03-08
  • 打赏
  • 举报
回复
修改 LS_COLORS 變量.
gangjh 2007-03-08
  • 打赏
  • 举报
回复
The environment variable LS_COLORS can influence the colors, and can be set easily by
the dircolors command.

wflyfox 2007-03-08
  • 打赏
  • 举报
回复
By default, color is not used to distinguish types of files. That is
equivalent to using --color=none. Using the --color option without the
optional WHEN argument is equivalent to using --color=always. With
--color=auto, color codes are output only if standard output is
connected to a terminal (tty).

2,161

社区成员

发帖
与我相关
我的任务
社区描述
Linux/Unix社区 UNIX文化
社区管理员
  • UNIX文化社区
  • 文天大人
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧