How do I unzip a zip file in Terminal?

  1. Open a terminal ( Ctrl + Alt + T should work).
  2. Now create a temporary folder to extract the file: mkdir temp_for_zip_extract .
  3. Let’s now extract the zip file into that folder: unzip /path/to/file.zip -d temp_for_zip_extract

sample here –> root@host: unzip test.zip -d /var/www/folder-to-extract

About Damon Luong

San Jose, California
This entry was posted in command line of linux, My Linux. Bookmark the permalink.