How To Archive 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.
1. Use the tar command: The tar command is used to create a single compressed file from multiple files. To archive files with the tar command use the following syntax:
tar -cvf archive_name.tar file_name1 file_name2 file_name3
2. Use the zip command: The zip command is used to compress files and/or directories. To archive files with the zip command use the following syntax:
zip -r archive_name.zip file_name1 file_name2 file_name3
3. Use the gzip command: The gzip command is used to compress a single file. To archive files with the gzip command use the following syntax:
gzip -c file_name > archive_name.gz