in a growing log file how will you see the 1st 99 lines?
Answers were Sorted based on User's Feedback
Answer / sonali
head -99 <file name> - display 1 st 99 lines
tail -99 <file name> - display last 99 lines
Is This Answer Correct ? | 20 Yes | 2 No |
Answer / anshul basra
$ head -99 <filename> will show first 99lines of that file.
Is This Answer Correct ? | 7 Yes | 0 No |
Answer / 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 |
Answer / dibya lochan giri
to see the last 99 lines in a log file you can use the cmd
$ tail -99f <file name>
Is This Answer Correct ? | 9 Yes | 7 No |
Answer / dibyalochangiri
ans-using cmd $tail -99f <log file name>
Is This Answer Correct ? | 5 Yes | 11 No |
What's a command word?
Which command should you use to find the remaining disk space in unix server?
What is the comma to display different lines that are found when compare two files?
distinguish between physical addresses and logical address?
23 Answers College School Exams Tests, CTS, Infosys, SAX, TATA, TCS,
Which command will print your home directory on screen?
How can you see the command line history?
What is difference between grep and find command in unix?
What UNIX command will control the default file permissions when files are created?
which script will invoke first ,when /etc/init.d starts
What command would users use to see what file one page at a time in UNIX?
what is the use of "grep" command?
what is the command to print last 8 lines of any text file.