什么是“总”在第一行ls -l之后? [英] What is that "total" in the very first line after ls -l?

查看:186
本文介绍了什么是“总”在第一行ls -l之后?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

ls -l的输出中的total是什么?

What is that "total" in the output of ls -l?

    $ ls -l /etc
    total 3344
    -rw-r--r--   1 root root   15276 Oct  5  2004 a2ps.cfg
    -rw-r--r--   1 root root    2562 Oct  5  2004 a2ps-site.cfg
    drwxr-xr-x   4 root root    4096 Feb  2  2007 acpi
    -rw-r--r--   1 root root      48 Feb  8  2008 adjtime
    drwxr-xr-x   4 root root    4096 Feb  2  2007 alchemist


推荐答案

在您的平台的 ls 文档中。对于 coreutils ls (在很多Linux系统上找到的),信息可以通过 info coreutils ls

You can find the definition of that line in the ls documentation for your platform. For coreutils ls (the one found on a lot of Linux systems), the information can be found via info coreutils ls:


对于列出的每个目录, b $ b`total BLOCKS',其中BLOCKS是该目录中所有
文件的总磁盘分配。

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.

这篇关于什么是“总”在第一行ls -l之后?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆