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

Linux命令ls --color 和ls -color 分别是干什么用的有什么区别?注:前者color前面有两个“-”,后者一个
云烟418 1年前 已收到1个回答 举报

烟雨茶江 幼苗

共回答了19个问题采纳率:100% 举报

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'

1年前

9
可能相似的问题
Copyright © 2024 YULUCN.COM - 雨露学习互助 - 16 q. 0.036 s. - webmaster@yulucn.com