作业帮 > 英语 > 作业

Linux命令ls --color 和ls -color 分别是干什么用的有什么区别?注:前者color前面有两个“-”

来源:学生作业帮 编辑:搜狗做题网作业帮 分类:英语作业 时间:2024/06/05 04:24:02
Linux命令ls --color 和ls -color 分别是干什么用的有什么区别?注:前者color前面有两个“-”,后者一个
Linux命令ls --color 和ls -color 分别是干什么用的有什么区别?注:前者color前面有两个“-”
ls -color
是指 ls -c -o -l -o -r组合的意思
-c with -lt:sort by,and show,ctime (time of last
modification of file status information)
with -l:show ctime and sort by name
otherwise:sort by ctime
-l use a long listing format
-o like -l,but do not list group information
-r,--reverse reverse order while sorting
------------------------------------------------------------------------------------------------------------------------------
ls --color是颜色选项
--color[=WHEN] control whether color is used to distinguish file
types.WHEN may be `never',`always',or `auto'