The head command is used to display the first lines of any text file.

By default, it shows the first ten lines, but you can change this number to your liking.

For example, if you want to display only the first five lines of the notes.txt file, issue the command:

head -n 5 notes.txt.
Author

I’m Michael , a tech geek. Join me on the journey through interwebs to find latest news, tips and hints.

Write A Comment