sangkrit

Free Access

Any mobile device running on android for accessing this homeschool program of internet age SANGKRIT.net, could always get reviewed here if that simplifies the process in the hands of our users.

Contact: System at Sangkrit dot Net

Linux: File Content


Head Command: Head (head) command displays first ten lines of a file. Example: head /etc/passwd
It can also display any other number of lines as per your need by writing the number of lines with command as shown in the following example. Example: head -5 /etc/passwd

Tail Command: Similar to head but as clear by its name it displays last ten lines of any file.
tail file.txt
Here also you can give the number of lines you want to see as show below:
tail -6 file.txt


Leave a Reply