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

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

683


What is {} in find command?

662


How do you grep a case insensitive?

621


Using unix command how to display no of records in oracle?

710


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

1692






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

892


How do you repeat a command in terminal?

707


What is the difference between awk and grep?

631


What does grep v grep do?

637


What is awk good for?

677


Is command prompt unix?

681


What is the first character of the output in ls l command?

729


What does pipe () return?

677


What is $0 bash?

749


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

768