In Linux, wc is a small command line utility that can be used to display details like number of words, newlines, bytes etc for a file. The wc command can display some extra information like length of the longest line in the file. In this article we will discuss the usage of this command through examples.
Here is the basic syntax of wc command :
wc [OPTION]... [FILE]...
As clear from the syntax, multiple files can be supplied as input to the Linux wc command.
Linux wc command examples
The file input.txt will be used in... [More]