Posts

Showing posts from July, 2022

wc Command

Image
WC Command This command is one of the daily use commands in Linux operating system, it should be known to every Linux user.  With the help of this command, we can find out how many newlines, words and bytes are present in the file. Suntax : $wc [OPTION].... [FILE] ...... FILE :- Here we write the name of the file for which we want to find the number of newlines, words or bytes. OPTION :- In this, we write the name of the options, which tell that after all we have to find the number of newlines, number of words or number of bytes of that file.    There are many options of this command, we will know all these options in turn, as well as tell about how to use it.  OPTIONS :- * -c (or --bytes ) :-  It is used to find the size of the file in bytes. * -m (or --chars) :-  Used to find the number of characters present in the file. * -l ( or --lines) :-  It is used to find the number of newlines in a file. * -L (or --max-line-length ) :- It is used to find the size of the line with maximum widt