SerbizWiki

Differences

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

Link to this comparison view

Both sides previous revision Previous revision
linux-commandline-tips [2017/03/04 18:02]
serbizadmin
linux-commandline-tips [2017/05/08 21:59]
serbizadmin
Line 1: Line 1:
   * looking for duplicate filenames in 2 directories   * looking for duplicate filenames in 2 directories
-  ​fdupes --recurse dir1/ dir2/ +   fdupes --recurse dir1/ dir2/ 
   * find a word in a file    * find a word in a file 
-  ​grep -rnw '/​path/​to/​files/'​ -e "​pattern"​+   grep -rnw '/​path/​to/​files/'​ -e "​pattern"​ 
 +  * kill a process wholesale 
 +   kill $(ps aux | grep "​$process_term"​ | grep -v '​grep'​ | awk '​{print $2}')