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.
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
Post a Comment