Title: Archiving and Compressing Commands
Course: CIS 121: Linux/UNIX I: Fundamentals ~ For IGNITE Review > Section: Learning Modules

Archiving Commands

- tar Command: The tar command is used to gather a group of files into a single "tarball" which can then to copied to other media. See the tables on pages 177-178 in the Smith text for tar commands and qualifiers.
- cp Command: The cp -rp command can be very useful. It is very important to use -p which preserves the ownership and time stamp settings.
- find Command: The find command can be utilized to select certain files and directories for selected actions.

Compressing File Commands

Compressing files can save space and reduce transmission time. Commands to use may include:

- gzip, gunzip (.gz)
- bzip2, bunzip2 (.bz2)
- zip, unzip (.zip)