This page demistrates Unix's wc Command and gives examples of the most commonly used options.

Code Output

-c option

         This option prints out the number of bytes inside of a file.

Output

-m option

         This option prints out the number of characters (chars) that are in the file.

Output

-l option

         This option prints the number of lines in the file.

Output

-L option

         Prints the length of the longest line.

Output

-w option

         Prints the number of words in the text file.

Output