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

Answer Posted / rams

tail -5 <filename>

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do you check which file consuming more space in linux?

473


What is difference between sh and bash?

514


How do you copy in linux terminal?

523


How do you do nslookup?

539


Explain command grouping in linux?

555






Which command will show you free/used memory?

562


What does f mean linux?

532


Describe the mknod command and when you’d use it.

547


What are grep patterns called?

536


Which command is used to review boot messages?

563


How do I run a .sh file in linux?

555


What is env command in linux?

510


How compile c++ program in cmd?

602


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


What is sudo bash command?

548