千家信息网

ls命令详解

发表于:2025-12-01 作者:千家信息网编辑
千家信息网最后更新 2025年12月01日,NAME ls - list directory contentsSYNOPSIS ls [OPTION]... [FILE]...DES
千家信息网最后更新 2025年12月01日ls命令详解
NAME           ls     -  list  directory  contentsSYNOPSIS            ls   [OPTION]...  [FILE]...

DESCRIPTION
list information about the FILES(the current directoryby default). Sort entries alphabetically if none of -cftuvSUX nor sort。 列出files的信息,默认是当前文件夹,如果没有-cftuvSUX和--sort选项的话,按照字母表排序。
-a,-all

            do  not        ignore  enteries   starting  with  .  :不忽略以.开头的条目            -A, --almoost-all                    do  not   list  implied    .    and   ..  :  不列出隐含的. 和  ..            -d,--directory                         list   directory   entries  intead  of  contents  ,   and  do  not  dereference  symbolic   links  :列出文件本身,而不是内容,也不列出参考的符号链接                  -h, --human-readable          with -l, print sizes in human readable format (e.g., 1K 234M 2G):和-l一起,以人类可读的格式显示出文件的大小。                        -i,--inode                                 print   the index  number of  each   file:显示出每一个文件的索引号码                    -r,--reverse                                 reverse order   while  sorting  反向排序                    -R,--recursive                            list   subdirectories  recursively  递归显示子文件夹                    -t  sort  by  modification  time   按照修改时间排序
0