When running ls -l, why does the file size in the directory not match the du output?

What does 4096 mean at the output ls -l?

[root@file nutch-0.9]# du -csh resume.new/
2.3G    resume.new/
[root@file nutch-0.9]# ls -l 
total 55132
drwxr-xr-x  7 root root     4096 Jun 18 03:19 resume.new
+3
source share
4 answers

That the directory occupied 4096 bytes of disk space (not including its contents).

+10
source

I am also interested in this. So, after searching, I came across:

" , ( , ). / , - , . ( , , , ), ".

: http://www.linuxquestions.org/questions/showthread.php?p=2978839#post2978839

+5

< name, inode > , . , ls, "". " " , , .

, 4096 , , 4096, inodes.

+1

4096, , . , , , . , , , .

, , UNIX/Linux 4K, 4096. , "." "..", .

+1

Source: https://habr.com/ru/post/1710757/


All Articles