answersLogoWhite

0

wc is used to count the characters/words/lines in a file or files. You might use it to see how productive you've been (did you finish that 5000 word essay you were supposed to write) or to see how productive some one else has been...

The options control characters/words/lines: with no options it gives all three:

$ wc notes

56 219 1607 notes

There are 56 lines, 219 words, 1607 characters.

$ wc -l notes

56 notes

I just wanted to know how many lines.

User Avatar

Wiki User

14y ago

Still curious? Ask our experts.

Chat with our AI personalities

BeauBeau
You're doing better than you think!
Chat with Beau
JordanJordan
Looking for a career mentor? I've seen my fair share of shake-ups.
Chat with Jordan
DevinDevin
I've poured enough drinks to know that people don't always want advice—they just want to talk.
Chat with Devin
More answers

WC command count the Words, Lines and Characters of the file

Ex: WC [Filename]

User Avatar

Wiki User

14y ago
User Avatar

Add your answer:

Earn +20 pts
Q: In unix what does the wc command output?
Write your answer...
Submit
Still have questions?
magnify glass
imp