Sunday, 16 January 2022

LINUX - HOW TO VIEW THE FILE ENTRIES USING THE HEAD COMMAND

 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:-




No comments:

Post a Comment