bash:commands:search_commands
Differences
This shows you the differences between two versions of the page.
bash:commands:search_commands [2021/01/26 15:47] – created peter | bash:commands:search_commands [2021/01/26 15:48] (current) – peter | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== BASH - Commands - Search Commands ====== | ====== BASH - Commands - Search Commands ====== | ||
+ | |||
+ | ^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 ' | ||
+ | |Search for a pattern in files|grep pattern files| | ||
+ | |Search recursively for pattern in directory|grep -r pattern directory| | ||
+ | |||
+ | |||
+ | ---- | ||
bash/commands/search_commands.1611676065.txt.gz · Last modified: 2021/01/26 15:47 by peter