How to change the default number of lines?

079

You can change the default number of lines displayed by the head command by using the -n option followed by the number of lines you want to display. For example, to display 20 lines, you would use:

head -n 20 filename.txt

Replace filename.txt with the name of your file.

0 Comments

no data
Be the first to share your comment!