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

Does cp command overwrite files?

614


How does shebang work?

582


How do I search for text in vi?

574


Write a command to display a file’s contents in various formats?

613


What are file commands?

644






Why is it called a shebang?

563


What does the command '$ls | wc –l > file1' do?

671


How do I run a bash script?

573


What is the difference between awk and grep?

553


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

584


What are bash commands?

583


What is the significance of the 'tee' command?

588


Is command prompt unix?

570


How do I delete files from command prompt?

545


Name the general commands in using unix os for a beginner?

613