On Tuesday 25 November 2008 05:22:33 David C. Rankin wrote:
Listmates,
I was trying to use chmod, but it says:
12:44 nirvana/srv/www/download> find . -type f -print0 | xargs -0 sudo chmod 0644 sudo: unable to execute /bin/chmod: Argument list too long
How long is too long? How many files will chmod do, or does it depend on the length of file names?
There are only 5590 files beneath this directory:
12:47 nirvana/srv/www/download> find . -type f | wc -l 5590
To accomplish what I wanted to do I had to change the find call to:
sudo find . -type f -exec sudo chmod 0644 '{}' \;
This is much...much... slower. How big is the chmod limitation and is there a better way to get around this limitation?
David, There was a thread on exactly this subject (with suggested solutions) going back to March this year (subject was "[opensuse] /bin/rm: Argument list too long"). You should find it in the list archives. If not, I have 3 key messages saved and can forward them direct to you if you want. Regards, Rodney. -- =================================================== Rodney Baker VK5ZTV rodney.baker@iinet.net.au ===================================================