Quick Answer: How to Extract Zip File in Linux?
Contents

How to Unzip / extract File?

  • Once you are logged into your server via SSH, now navigate to the directory where the .zip file you wish to unzip is located there.
  • That’s it.
  • Use following command: zip [zip file name] [file 1] [file 2] [file 3] [file and so on]
  • Use following command to install zip function:

Unzipping Files

  • Zip. If you have an archive named myzip.zip and want to get back the files, you would type: unzip myzip.zip.
  • Tar. To extract a file compressed with tar (e.g., filename.tar), type the following command from your SSH prompt: tar xvf filename.tar.
  • Gunzip. To extract a file compressed with gunzip, type the following:

If multiple files are in the archive, then you will probably need to transfer the file to *gulp* a Windows platform, unzip it there using WinZIP, and return the constituent files to your Linux box. On my linux boxed I use 7-Zip. It will unzip ZIP, GZIP, BZIP2 and TAR.This free utility is relatively simple to use and can compress and uncompress files in a wide variety of formats. To unzip the example above, you can right-click on the MyImageData.zip.001 file (after you’ve installed 7-Zip), select the 7-Zip menu, and then choose one of the “extract” options.To unzip multiple Zip files without drag and drop:

  • From an open folder window, highlight the WinZip files you want to Extract.
  • Right click in the highlighted area.
  • Choose WinZip Extract to
  • Enter the destination folder.

How do I unzip a file in Linux?

How to Extract Tar Files in Linux

  1. Open the terminal.
  2. Type tar .
  3. Type a space.
  4. Type -x .
  5. If the tar file is also compressed with gzip (.tar.gz or .tgz extension), type z .
  6. Type f .
  7. Type a space.
  8. Type the name of the file that you wish to extract.

How do I unzip a file in Terminal?

Steps

  • Locate your zipped folder. If it’s in the Documents directory, for example, you’ll open your Documents folder.
  • Note the name of the zipped folder.
  • Click Menu.
  • Click the Terminal icon.
  • Type unzip filename.zip into Terminal.
  • Press ↵ Enter .
David Miller

David Miller

Executive Financial & Market Analyst

David Miller brings 15 years of experience in global economics, personal finance strategy, and market dynamics. He specializes in turning complex economic trends into actionable insights for everyday readers.

Share this article
Twitter Facebook Pinterest