unzip gz file as a directory

0 votes
I am new to Linux and had gzip the folder as abc.gz. now when I try using the gunzip command the file doesn't come as a folder, instead, the output file has become abc. could someone let me know the command to unzip the abc.gz as a folder?

Any help will be appreciated!
Apr 14, 2022 in Linux Administration by Soham
• 9,730 points
• 1,585 views

No answer to this question. Be the first to respond.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
0 votes
The gunzip functions as a decompression algorithm only, so gunzip would simply leave with the file decompressed, which you would then need. The z option of tar is simply a shortcut to do the decompression with gzip along with extracting the files.
answered Apr 20, 2022 by Rahul
• 9,690 points

edited Mar 5, 2025

Related Questions In Linux Administration

0 votes
2 answers

how to loop through the content of a file using bash

#!/bin/bash for i in  `cat peptides.txt` do echo $i done READ MORE

answered Sep 5, 2020 in Linux Administration by Prakash K. Aithal
• 4,877 views
0 votes
1 answer

Downloading file using SSH from a server without web access

Run this command in  your terminal: scp your_username@remotehost.edu:foobar.txt ...READ MORE

answered Mar 5, 2019 in Linux Administration by ajs3033
• 7,300 points
• 2,548 views
0 votes
1 answer

Counting lines in a file/doc.

you can do this by using word ...READ MORE

answered Mar 5, 2019 in Linux Administration by DareDev
• 6,890 points
• 1,723 views
0 votes
1 answer

How to install a deb file?

You can install a .deb file with ...READ MORE

answered Apr 1, 2019 in Linux Administration by Shaan
• 1,952 views
0 votes
1 answer

Removing a symlink to a directory

rm foo try this. Also, You need write ...READ MORE

answered May 15, 2019 in Linux Administration by Shubham
• 13,490 points
• 1,630 views
0 votes
1 answer
0 votes
1 answer

How do I set variable if a specific package version is installed in CFEngine?

Here is what you can do.Just use packagesmatching to ...READ MORE

answered Jul 12, 2018 in Other DevOps Questions by Atul
• 10,240 points
• 3,085 views
0 votes
2 answers

Install postgreSQL on Ubuntu

Follow the below commands to install PostgreSQL (PSQL) ...READ MORE

answered Nov 12, 2020 in Database by Prachi
• 140 points
• 3,347 views
0 votes
1 answer

Access progrs prompt without switching accounts

Use the following to get the postgres prompt ...READ MORE

answered Mar 22, 2019 in Database by Mahi
• 2,474 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP