linux中ls-l命令显示的总用量是如何计算出来的
[root@Linux ~]# ls -l
总计 56
-rw------- 1 root root 865 03-15 04:12 anaconda-ks.cfg
drwxr-xr-x 2 root root 4096 03-14 20:34 Desktop
-rw-r--r-- 1 root root 27964 03-15 04:12 install.log
-rw-r--r-- 1 root root 5069 03-15 04:11 install.log.syslog
另外谁能告诉我第二列中数字是什么意思?
------解决方案--------------------应该是 directory 的深度
file 的话就是 1
------解决方案--------------------Perl code
If the -l option is specified, the following information will be written:
"%s %u %s %s %u %s %s\n",
<file mode>, <number of links>, <owner name>, <group name>, <number of bytes in the file>, <date and time>, <pathname>