Javatpoint Logo
Javatpoint Logo

Linux wc

The 'wc' command helps in counting the lines, words and characters in a file.

Syntax:

Example:

Linux wc Filters1

Look at the above snapshot, command "wc exm.txt" displays all three counts together, command wc -l exm.txt displays line counts, command "wc -w exm.txt" displays word counts and command "wc -c exm.txt" displays character counts.

Next TopicLinux od




Please Share

facebook twitter google plus pinterest

B.Tech / MCA


Learn Latest Tutorials