I use huge data files, sometimes I only need to know the number of lines in these files, usually I open them up and read them line by line until I reach the end of the file<
On Unix-based systems, use the wc command on the command-line.
wc