Skip to main content
IBM 
ShopSupportDownloads
IBM HomeProductsConsultingIndustriesNewsAbout IBM
IBM : developerWorks : Linux : Education - Tutorials
LPI certification 101 exam prep, Part 2
ZIPPDF (letter)PDF (A4)e-mail
Main menuSection menuFeedbackPreviousNext
5. Text processing
  


wc, head, and tail page 7 of 14


wc

wc prints out the number of lines, words, and bytes in the specified file or in the input stream (from a pipeline). Type man wc to learn how to fine-tune what counts are displayed.

head

head prints out the first ten lines of a file or stream. Use the -n option to specify how many lines should be displayed.

tail

Prints out the last ten lines of a file or stream. Use the -n option to specify how many lines should be displayed.


Main menuSection menuFeedbackPreviousNext
PrivacyLegalContact