How can I only see the last 5 lines of a file?

Answer Posted / gaurav chaudhary

#tail -n -5 <filename>

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the command to see on which port which service is running? And what is the difference between /etc/services file and net stat command?

520


In order to display the last five commands you have entered using the fc command, you would type?

522


How do I create a .txt file?

547


How do you ask politely?

534


What is SFC command?

485






What is the ipconfig command for linux?

525


What is clang tidy?

573


What is df -i command?

553


How do you do nslookup?

539


Which are the linux directory commands?

564


How do you grep?

563


What is umask 000?

550


What does kill in linux?

541


How do I search bash history?

507


What does p mean linux?

534