Facebook Twitter Instagram
    TecAdmin
    • Home
    • Ubuntu 20.04
      • Upgrade Ubuntu
      • Install Java
      • Install Node.js
      • Install Docker
      • Install LAMP Stack
    • Tutorials
      • AWS
      • Shell Scripting
      • Docker
      • Git
      • MongoDB
    • FeedBack
    • Submit Article
    • About Us
    Facebook Twitter Instagram
    TecAdmin
    Home»Linux Commands»Zstandard – A faster data compression tool

    Zstandard – A faster data compression tool

    RahulBy RahulMay 5, 20182 Mins ReadUpdated:December 29, 2018

    Zstandard in short zstd is a new small and faster data compression tool developed by Facebook. It is an implementation of a new data compression algorithm. zstd also offers highly configurable compression speed, with the fast modes at > 200 MB/s. It also features a very fast decoder, with speeds > 500 MB/s per core.

    Install Zstandard on Linux

    The Ubuntu users can install it directory from base repositories. Open a terminal and run the following command to install zstd on Debian based systems.

    sudo apt install zstd
    

    Use following commands to install Zstd on CentOS, Red Hat and Fedora systems.

    sudo yum install zstd      ## CentOS, RedHat systems 
    sudo dnf install zstd      ## Fedora systems 
    

    For the Linux systems don’t include zstd packages to there repositories can compile from source. Download the latest Zstandard release from GitHub and extract on your system. Now compile it using make.

    wget https://github.com/facebook/zstd/releases/download/v1.3.8/zstd-1.3.8.tar.gz
    tar xzf zstd-1.3.8.tar.gz
    cd zstd-1.3.8
    sudo make install
    

    Using Zstd Compression Tool

    Use zstd command followed by the filename to compress. This will create a compressed file with appending .zst extension to the original filename.

    zstd filename
    

    You can also specify the output compressed filename with -o command line parameter.

    zstd filename -o newfile.zst
    

    To uncompress any file compressed with zstandard. Use -d option with zstd or directory use unzstd command directory.

    zstd -d filename.zst
    unzstd filename.zst
    

    Zstandard Comparison with Other Tools

    Here I did a comparison between the zip, tar, and zstd archiving tools and found that zstd is faster and than others. I used a 508 Mb backup file and here are results and got the following results.

    Using zstd:

    The zstd takes 5 seconds to compress and created a 119 Mb compressed file.

    Using tar:

    For the same file, tar takes 23 seconds to compress and created a 150 Mb compressed file.

    Using zip:

    And zip takes 22 seconds to compress and created a 150 Mb compressed file. So it looks tar and zip take approx same time here.

    As per the above comparison, zstd is much faster than other compression tools and provider higher compression of data. So we can assume that zstd may replace the current compthe ression tools in future.

    compression compression tool zstandard zstd
    Share. Facebook Twitter Pinterest LinkedIn Tumblr Email WhatsApp
    Previous ArticleHow to Change Time Zone in Debian Linux
    Next Article How to Add or Remove Startup Application in Ubuntu

    Related Posts

    How to Search Recently Modified Files in Linux

    2 Mins Read

    Bash Printf Command

    Updated:December 23, 20212 Mins Read

    Tee Command in Linux with Examples

    4 Mins Read

    How to Scan Open Ports with Nmap

    5 Mins Read

    Handling filenames with spaces in Linux

    3 Mins Read

    How To Compare Two Files in Linux

    Updated:August 23, 20215 Mins Read

    Leave A Reply Cancel Reply

    Recent Posts
    • What is CPU? – Definition, Types and Parts
    • What is the /etc/aliases file
    • What is the /etc/nsswitch.conf file in Linux
    • How to Install Ionic Framework on Ubuntu 22.04
    • What is the /etc/hosts file in Linux
    Facebook Twitter Instagram Pinterest
    © 2022 Tecadmin.net. All Rights Reserved | Terms  | Privacy Policy

    Type above and press Enter to search. Press Esc to cancel.