Friday, January 1, 2021

Write the syntax for displaying the last 6 lines of a file data in Linux

 
tail command : we can pass the parameter .you want to how much line in retrieves data from file . 

Syntax : tail   -n  /var/log/messages

Display last 6 line in file :  

ex :  tail -n 6 /var/log/messages  

ex:  tail -n 6 auth.log




No comments:

Post a Comment