Computer Science - Linux - Discussion

Discussion :: Linux - Section 1 (Q.No.1)

1. 

What command is used to count the total number of lines, words, and characters contained in a file?

[A]. countw
[B]. wcount
[C]. wc
[D]. count p
[E]. None of the above

Answer: Option C

Explanation:

No answer description available for this question.

Raj Singh said: (Jun 14, 2011)  
[root@station2 ~]$ wc install.log
806 1620 32292 install.log

Amar said: (Nov 29, 2011)  
[root@station2~]$wc install.log

Manish said: (Jan 24, 2012)  
[root@station2~]$wc install.log

Swapneel said: (Mar 21, 2014)  
wc -l filename : will give the no.of lines.

wc -w filename : will give the no.of words in the file.

Reet said: (May 21, 2014)  
wc--- will give the number of lines words and bytes.

Suresh said: (Nov 11, 2014)  
wc: The command it self contains the word count.

It counts the number words are available in the file.

Nv Narayana said: (Feb 17, 2015)  
wc -l A to count the no of lines in file.

wc - c to count the no characters in the file.

wc-w to count the no of words in the file.

Vineet said: (Jul 29, 2016)  
wc -l filename -> lines words character.

Dauntlessrony said: (Jun 19, 2017)  
wc -l, -c, -w.

Sonali Shelke said: (Dec 19, 2017)  
wc is the only command in Linux which is used for counting total no characters, words and lines.

Anupam Thakur said: (Feb 4, 2018)  
The full form of WC is word count.

Anupam Thakur said: (Feb 4, 2018)  
The wc (word count) command in Unix/Linux operating systems is used to find out number of newline count, word count, byte and characters count in a files specified by the file arguments.

Adarsh said: (Sep 30, 2019)  
wc is the right ans for this question becase wc <file name > uses for cout lines, no of word and total char.

Post your comments here:

Name *:

Email   : (optional)

» Your comments will be displayed only after manual approval.