How can I only see the first 14 lines of a file?

Answers were Sorted based on User's Feedback



How can I only see the first 14 lines of a file?..

Answer / prakash

head -n14 filename

Is This Answer Correct ?    28 Yes 2 No

How can I only see the first 14 lines of a file?..

Answer / harsh chauhan

#head -n 14 filename

Is This Answer Correct ?    21 Yes 1 No

How can I only see the first 14 lines of a file?..

Answer / senthil

#head -14 filename

Is This Answer Correct ?    10 Yes 3 No

How can I only see the first 14 lines of a file?..

Answer / pradeep

sed '14p' filename

Is This Answer Correct ?    1 Yes 0 No

How can I only see the first 14 lines of a file?..

Answer / madhava reddy

#head -14 <filename>

Is This Answer Correct ?    2 Yes 2 No

Post New Answer

More Linux Commands Interview Questions

what is the command to make a process to run in the background from foreground?

5 Answers   Patni,


What is cpu in top command?

0 Answers  


What is c++ makefile?

0 Answers  


what is the last file executed during the boot process?

5 Answers   iOPEX,


What does the ps command do in linux?

0 Answers  






How do I navigate in cmd?

0 Answers  


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

10 Answers   Reliance,


How do I check cores in linux?

0 Answers  


What is the command to list ALL (hidden also) files of current directory & it’s subdirectories?

6 Answers  


To Check Which Service is Running at Present in System what is the Command?

9 Answers   DCM,


What are commands in grammar?

0 Answers  


How does mkdir work in linux?

0 Answers  


Categories