Computer Hope

Other Pages

Home
Site map
Computer help

Dictionary
News
Q&A
What's new

Tools

E-mail this page
Print Preview
Edit this page



 

Linux / Unix head command

Quick links

About head
Syntax
Examples
Related commands
Linux / Unix main page

About head

Displays the first ten lines of a file, unless otherwise stated.

Syntax

head [-number | -n number] filename

-number The number of the you want to display.
-n number The number of the you want to display.
filename The file that you want to display the x amount of lines of.

Examples

head -15 myfile.txt - Would display the first fifteen lines of myfile.txt.

Related commands

cat
more
pg
tail

 

Index

Category:
Linux / Unix

Companies:
Click here

Related Pages:

Resolved

Were you able to locate the answer to your questions?

Home - Computer help - Contact - Dictionary - Links
Link to Computer Hope - Bookmark Computer Hope