Tag Info

New answers tagged

2

With GNU coreutils (Linux, Cygwin) since version 8.22, you can use du --inodes, as pointed out by lcd047. If you don't have recent GNU coreutils, and there are no hard links in the tree or you don't care if they're counted once per link, you can get the same numbers by filtering the output of find. If you want the equivalent of du -s, i.e. only toplevel ...


2

Create hard links. For example : sudo ln /etc/profile /etc/new_prof Now /etc/new_prof and /etc/profile both will have the same inode number : $ ls -li /etc/*prof* 3014852 -rw-r--r-- 3 root root 665 Aug 20 2013 /etc/new_prof 3014852 -rw-r--r-- 3 root root 665 Aug 20 2013 /etc/profile


3

The value in the superblock shown by tune2fs is the first inode number usable for new files, while the root directory must always exist when the file system is created. https://ext4.wiki.kernel.org/index.php/Ext4_Disk_Layout#Special_inodes documents the inode numbers which are used internally by file systems features.



Top 50 recent answers are included