Random Useful Commands

Whats here:


Grep

Useful cat command to find particular line in a file:

Installing downloaded packages (straight from website):

Grep Flags:

grep -w - matches entire words. example: -w cat, will only find full word cat

grep -i allows case-insensitive matches -example, cat, CAT

grep -c - counts the number of lines that match, similar to wc -l

grep -v - inverts, returning lines that do not match the pattern

grep-a

grep -o - returns only the matching words, not the entire line