coreutils: File characteristic tests

1 
1 16.3.3 File characteristic tests
1 --------------------------------
1 
1 These options test other file characteristics.
1 
1 ‘-e FILE’
1      True if FILE exists.
1 
1 ‘-s FILE’
1      True if FILE exists and has a size greater than zero.
1 
1 ‘FILE1 -nt FILE2’
1      True if FILE1 is newer (according to modification date) than FILE2,
1      or if FILE1 exists and FILE2 does not.
1 
1 ‘FILE1 -ot FILE2’
1      True if FILE1 is older (according to modification date) than FILE2,
1      or if FILE2 exists and FILE1 does not.
1 
1 ‘FILE1 -ef FILE2’
1      True if FILE1 and FILE2 have the same device and inode numbers,
1      i.e., if they are hard links to each other.
1