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

Answers were Sorted based on User's Feedback



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

Answer / prakash

tail -n5 filename

Is This Answer Correct ?    20 Yes 0 No

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

Answer / senthil

tail -5 filename

Is This Answer Correct ?    17 Yes 1 No

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

Answer / shyam

tail -5 filename

Is This Answer Correct ?    8 Yes 0 No

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

Answer / vinod

#tail -n5 filename

Is This Answer Correct ?    3 Yes 1 No

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

Answer / rams

tail -5 <filename>

Is This Answer Correct ?    2 Yes 0 No

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

Answer / arnab chowdhury

#tail -n 5 <filename>

Is This Answer Correct ?    2 Yes 0 No

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

Answer / prashant

#tail -5 "filename"

Is This Answer Correct ?    1 Yes 0 No

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

Answer / madhava reddy

#tail -5 <filename> press enter

Is This Answer Correct ?    1 Yes 0 No

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

Answer / gaurav chaudhary

#tail -n -5 <filename>

Is This Answer Correct ?    0 Yes 0 No

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

Answer / swarup devalekar

tail -n filename

Is This Answer Correct ?    3 Yes 6 No

Post New Answer

More Linux Commands Interview Questions

How do I run multiple commands in linux?

0 Answers  


What is gnu in linux?

0 Answers  


What is lsof command in linux?

0 Answers  


what is the diff b/w ext2 and ext3?

5 Answers  


Who linux commands?

0 Answers  






Which command is used to terminate a process?

0 Answers  


You suspect that you have two commands with the same name as the command is not producing the expected results. What command can you use to determine thelocation of the command being run?

0 Answers  


what are the Linux-based security tools?

4 Answers  


Explain about document formatting?

0 Answers  


What the command used for search file or files for specific text?

0 Answers  


What is the Difference between 'su' and 'su-' ?

5 Answers   Fujitsu, Locuz,


Explain about communication features in UNIX?

0 Answers  


Categories