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

Tyler Tyler (291)
2 minutes

This short guide will show you how to change you default shell on unix based operating systems.