I want to compress all jpg files in directory /var/sentora/hostdata/zadmin/public_html/mysite_com/_files/photo/
using jpegoptim`.
I use code jpegoptim -m 80 *.jpg
but it shows error “Argument list too long”.
Previously I have increased the ulimit -s 65536
but it still shows error “Argument list too long”.
Please help me to solve the problem
2
Answers
Try this:
or
If having a large number of file you must use for command like this:
You should user jpegoptim –help for more information about the use of jpegoptim.
Try using
find
andxargs
withjpegoptim
:non-recursive: