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

Answer Posted / kiruthiga.s

Syntax:
head -99 file name
if file name is test1.txt
Example:
head -99 test1.txt

Is This Answer Correct ?    4 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How does the system know where one command ends and another begins?

1861


Why is awk called awk?

768


How to display no of records in oracle using unix command?

805


How do I search for text in vi?

766


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:

1970


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

1012


What is the use of tee command?

763


What does sed command do in unix?

786


What do chmod command do?

808


What is grep r?

785


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

796


What is in grep command?

847


Write a command to kill the last background job?

792


What is the general format of unix command syntax?

1245


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

798