Computer Science - Linux - Discussion
Discussion Forum : 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?
Discussion:
14 comments Page 1 of 2.
Nv narayana said:
1 decade ago
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.
wc - c to count the no characters in the file.
wc-w to count the no of words in the file.
(1)
Anupam Thakur said:
8 years ago
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.
(1)
Idd moshi said:
3 years ago
Wc -l filename.
(1)
Raj Singh said:
1 decade ago
[root@station2 ~]$ wc install.log
806 1620 32292 install.log
806 1620 32292 install.log
Amar said:
1 decade ago
[root@station2~]$wc install.log
Manish said:
1 decade ago
[root@station2~]$wc install.log
Swapneel said:
1 decade ago
wc -l filename : will give the no.of lines.
wc -w filename : will give the no.of words in the file.
wc -w filename : will give the no.of words in the file.
Reet said:
1 decade ago
wc--- will give the number of lines words and bytes.
Suresh said:
1 decade ago
wc: The command it self contains the word count.
It counts the number words are available in the file.
It counts the number words are available in the file.
Vineet said:
9 years ago
wc -l filename -> lines words character.
Post your comments here:
Quick links
Quantitative Aptitude
Verbal (English)
Reasoning
Programming
Interview
Placement Papers