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 按照修改時間排序