User Tools

Site Tools


bash:commands:search_commands

Differences

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

Link to this comparison view

bash:commands:search_commands [2021/01/26 15:47] – created peterbash: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 'xxx*'|
 +|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

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki