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

what is virtual machine?

2 Answers   Infosys,


What is file system in unix??

10 Answers   Symphony,


What happens when we execute a unix command?

0 Answers  


Who wrote grep?

0 Answers  


How to check the flavor of UNIX?

8 Answers   HCL, Syntel,






write grep commands to select the lines that have exactly two characters

8 Answers   PSI Data Systems,


use of ls command

9 Answers  


What does #!/ Bin sh do?

0 Answers  


what are filters?

6 Answers  


how to unzip the contents of the gzip file

1 Answers   Epsilon,


Explain command to view process running?

0 Answers  


What is s and g in sed command?

0 Answers  


Categories