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

拜拜、爱过 提交于 2019-12-02 22:45:45

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 up then tar cvzf dicionario_ultra.tgz -X FILE -T temp and finally rm temp

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!