mirror of
https://github.com/cheat/cheat.git
synced 2025-09-02 18:18:30 +02:00
[FIND] add a cheat to find all files that have the same node (hard link) as MY_FILE
This commit is contained in:
@ -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