Description | Command |
---|---|
Find all instances of file | locate filename |
Find filenames larger than 10000k | find /home/peter -size +10000k |
Find filenames that start with xxx | find /home/peter -name 'xxx*' |
Search for a pattern in files | grep pattern files |
Search recursively for pattern in directory | grep -r pattern directory |