How to display more than 10 lines?

0102

To display more than 10 lines using the head command, you can use the -n option followed by the number of lines you want to display. For example, to display the first 20 lines of a file, you would use:

head -n 20 /path/to/file

Alternatively, you can use a shorter syntax:

head -20 /path/to/file

Both commands will show the first 20 lines of the specified file. You can adjust the number to display as many lines as you need.

0 Comments

no data
Be the first to share your comment!