Home > Articles

  • Print
  • + Share This
This chapter is from the book

head

The head command displays the top part of text data. By default, the top ten lines are displayed. Use the -n option to display a different number of lines:

[student@localhost ~]$ ls -l | head -3
total 12
drwxrwxr-x. 2 student student  6 Aug 22 16:51 book
drwxrwxr-x. 2 student student  6 Aug 22 16:51 class
  • + Share This
  • 🔖 Save To Your Account