Windows
On the Windows platform, we can use many tools to open a file and see its number of rows, most commonly Ms Office Word, Notepad, and so on. In MS-DOS, we can also use edit mode to open a file, but it can open up to 65280 rows of data. Here is a tool notepad++, which can open and display more rows of data, and automatically display line numbers.
Ubuntu
On the Ubuntu platform, we can use the WC command to count file information without opening the file.
Like what:
Wc-l myfile.txt
Number of rows in the statistics file
WC-M myfile.txt
Number of characters in the statistics file
WC-W myfile.txt
Number of words in the statistics file
Of course, the use of the Vim VI and other editing tools under the Linux platform is also very convenient to view the number of rows of large files
Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.
View the number of rows in a large file (Windows and Ubuntu)