Snippets

Find excluding a path:

sudo find / -not -path "/home/*" -size +10M

Find files containing text in a particular path:

grep -rnw '/path/to/somewhere/' -e 'pattern'
sudo grep -rnw /etc -e james

Leave a comment