I am trying compress files from an archive with the command
tar -czvf compress_file.tar.gz $(cat file_list.txt)
And I have an error
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
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