系統(tǒng)運(yùn)維
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的信息,默認(rèn)是當(dāng)前文件夾,如果沒有-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 :列出文件本身,而不是內(nèi)容,也不列出參考的符號鏈接 -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 按照修改時間排序