$ ls -lsh file.qcow2
204K -rw-r--r-- 1 root root 193K Jul 19 15:18 file.qcow2`
$ ls -sh file.qcow2 204K file.qcow2`193 K在ls -lsh 产量中的意义是什么?
发布于 2018-07-20 17:23:05
当有疑问时,请阅读手册页。
man ls如下所示:
-l use a long listing format
-s, --size
print the allocated size of each file, in blocks
-h, --human-readable
with -l and/or -s, print human readable sizes (e.g., 1K 234M 2G)如果没有-l,您将不会看到文件的所有权限、所有者、大小和日期信息。
-s意味着打印文件的allocated大小。您所看到的193K是实际大小。204K是分配的大小,因为驱动器被划分为4K集群。204K / 4 = 51,因为这意味着文件需要51个集群。
https://askubuntu.com/questions/1057936
复制相似问题