bash - What does wc do? And how do you use it to count words in a file? -


this question has answer here:

i'm new linux/unix world found decent online resource https://linuxjourney.com that's sort of explains general command line code. i'm running oracle vm ubuntu based variant. i'm away computer don't know version i'm it's bash4

wc (word count) simple command line utility displays number of words in file. useful text files. word documents, libre office documents etc different matter.

simply type 'wc ' , output number of words in file. if need more information, type 'man wc' in terminal , show full list of options.