Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Command wc-1 returns illegal option

Tags:

unix

I'm working my way through a unix tutorial. Contrary to the expectations bestowed upon me by the tutorial when I enter the command

wc -1

I get the following

wc: illegal option -- 1
usage: wc [-clmw] [file ...]

Can anyone explain this and how i can use wc -1 to determine how many users are logged in

like image 378
Ben Pearce Avatar asked Nov 01 '25 10:11

Ben Pearce


1 Answers

maybe it was

wc -l

l for larry not number 1.

like image 167
John C Avatar answered Nov 04 '25 09:11

John C



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!