1.7 KiB
1.7 KiB
Certainly! Let's delve into compression and archiving using gzip and tar in Linux Mint:
-
Tar (Tape Archive):
- Tar combines multiple files or directories into a single archive file.
- Basic usage:
- To create a tar archive:
tar -cvf archive.tar files_or_directories - To extract from a tar archive:
tar -xvf archive.tar
- To create a tar archive:
- Combine with compression tools for smaller archives.
-
Gzip:
- Gzip compresses files individually.
- Basic usage:
- To compress a file:
gzip filename(createsfilename.gz) - To decompress:
gzip -d filename.gz
- To compress a file:
-
Combining Tar and Gzip:
- Create a compressed tar archive (
.tar.gzor.tgz):tar -czvf archive.tar.gz files_or_directories
- Create a compressed tar archive (
Remember, these commands help manage files efficiently! Feel free to explore further or ask more questions. 😊🚀
Source: Conversation with Copilot, 7/12/2024
- (1) How to obtain maximum compression with .tar.gz? - Super User.
- (2) How to Compress and Extract Files Using the tar Command on Linux.
- (3) File Compression and Archiving – Using tar, gzip, zip, etc..
- (4) Tar command Compress and Extract Archives - ComputerNetworkingNotes.
- (5) How to archive a file with tar gz. and gzip command..