Linux:ls以K、M、G为单位查看文件大小



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    www.2cto.com  
# 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

相关内容

    暂无相关文章