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

Answer Posted / hari

head 1 file

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Which command will print your home directory on screen?

666


What is the functionality of a top command?

704


What does grep v do?

643


Is command prompt unix?

681


What are the differences among a system call, a library function, and a unix command?

669






What does #!/ Bin sh do?

670


Why is grep called grep?

875


Who command in unix operating system?

736


Write a command that will find all text files in a directory such that it does not contain the word "amazing" in any form (that is, it must include the words amazing, amazing, or amazing)?

1068


What is $0 bash?

749


What is the behavioural difference between cmp and diff commands?

752


hw will u use awk in replacing cahrs and files

2813


Is there a way to erase all files in the current directory, including all its sub-directories, using only one command?

884


What are grep patterns?

674


What is the command to view process running?

673