unix command to find data

what is the command that you use in unix to  look at first 100 records from a file

and last 100 records from a file.
Who is Participating?
biraConnect With a Mentor Commented:
to read the 100 first:
    head -100 yourfile

to read the 100 last:

   tail -100 yourfile
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.