Technoracle
    Facebook Twitter Instagram
    • Sitemap
    • Privacy Policy
    • Disclaimer
    • Term of Services
    Facebook Twitter Instagram Pinterest Vimeo
    TechnoracleTechnoracle
    • Tutorials
      • Amazon Cloud
      • Google Cloud
    • How To
    • Blog
    • About
    Subscribe
    Technoracle
    Home»How To»How to Unzip Tgz File on Linux Quickly
    How To

    How to Unzip Tgz File on Linux Quickly

    Rajesh ShivamBy Rajesh ShivamMay 26, 2021No Comments2 Mins Read
    Share Facebook Twitter Pinterest LinkedIn Tumblr Reddit Telegram Email
    Unzip Tgz File on Linux
    Share
    Facebook Twitter LinkedIn Pinterest Email
    Unzip Tgz File on Linux

    The tar command on Linux is used to create .tar.gz or .tgz archive files. Most of the Linux files are distributed in .tgz or tar.gz. In this short tutorial, you will learn how to (extract) or unzip tgz file on Linux from the command line.

    Page Contents

    • Unzip Tgz file on Linux from Command Line
    • Extract Specific Files and Directories from the Tgz file
    • Extract a .tgz file in different directory
    • Conclusion

    Unzip Tgz file on Linux from Command Line

    To extract a .tgz file with tar, use following command.

    $ tar -xvzf /path/to/yourfile.tgz

    Command details

    • tar – tar command will auto-detect compression type.
    • x – to extract the file.
    • v – v stands for verbose, it will show output.
    • f – f represents the file for extraction.

    Extract Specific Files and Directories from the Tgz file

    To extract specific files, use following command.

    $ tar -xf /path/to/yourfile.tgz file1 file2

    To extract specific directories, use following command.

    $ tar -xf /path/to/yourfile.tgz directory_1 directory_2

    Extract a .tgz file in different directory

    You can extract tgz file in different directories using -C in between to path/location.

    $ tar -xvzf /path/to/yourfile.tgz -C /path/where/to/extract/

    Conclusion

    In this article, you have learned to extract or unzip tgz file on Linux. If you have any doubt, feel free to comment below. Also, you can join our elite Facebook group to get direct help from me. If you like this article, please share this article on your social media handle.

    unzip tar gz
    Share. Facebook Twitter Pinterest LinkedIn Tumblr Email
    Previous ArticleHow to Fix MySQL Error 1054 Quickly
    Next Article How to Import and Export MySQL Databases Quickly
    Rajesh Shivam

    Hello, everyone, I am Rajesh Shivam, I am a full-time freelancer with more than seven years plus experience in different freelancing platforms, in this blog, I am going to provide complete freelancing tips and tricks.

    Related Posts

    How To

    How to Install Microsoft Teams on Ubuntu 22.04 Easily

    February 22, 2023
    Read More
    How To

    What is Elastic IP and Its Pricing in AWS

    February 22, 2023
    Read More
    How To

    How to Convert PEM to PPK file [Step by Step Guide]

    February 22, 2023
    Read More
    Add A Comment

    Leave A Reply Cancel Reply

    Facebook Twitter Instagram Pinterest
    © 2023 Technoracle

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

    Go to mobile version