【问题标题】:why ls -l command in linux shows total count? What is that total about? [duplicate]为什么linux中的ls -l命令显示总数?这个总数是多少? [复制]
【发布时间】:2018-08-08 21:43:54
【问题描述】:

ls -l 显示文件的长格式以及权限。但是什么总没有。是?

【问题讨论】:

标签: linux unix command-line


【解决方案1】:

我假设你的意思是以下

$ ls -l
total 1408600
...

如果是这样,答案可以在 ls 手册中找到。我通过在我的 centos 盒子上运行 info coreutils 'ls invocation' 来获得手册。

为了避免你这样做......

For each directory that is listed, preface the files with a line
'total BLOCKS', where BLOCKS is the total disk allocation for all
files in that directory.  The block size currently defaults to 1024
bytes, but this can be overridden (*note Block size::).  The BLOCKS
computed counts each hard link separately; this is arguably a
deficiency.

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2016-11-15
    • 1970-01-01
    • 2019-11-23
    • 2016-05-05
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多