ls

ls -l 命令显示的文件大小是以字节为单位的, 不是我们常见的 MB, 使用起来不易读.

# ls -l
total 1992
-rwxr-xr-x 1 root root 2034794 Aug 15 17:37 hello
-rw-r--r-- 1 root root      72 Aug 15 17:37 hello.go

这个时候可以用 ls -lh 命令来显示友好的大小单位.

# ls -lh
total 2.0M
-rwxr-xr-x 1 root root 2.0M Aug 15 17:37 hello
-rw-r--r-- 1 root root   72 Aug 15 17:37 hello.go
原文地址:https://www.cnblogs.com/taadis/p/13509687.html