Commands to know:

CommandPurposeUsage
catReads an entire file and sends it to STDOUTcat apache.log
headLike cat, but reads a certain number of lines from the start or top of a filehead apache.log
head -20 apache.log
tailLike head but reads from the end of a file
cutCuts each row of text into columns based on a delimiter and then selects a column or columnscat apache.log | cut -d ” ” -f 2
Reads apache.log, splits it into columns on each space, and then prints out only the second column of each row.
sortSort
uniqUniqueMake sure to run output through sot before sending it to uniq -c or you’ll get incorrect results.
wcWord Count
trReplaces one character with another onecat textfile.txt | tr a B
sedReplaces a string of characters with a different stringcat textfile | sed s/one/two
Also supported inside Discord. Try sending s/one/two/g as a message and see it edit the word “one” in your last message to “two”.