[FIND] add a cheat to find all files that have the same node (hard link) as MY_FILE
This commit is contained in:
1 parent
1e7ee5b7fa
commit
041bcd2f63
1 file changed
+3
@@ -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
|
||||
Reference in new issue
Block a user