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

Answer Posted / sowmya

head -35 filename

Is This Answer Correct ?    6 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can you enlist some commonly used network commands?

594


What is the significance of the 'tee' command?

594


What is merge command in unix?

940


What is a bash command?

622


How do I search for text in vi?

578






What is the use of finger command?

590


What is difference between grep and find command in unix?

573


why metadb requires a seperate slice to create Solaris volume manager

2547


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

790


How does shebang work?

584


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:

1752


What is unix command?

577


Which command is used to delete all files in the current directory and all its sub-directories?

655


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

574


What is the functionality of a top command?

618