Build the command using pipes and redirects
Chain commands together to build powerful one-liners:
| - Pipe: sends output of left command to input of right command> - Redirect stdout to file (overwrites)2> - Redirect stderr to fileExample: ls | grep log | wc -l
This lists files → filters for "log" → counts the results
ls - List directory contentscat - Display file contentsgrep - Search for patternswc - Count lines, words, characterssort - Sort linesuniq - Filter duplicate lineshead, tail - First/last lines of fileawk - Text processingxargs - Build command from inputfind - Search for filesdu - Disk usagesystemctl - Control system servicesnetstat - Network statistics