Welcome to the Linux Foundation Forum!

How to list all files and directories that have the maximum number of the same inode number?

Options

how to list all files and directories that have the maximum number of the same inode number in the home directory?

for example:

inode file/directory name

112233 file1
112233 myfile
112233 myDocs

345566 Docs
345566 Downloads

then it should print
/home/sysadmin/file1
/home/sysadmin/myfile
/home/sysadmin/myDocs

as the inode 112233 has more links than the inode 345566

Categories

Upcoming Training