Difficulty Level: Beginner
This is a beginner tutorial that shows how to use the head,
and also the tail command in CentOS6.
Commands Used:
ls -l /etc [greater-than sign] ls-output.txt
head -n 5 ls-output.txt
tail -n 5 ls-output.txt
ls /usr/bin | tail -n 5
tail -f /var/log/messages
Music by: Radioactivist
Soundtrack: Mau5House
Disclaimer:
I do not work for RedHat. This tutorial was made to be informative but does not replace the professional advice a RHCSA or RHCE certified person could give you. Please seek a professional for mission critical assignments.
Thank you,
iTorial