what is the command to print last 8 lines of any text file.

Answer Posted / jupiter

#tail -n 8 <file-name>

Is This Answer Correct ?    55 Yes 16 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do I find previous commands in unix?

596


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:

1766


What does grep v do?

562


Name the unix command to find how many days the server has been up.

608


What is grep and how do you use it?

581






What is awk used for?

624


What is unix command?

584


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

801


Explain ‘system calls’ with respect to unix commands?

606


What is a bash command?

627


What is the difference between grep and grep?

569


What is awk good for?

590


What is the function of grep command in unix?

593


Which command is used to find whether the system is 32 bit or 64 bit?

633


What is the general format of unix command syntax?

698