commands.page Website Logo

  • Home
  • Categories
  • Search

Compression

Showing 9 Result(s) from page 1 of 1 from a result set of 9

How to Compress a Single File Using Gzip on Ubuntu Terminal

This article provides a comprehensive guide on using the `gzip` utility in Ubuntu Linux to compress single files into `.gz` format, aiming at both beginners and experienced users. It covers installing `gzip`, understanding its basic syntax, and performing essential operations such as compression and decompression with commands like `gzip filename.ext` and `gunzip example.txt.gz`. The guide also offers tips for efficient usage, including preserving original files during compression and checking archive contents without full extraction. Mastering these techniques enhances file management by optimizing disk space and facilitating more efficient data transfer.

Last Modified: 22/03/2018 - 18:34:25

This article provides a comprehensive guide on using `bzip2`, a powerful file-compression utility available in the Ubuntu terminal. It covers the installation of `bzip2`, basic commands for compressing and decompressing files, and comparisons with other utilities like gzip and xz. The guide explains why one might choose `bzip2` for its high compression ratio and thoroughness, despite being slower than alternatives. Users will learn how to install `bzip2`, keep original files during compression, compress multiple files simultaneously, extract compressed files, and assess the efficiency of `bzip2` relative to other tools.

Last Modified: 22/03/2018 - 21:26:27

This article provides a comprehensive guide on using the `xz` command for file compression in Ubuntu's terminal. It covers the installation process, basic and advanced usage including compression levels, memory control, parallel processing, and various practical examples like creating archives with multiple files or efficient backups. The benefits of `xz`, such as high compression ratios, multi-threading support, and extensive configuration options, are highlighted alongside detailed command-line instructions for both compressing and decompressing files.

Last Modified: 23/03/2018 - 00:23:18

This article details how to compress directories using the `tar` and `gzip` commands in Ubuntu's terminal for efficient disk space management. It explains the use of `tar` for creating archives that preserve file permissions and `gzip` for compression, offering better ratios compared to other utilities like zip. The guide covers basic command usage such as creating an uncompressed archive with `tar cvf`, adding gzip compression using `-z`, and utilizing bzip2 (`-j`) for even greater compression at the cost of speed. Additionally, it includes instructions on extracting tarballs, handling sparse files, compressing individual files, specifying custom compression levels, and listing contents without extraction. The article concludes by recommending further exploration through manual pages to deepen understanding of these powerful tools.

Last Modified: 23/03/2018 - 03:26:37

This article provides a comprehensive guide on compressing directories using `tar` and `bzip2` in the terminal on an Ubuntu system. It explains how to create tar archives of multiple files and directories, then further reduce their size with bzip2's advanced compression techniques. The tutorial covers installation of necessary tools if not pre-installed, creation of a tar archive (`tar -cvf backup.tar .`), compressing it with `bzip2`, verifying the compressed file (`ls -lh backup.tar.bz2`), and extracting files using both `bunzip2` and `tar`. It also includes advanced options like direct compression during archiving, specifying different bzip2 compression levels, avoiding temporary files during compression, and troubleshooting common errors related to permissions or incomplete archives.

Last Modified: 23/03/2018 - 06:18:51

This article provides a guide on compressing directories using the `tar` and `xz` commands in Ubuntu. It covers creating compressed archives, preserving directory structures and metadata, and offers efficient storage solutions with better compression ratios than alternatives like gzip or bzip2. The tutorial includes steps for basic archive creation and extraction, verifying contents, handling large files by splitting them into smaller parts, managing incremental backups, and troubleshooting common issues such as corruption or slow compression times. Additionally, it highlights the benefits of combining `tar` for archiving with `xz` for high-efficiency compression.

Last Modified: 23/03/2018 - 09:27:16

This guide explains how to decompress and extract `.tar.gz` files using the terminal in Ubuntu. It covers what a `.tar.gz` file is, setting up your system for working with such files, basic commands needed before extraction, and detailed steps for extracting these archives on the command line. Additionally, it provides tips and tricks for managing tarball archives more efficiently, including selective extraction, creating new tarballs, checking archive integrity, handling multiple tarballs at once, and using GUI tools as alternatives to the terminal. Mastering these skills enhances workflow efficiency and allows users to manage compressed data effectively without relying on graphical interfaces.

Last Modified: 23/03/2018 - 12:29:22

This article provides a guide on decompressing tar.bz2 files in Ubuntu's terminal, detailing steps for installing necessary tools, navigating to the file directory, using commands like `tar -xvjf filename.tar.bz2` to extract archives efficiently, and offering tips such as maintaining backups, verifying archive integrity, and monitoring extraction progress. tar.bz2 is a compressed format combining tar archiving with bzip2 compression, offering superior space savings but slower processing times compared to .tar.gz files. The guide also emphasizes the importance of handling compressed files securely by ensuring their source and integrity before extraction.

Last Modified: 23/03/2018 - 15:20:10

This article provides a comprehensive guide on decompressing `.tar.xz` files in Ubuntu using the terminal. It covers the basics of tar.xz file format, its utility for efficient data storage and transfer, and detailed steps to extract such archives. The process involves navigating to the directory containing the archive, using the `tar -xJf archive.tar.xz` command to decompress, and verifying extraction with `ls -l`. Common issues like missing xz utilities, incorrect command syntax, and insufficient permissions are addressed, along with solutions for each problem. Additionally, the article offers tips such as automating extraction with bash scripts and using GUI tools for those less comfortable with terminal commands.

Last Modified: 23/03/2018 - 18:26:08