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 UNIX command will control the default file permissions when files are created?

4 Answers  


how to make IGNITE-BACKUP in HP-UX?

4 Answers   HP,


Why is grep called grep?

0 Answers  


What is difference between grep and find command in unix?

0 Answers  


How do you change your account's password?

6 Answers  






29. How to display top 10 users Who | head -10 | wc –w

4 Answers   TCS,


What is mtime in find command?

1 Answers  


Enlist some filename manipulation commands in unix.

0 Answers  


How to rename files and folders?

7 Answers   IBM, Oracle,


If JFS file system is 100% full how we can increase the file system ?

3 Answers  


How do I use grep to find a file?

0 Answers  


In vi editor how do you execute unix commands?

10 Answers  


Categories