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

Answer Posted / chandrani

head -8 <file name>

Is This Answer Correct ?    9 Yes 84 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Which command is used to create a directory?

577


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 is pipe command in unix?

677


What is grep in bash?

591


What are grep patterns?

581






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

633


What is the difference between cat command and more command?

601


What do chmod command do?

606


What is the functionality of a top command?

628


What does the “echo” command do?

626


Write a command to kill the last background job?

622


What is awk good for?

590


What is the general format of unix command syntax?

698


How do I run a whois command?

606


What does the command ' $who | sort –logfile > newfile' do?

774