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 ‘system calls’ with respect to unix commands?
How do you list the files in an UNIX directory while also showing hidden files?
What is command substitution?
How to see unused port number in Solaris?
What is the command to check ports active in UNIX?
how will you convert a general file to a hidden file?
Which command is used to copy files?
How do you create a file in UNIX
36 Answers Accenture, EMG, Nokia, QA, TD,
describe the escaping sequence characteres in unix
boot process?
How i'll delete a particular line from the file? Please give answer as soon as possible. Thanks in advance.
How does the user view the contents of a text file in UNIX?