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.

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do u know that,what patch can be applicable on the system?

1829


In a two node cluster i have typed #hastart command in one node.The cluster is starting in second node also,what is going in background?

1768


what is mean by netfmd in sun cluster what is the use of netfmd and what is the relation between ccd and netfmd?

2278


Local zone in shutting down state.how to bring state of zone to installed?

1641


when i am starting solaris10 with 'fail safe mode' on intel machine it is asking "#starting shell".what is it and how to solve this problem?

2051






What is the use of Sam utility in solaris

2381


What is cachefs?

1951


What is the zone in DNS?

1916


Hi, I need information regarding LDOMS.Like What is LDOMS ,Creation of LDOMS, errors on LDOMS, troubleshooting LDOMS...etc.... pls post the info. Regards, Naresh

2770


How to create a gateway?

6407


how can u give space garentee for volume in netapp storage

2831


hi to all,, i need few real time issues please provide me,, if you have any,,,

1769