当前位置: 首页 > 运维Tips > 正文

#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

报歉!评论已关闭.