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

Answer Posted / indu sharma

cat <filename> | head -n 8

Is This Answer Correct ?    2 Yes 17 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What command is used to switching between users in unix?

564


What does sed command do in unix?

566


What does the “echo” command do?

624


Is command prompt unix?

586


What does awk stand for?

615






Explain command to view process running?

617


Which command can you use to find the currently running process in unix server?

587


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

771


What is the function of grep command in unix?

591


What does this command do? Cat food 1 > kitty

980


Explain how to use grep command to list find the records of a file containing 10 different strings?

593


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

589


What does grep v grep do?

556


Write a command that will find all text files in a directory such that it does not contain the word "amazing" in any form (that is, it must include the words amazing, amazing, or amazing)?

962


What is the command to compare two files in unix?

624