How Do I Archive Files in Unix?
Contents

Archive files and directories using Tar command. Tar is an Unix command which stands for Tape Archive. It is used to combine or store multiple files (same or different size) into a single file. There are 4 main operating modes in tar utility.

How do I archive in Unix?

Instructions

  1. Connect to a shell or open a terminal/console on your Linux/Unix machine.
  2. To create an archive of a directory and its contents you would type the following and press enter: tar -cvf name.tar /path/to/directory. …
  3. To create an archive of certfain files you would type the following and press enter:

24 янв. 2006 г.

How do I archive files in Linux?

The end of the file to . tar use ordinary tar extension to archive files tar. gz or . tgz end use gzip archived and compressed files, files tar.
…
Create a tar archive:

  1. Common tar archives: tar -cf archive. tar file1 file2 file3.
  2. Gzip tar archive: tar -czf archive. …
  3. Bzip tar archive: tar -cjf archive.

6 июн. 2018 г.

Maya Lin-Takahashi

Maya Lin-Takahashi

Consumer Tech & Gadget Reviewer

Maya is a hardware enthusiast who tests and reviews smart home devices, smartphones, wearables, and audio gear. She focuses on practical consumer value and build quality.

Share this article
Twitter Facebook Pinterest