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

List the three main parts of an operating system command?

0 Answers  


what is ldd?

7 Answers   IBM, Magnum, TCS, Tech Mahindra,


Q. If we transfer 100 files by ftp to remote server, how to know the files are successfully transfer or some file are not transferred ?

6 Answers   IBM, IMB,


What is ulimit command?

0 Answers  


What is difference between comm and CMP command?

0 Answers  






Is llvm a compiler?

0 Answers  


What does cd do in linux?

0 Answers  


In a company there are 3 groups i.e Finance, HR and Marketing. Each groups having 3 members. There is a file named as file1.txt. The permission set for the above file is rwx-rw----x. Now the question is only the members of Hr and Marketing group can view and edit the file. But the file is not accessible to the members of Finance Group. Can anyone tell me what would be the exact command for linux.root@localhost#<type the exact linux command>

3 Answers   Six Sigma,


What is the pwd command?

0 Answers  


What would be the result of issuing the command cat phonenos?

0 Answers  


Which priority has the process?how do u view?

3 Answers   Yahoo,


I have my default runlevel is init5 now i have configured to init 3,now i wanna run my system in init3 process without reboot the system .How will you do for this scenario?

6 Answers   Span Systems,


Categories