mirror of
https://github.com/cheat/cheat.git
synced 2024-12-18 18:55:06 +01:00
[FIND] add a cheat to find all files that have the same node (hard link) as MY_FILE
This commit is contained in:
parent
1e7ee5b7fa
commit
041bcd2f63
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user