What does the -m option do in the wc command?

0102

The -m option in the wc command is used to count the number of characters in a file. This includes all characters, regardless of whether they are letters, digits, or whitespace.

Here’s how you can use it:

wc -m filename.txt

This command will output the number of characters in filename.txt.

0 Comments

no data
Be the first to share your comment!