moodLearning Wiki

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision Both sides next revision
linux-commandline-tips [2019/03/13 00:15]
serbizadmin [Find Stuff]
linux-commandline-tips [2019/03/13 00:15]
serbizadmin [Find Stuff]
Line 1: Line 1:
 ~~NOTOC~~ ~~NOTOC~~
 ====== Find  Stuff====== ====== Find  Stuff======
-  * looking for duplicate filenames in 2 directories+  * looking for **duplicate** filenames in 2 directories
 <code> <code>
 fdupes --recurse dir1/ dir2/ </code> fdupes --recurse dir1/ dir2/ </code>
-  * find a word in a file +  * find a **word** in a file 
 <code> <code>
 grep -rnw '/path/to/files/' -e "pattern"</code> grep -rnw '/path/to/files/' -e "pattern"</code>
-  * find all socket files your system runs+  * find all **socket** files your system runs
 <code> <code>
 find / -type s find / -type s