$ sudo -u jboss rm -rf System*
-bash: /usr/bin/sudo: Argument list too long
$ ls -l | wc -l
$ ls -l | trace.log | wc -l
$ ls -l | grep SystemOut.log* | wc -l
-bash: /bin/grep: Argument list too long
There are around 5000 SystemOut.log.2010**** files under /opt/jboss/logs, i was not able to delete using the above command.
Please provide valid command or better way of deleting large number of files at a time.