Jan 30, 2008

"rm *" command fail and return "The parameter list is too long" in AIX

In IBM AIX environment and want to delete lots of useless log files , issue "rm *".
But the command fail and system return "The parameter list is too long" message.
Try following , you can delete all files under current folder which were modified 1 day ago.

find . -type f -mtime +1 | xargs -i -exec rm -rf {} \;

0 意見: