If we want to see first 35 lines of a file which command we
have to use?

Answer Posted / umesh

cat filename | head -35

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How does shebang work?

588


Can you explain a little bit about command substitution?

607


When i run a programm of orphan process. Instead of getting child's parent (ppid)=1 ..i get 1400 and it varies as per system. How can i findthe right soluion??? My pgm: #include # include int main() { int pid; pid=fork(); if(pid < 0) {exit(-1);} else if(pid==0) { printf("Child Process is Sleeping ..."); sleep(10); printf("Orphan Child's Parent ID : %u ",getppid()); } else { printf("Parent Process Completed ... %u ",getpid()); exit(0); } return 0; } Output:

1758


What is difference between grep and find command in unix?

577


Which command should you use to find the remaining disk space in unix server?

701






What command is used to switching between users in unix?

560


What is the use of the tee command?

598


How do I search for text in vi?

584


What happens when we execute a unix command?

597


What do chmod, chown, chgrp commands do?

634


What are the general commands in using unix os for a beginner?

577


What is unix command?

584


How do you grep recursively?

555


Does cp command overwrite files?

620


What is grep command in unix with examples?

604