If you are getting an error message as “Argument list too long” while attempting to run a command at Linux shell “find” command will be your lifeguard.
This error message tells you, the directory you are trying to work contains a huge number of files. That’s why the shell can not handle this operation.
Solution is simple. Try taking to pieces your batch. For instance try running cp conf*.txt /tmp instead of using cp * /tmp
If you can’t group the files as above you may use find command with exec option.