file inode comparison

The test command can also do a few basic comparisons between files. The -ef comparison tests if
two files are actually hard links to the same inode on the same filesystem. This saves quite a bit of
trouble, because although stat --format=%i or ls -i can provide the inode number of a file, you
would still have to check that the two files are on the same filesystem.

Comments

Popular posts from this blog

teamcity Automatic Agent Start under Linux

15 managing disk - understanding /etc/fstab xfs_admin mount -o rw,remount /

HAproxy logging