What does the `head` command do?

0270

The head command is used in Linux to display the beginning portions of a text file. By default, it shows the first 10 lines of the file. You can customize the number of lines displayed using the -n option. For example, head -n 15 filename.txt will show the first 15 lines of filename.txt. This command is particularly useful for quickly examining large files without loading the entire content into memory.

0 Comments

no data
Be the first to share your comment!