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 the difference between cat command and more command?

0 Answers  


How we will execute previous command in vi editor?

8 Answers   Infosys,


What is $0 bash?

0 Answers  


what is the significance of "su" command?

3 Answers  


What does the command '$ls | wc –l > file1' do?

0 Answers  






What is a command and examples?

0 Answers  


What is the pipe command?

0 Answers  


their is a file1,file2 and i want to append file1 data to file2?

9 Answers   IBM,


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

0 Answers  


What is the comma to show the space allocation of files?

0 Answers  


How to check the flavor of UNIX?

8 Answers   HCL, Syntel,


How to add content of one file into another file at the beginning

12 Answers  


Categories