in a growing log file how will you see the 1st 99 lines?

Answer Posted / dibya lochan giri

to see the last 99 lines in a log file you can use the cmd
$ tail -99f <file name>

Is This Answer Correct ?    9 Yes 7 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the use of the command 'ls -x chapter[1-5]' ?

659


What is rmdir command?

547


Explain command to view process running?

611


What is command statement?

540


What is the use of the tee command?

596






What is grep in bash?

582


What command will change your prompt to myprompt?

696


How do you grep a case insensitive?

536


What is the use of egrep command in unix?

624


Is grep faster than awk?

556


What happens when we execute a unix command?

597


What is the search command in unix?

597


What is grep short for?

554


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 the use of cut command in unix?

688