How to view the top file entries using the head command
In linux we can view the top file entries using the command: head
For example:-
1) Command:- head /test1/file1 - This will show the top 10 lines of the file
2) Command:- head -1 /test1/file1 - This will show the top 1 line of the file
3) Command:- head -3 /test1/file1 - This will show the top 3 lines of the file
Recommended Books:-
LINUX for Developers: Jumpstart Your Linux Programming Skills | First Edition | By Pearson Paperback
No comments:
Post a Comment