Hi All,
Q. I have one log file that log file contains application
message but the application message in log file not append
any date value. so after 1 to 2 date that file is big size ,
I want to delete contents only that was appended before 4
days ago from that single file and rest of the file contents
would be remains same.
Answers were Sorted based on User's Feedback
Answer / srinivas
there are two ways to find files
1)find /var/adm/log -atime -4
2)tail -f n 20 /var/adm/log
| Is This Answer Correct ? | 0 Yes | 0 No |
how u can push the user details in NIS
If you mistype a password, how do you clear it out to retype the password again?
what is milestone and what is use of it in Solaris
what r the files need to edit for DNS configuration..?
What is the difference between initialization & encapsulation in VXVM?
What is the config file in DNS?
purpose of lost+found..?
how to copy the disk image
what is state database replica and how to create it
Does "AMD Turion 64 X2 Processor TL50, 1.6 GHz and above" supports Solaris 10?.
what r the packages for intel machine when u install
What is the difference between failing and failed disks?
3 Answers IBM, Sascon, Sun Microsystems,