Filters/Redirection Commands

Unix 

 Filters/Redirection Commands:

wc - print the number of newlines, words, and bytes in files

wc file1


more : display the information on the page by page. The file contains more information it enables the scrollbar and arrow to move to the next page

more file1


head : displays top 10 lines in a file by default

head file1

head -2 file1 → displays the first 2 lines

tail -  displays the last 10 lines in a file by default

tail file1

tail -5 file1 → displays the last 5 lines


sort : used to sort the files

sort file1


tee - read from standard input and write to standard output and files


Comments

Popular posts from this blog

Process/Job Control Commands

Information Commands

Miscellaneous and Shell Programing Commands