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 |
Why is it called a shebang?
What does sed command do in unix?
How do I search for text in vi?
How do you change your account's password?
how will you login one server's shell prompt to an another server?
5 Answers Cosmic Infotech, Perot Systems,
How do you find files in Unix?
What Command will remove a Directory in UNIX?
what is the advaantage of each user having its own copy of the shell?
Write a command to display a file’s contents in various formats?
What is the pipe command?
Suppose 1000 processes are running on the system out of those if you have to show only certain process ids which command will you use?
Explain command to show the space allocation of files?