How To Tar Multiple Files In Linux?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The tar command can be used to archive multiple files in Linux. To archive multiple files, create a list of files to be archived and pass it to the tar command using the -T option.
For example, to create an archive of multiple files, named file1.txt, file2.txt, and file3.txt, run the following command:
tar -cvf archive.tar -T filelist.txt
Where filelist.txt is a text file containing the list of files to archive:
file1.txt
file2.txt
file3.txt