A file has 1000 lines and i want to display only 1st line
how to do it?
pls ..tel me

Answer Posted / namdeo patil

head -n 1 filename

Is This Answer Correct ?    8 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why is it called a shebang?

566


Explain command to view process running?

611


What is pipe command in unix?

668


What is the comma to show the space allocation of files?

558


What is the command to compare two files in unix?

618






What is the search command in unix?

597


Which command is used to copy files?

554


What is the unix command to confirm a remote host is alive or not?

579


How can we use grep command in unix?

610


Explain the steps that a shell follows while processing a command.

681


Are you in or at the office?

609


Which command is used to create a directory?

569


What is ctrl d?

592


Who command in unix operating system?

659


What is ‘ps’ command for?

614