Skip to content

File Content Info

wc

The wc with file name prints the output as: number of lines number of words number of characters

To print only number of lines: wc -l

To pint only number of characters: wc -c

To print number of words: wc -w

It can also print the combinations of -lc or -lw or -cw


du

calculate size of item in directory