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 |
Explain command to display different lines that are found when compare two files?
what does the job command do?
What UNIX command will control the default file permissions when files are created?
How to get the operating system's information in unix?
how to delete entire records in unix ?
How do I search a whole word in vim?
what is the cmd to remove the comment lines from a file and to display the original text without comments? thanks in advance......
what are processor execution levels and priorities?
Who invented grep?
What is the search command in unix?
How can you change the owner or group of a file?
What is the output of : $ ps-e $ ps-a commands