- NAME
- ls - list directory contents
- SYNOPSIS
- 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 按照修改时间排序
来源: http://www.bubuko.com/infodetail-3424330.html