Filter with grep

How

  1. Pipe command output to grep followed by your search term
  2. For example: ls -la | grep Documents shows only files with "Documents" in the name
  3. Or: ps aux | grep python shows only processes containing "python"

Try this

Run ls ~ | grep Doc to see only files and folders in your home directory that contain "Doc" in their names.

Why it works

Find what matters, ignore the rest.

Open full demonstration ↗