Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
linux_wiki:archive_compress_unpack_and_uncompress_files_using_tar_star_gzip_and_bzip2 [2016/02/29 22:46] billdozor [star] |
linux_wiki:archive_compress_unpack_and_uncompress_files_using_tar_star_gzip_and_bzip2 [2019/05/25 23:50] (current) |
||
---|---|---|---|
Line 3: | Line 3: | ||
**General Information** | **General Information** | ||
- | About this page/how-to/script. | + | You can do most all with tar, but it doesn' |
---- | ---- | ||
Line 54: | Line 54: | ||
===== star ===== | ===== star ===== | ||
+ | Install (usually not there by default) | ||
+ | <code bash> | ||
+ | yum install star | ||
+ | </ | ||
+ | |||
+ | \\ | ||
Archive and compress the /var/log directory (name it logs.tar.gz) | Archive and compress the /var/log directory (name it logs.tar.gz) | ||
<code bash> | <code bash> | ||
Line 80: | Line 86: | ||
</ | </ | ||
+ | \\ | ||
Decompress an archive | Decompress an archive | ||
<code bash> | <code bash> | ||
Line 87: | Line 94: | ||
</ | </ | ||
+ | \\ | ||
Cat a compressed file (useful for rotated logs) | Cat a compressed file (useful for rotated logs) | ||
<code bash> | <code bash> | ||
Line 101: | Line 109: | ||
</ | </ | ||
+ | \\ | ||
Decompress an archive | Decompress an archive | ||
<code bash> | <code bash> | ||
Line 108: | Line 117: | ||
</ | </ | ||
+ | \\ | ||
Cat a compressed file (useful for rotated logs) | Cat a compressed file (useful for rotated logs) | ||
<code bash> | <code bash> |