Linux:ls以K、M、G爲單位查看文件大小


#man ls
……
-h, --human-readable
                print sizes in human readable format (e.g., 1K 234M 2G)
……
# ls
cuss.war    nohup.out
# ls -l
total 30372
-rw-r--r--    1 root root 31051909 May 24 10:07 cuss.war
-rw-------    1 root root          0 Mar 20 13:52 nohup.out
# ls -lh
total 30M
-rw-r--r--    1 root root 30M May 24 10:07 cuss.war
-rw-------    1 root root     0 Mar 20 13:52 nohup.out
# ll -h
total 30M
-rw-r--r--    1 root root 30M May 24 10:07 cuss.war
-rw-------    1 root root     0 Mar 20 13:52 nohup.out


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