Linux: Display First Ten Lines (1-10) With Numbers Command
You can use the “head” command in the terminal to display the first n lines of a file in Linux. By default, the “head” command displays the first 10 lines of the file. For example, to display the first 10 lines of a file “filename” with line numbers, use the following command: $ cat -n … Read more