Rm * An error occurred while deleting too many files/bin/rm: Argument list too solved the problem of too many Chinese files in a single directory in Linux, if you try to use rm * to delete all files, the error/bin/rm: Argument list too long will be reported. it is said that this is because all exec functions (execl, execlp, execle, etc.) in the Linux Kernel finally call execve (), execve stores the command parameters and environment variables that are passed to the new process through a 128 k memory space. When the command line parameters generated by commands such as rm exceed 128 kb, The E2BIG error is reported in Linux kernel. The solution of www.2cto.com is to use the find command to first find the file name to be deleted and then use the pipeline to batch pass it to rm for deletion. For example, to delete the files in the mqueue directory where sendmail is accumulated: find/var/spool/mqueue/-type f-name '*'-print0 | xargs-0 rm
(The-0 parameter prevents space in the file name and rm recognizes it as two different files .) Author: h13327840728