bash: /bin/tar: Argument list too long when compressing many files with tar bash: /bin/tar: Argument list too long when compressing many files with tar bash bash

bash: /bin/tar: Argument list too long when compressing many files with tar


Use the "-T" option to pass a file to tar that contains the filenames to tar up.

tar -cv -T file_list.txt -f tarball.tar


and how to make list of files to tar up:first ls > temp ## create the list of files to tar upthentar cvzf dicionario_ultra.tgz -X FILE -T tempand finally rm temp