How to solve the error "command parameter list is too long" under Linux

First use the find . -name "*.jpg" | xargs tar -rf picture.tar command to package
and then use the gzip command to compress the typed package

gzip -v picture.tar

 

rm test* -rf 改为:
find . -name "test*" | xargs rm -rf "test*"

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326407248&siteId=291194637