linux命令-ls

ls :list directory contents  列出目錄內容

ls選項 :

    -a :do not ignore entries starting with .   :不忽略包含起始.的文件(隱藏文件)

    -A :do not list implied . and ..  :列出不包含.和..的文件,但是會包含以.開頭的其他文件

    -l :use a long listing format     :使用長列表格式,會輸出詳細信息

    -i :print the index number of each file   :打印每個文件的index號

    -d :list directory entries instead of contents, and do not dereference symbolic links 顯示當前目錄信息,不引用符號鏈接,通常和-l連用

    -h :with -l, print sizes in human readable format (e.g., 1K 234M 2G) :使用人類易讀的方式打印大小

    -s :print the allocated size of each file, in blocks  :文件存儲在硬盤上是以磁盤塊的方式分配磁盤空間存儲,使用-s可以查看文件被分配了多少個磁盤塊

    -S :sort by file size  :文件大小排序

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章