- Search for a word or pattern:
grep "word" file.txt(add -i to ignore case, -n for line numbers). - Change ownership:
chown user:group file(add -R for a directory and its contents). - Terminate a process:
kill PID(kill -9 PID to force; pkill name by name). - First 10 lines:
head -n 10 file.txt(10 is head’s default, so head file.txt also works).
— rhs