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 |
in a growing log file how will you see the 1st 99 lines?
What is “chmod” command?
Can you write a command to erase all files in the current directory including all its sub-directories?
Are you in or at the office?
How to identify whether a file is normal file or directory?
distinguish between paging and swapping?
what is the shell for dos,nt operating systems?
How we will execute previous command in vi editor?
What is nr in awk command?
What does 'mkdir' command do in UNIX?
What is the use of the tee command?
What command is used to replace the existing string with some other?