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 to know OS release?
If My Server is Suddenly Down what are the reasons? Tell me Exact time of Ping?
Does "AMD Turion 64 X2 Processor TL50, 1.6 GHz and above" supports Solaris 10?.
what are the various layouts that are available in VxVM?
What is lofs in zones
how to test and Failover services to every node in vcs tell me step by step?
hoe to know current run level?
What happened if vxconfigd is disabled?
what is difference between tar and cpio
what are soft links and hard links, and differentiate them.
What is the zone in DNS?
How do you boot from CD-ROM?