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

What is the example of command sentence?

0 Answers  


Compare between SYS V launched processes and Xinetd processes in Linux.

1 Answers  


I know ssh, telnet, dns,apache all are worked on TCP/UDP but i want to know any one service which are working on UDP only?

10 Answers   Wipro,


How do you create a blank file in linux?

0 Answers  


How do I get to root directory in linux?

0 Answers  






my clients are getting services from servers but how to know which client is using which service. is there any files to keep information about these? clients used ftp, nis, samba, apache, squid, nfs and mail services how to know how many users got service from server side with date,time and client system ip ?

3 Answers   Wipro,


what is snmp and for what purpose we are using in linux

4 Answers  


What does chmod 777 do?

0 Answers  


What is grep command?

0 Answers  


The command ‘umask -S’

0 Answers  


Where is command history stored in linux?

0 Answers  


How do you ask politely?

0 Answers  


Categories