How to remove large log files:
Assume the present working directory (PWD) is /var and we want to delete all log files generated on Apr 30:
#cd /var
#for i in `ls -lrt | grep -i "Apr 30" | awk 'print {$9}'`
do
rm -rf $i
done
Assume the present working directory (PWD) is /var and we want to delete all log files generated on Apr 30:
#cd /var
#for i in `ls -lrt | grep -i "Apr 30" | awk 'print {$9}'`
do
rm -rf $i
done
Thanks...
Kiran Jadhav
**Let's Share our knowledge and keep visiting here**
No comments:
Post a Comment