Search
Command | Description |
---|---|
grep pattern files | Searches for pattern in files |
locate file | Finds all instances of file |
find /home/tom -name ‘index*’ | Finds file names that start with “index” inside /home/tom directory” |
grep -r pattern dir | Searches recursively for pattern in dir |
find /home -size +10000k | Finds files larger than 10000k in /home |