Filters
cat // Displays the text of the file line by line.
Ex: cat file.txthead // Displays the first n lines of the specified text files.
Ex: head file.txttail // It works the same way as head, just in reverse order.
Ex: tail file.txtsort // Sorts the lines alphabetically by default.
Ex: sort file.txtuniq // Removes duplicate lines.
Ex: uniq file.txtwc // wc command gives the number of lines, words and characters in the data.
Ex: wc file.txtLast updated