Javatpoint Logo
Javatpoint Logo

Linux wc

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



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

Help Others, Please Share

facebook twitter pinterest

Learn Latest Tutorials


Trending Technologies

B.Tech / MCA