linux命令ls介绍(2)

    Read

ls命令,主要作用是列出目录的相关文件,ls [OPTION]... [FILE]...是命令的常用模式:
OPTION:

-a:显示文件夹内的所有文件包括隐藏文件以及本目录、上层目录
-A:显示文件夹内的所有文件包括隐藏文件,排除. ..
--author:配合-l使用,显示用户所有者,一般直接-l
-d:仅列出目录本身,而不是列出目录内的文件数据
-f:不排序,以目录顺序列出文件(ls -aU),关闭颜色显示
-F:附加文件机构[*:代表可运行档; /:代表目录; =:代表 socket 文件; |:代表 FIFO 文件;]
-h:以方便阅读的形式显示文件大小
-i:列出inode号
-l:以长格式列出文件
-n:列出 UID 与 GID 而非使用者与群组的名称
-r:反向排序
-R:列出文件夹子目录
-S:以文件从大到小排序
-t:安装时间排序,最新到以前方式 SourceByrd's Weblog-https://note.t4x.org/rebuilding/ls-command-description/

案例:

SourceByrd's Weblog-https://note.t4x.org/rebuilding/ls-command-description/ SourceByrd's Weblog-https://note.t4x.org/rebuilding/ls-command-description/
申明:除非注明Byrd's Blog内容均为原创,未经许可禁止转载!详情请阅读版权申明!
Byrd
  • by Published on December 12, 2017
  • 原文链接:https://note.t4x.org/rebuilding/ls-command-description/
匿名

Comment

Anonymous

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen: