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 do you boot from CD-ROM?
How can you check that a particular volume is mirrored?
Performance monitoring tools?
how to copy the disk image
what are the real time issues faces normally in daily routine for a solaris admin?
What are the various clusters you have worked on?
how to see the kernel information or how many bit operating system you have
what is the main difference between windows , unix ,linux, operating syatems? And why the companies in the industry prefer to use solaris os ? why may be the reason?
What is the Boot procedure in Solaris(Unix)
What is VTS?
8 Answers Bharti, Sun Microsystems, Suncore Microsystems,
how can u schedule for snapshot
how to create nis master,slave,client