How to get a character count in Unix

Total time: 1 minute 

If you want to find out how many characters are in a file here's how!

Posted in these interests:

unix
PRIMARY
13 guides
code
65 guides

Change directories to the directory where your target file is located, then type:

wc -l filename
replacing filename with the actual name of your file.

This should output:

$ wc -m test.php
427 test.php