[FIND] add a cheat to find all files that have the same node (hard link) as MY_FILE

This commit is contained in:
ImmortalPC 2014-04-02 11:12:09 +02:00
parent 1e7ee5b7fa
commit 041bcd2f63
1 changed files with 3 additions and 0 deletions

View File

@ -39,3 +39,6 @@ find . -maxdepth 2 -name build -type d
# To search all files who are not in .git directory
find . ! -iwholename '*.git*' -type f
# Find all files that have the same node (hard link) as MY_FILE_HERE
find / -type f -samefile MY_FILE_HERE 2>/dev/null