what does the command 'wc' do?

Answers were Sorted based on User's Feedback



what does the command 'wc' do?..

Answer / samrat biswal

wc -l <file_name> will display the number of lines present
in that file or the record count
wc -w <file_name> will display the number of words present
in that file
wc -c <file_name> will display the number of character
present in that file

Is This Answer Correct ?    12 Yes 0 No

what does the command 'wc' do?..

Answer / payal

wc command counts the number of lines,words and characters
present in a file.

Is This Answer Correct ?    9 Yes 0 No

what does the command 'wc' do?..

Answer / amit

wc command generally used for count the no. of words(-w),
counts the no of lines(-l), count the no of character(-c)
example
wc -c<b
where b is the file. wc command check the character from
file b.similrly use the -l at the position of -c then it
counts the no of lines present in the file b.

Is This Answer Correct ?    3 Yes 0 No

what does the command 'wc' do?..

Answer / abdessa

wc command counts the number of lines,words and characters
present in a file

Is This Answer Correct ?    1 Yes 0 No

Post New Answer

More Unix Commands Interview Questions

Enumerate some of the most commonly used network commands in unix?

0 Answers  


Is there any method to erase all files in the current directory, along with its all sub-directories, by using only one command?

0 Answers  


What is “chmod” command?

0 Answers  


what is the difference between pipe(|) and tee command..

3 Answers   Cap Gemini, Rolta,


Explain how to use grep command to list find the records of a file containing 10 different strings?

0 Answers  






distinguish between multi-tasking,multi-user,multi- processing and time sharing?

7 Answers   Alcatel, Cisco, Infosys, University Exams,


How to rename files and folders?

7 Answers   IBM, Oracle,


The command grep first second third /usr/you/myfile a) prints lines containing the words first, second or third from the file /usr/you/myfile b) searches for lines containing the pattern first in the files second, third, and /usr/you/myfile and prints them c) searches the files /usr/you/myfiel and third for lines containing the words first or second and prints them d) replaces the word first with the word second in the files third and /usr/you/myfile e) None of the above

4 Answers   IBM,


What does the metacharacter mean?

0 Answers  


what do you understand bythe term 'de-mountable volumes'?

2 Answers   Infosys,


What are bash commands?

0 Answers  


How do you execute a UNIX command in the background?

6 Answers  


Categories