-2

For example,I created a simple zip file (inside I have the sentence: hello world!) in desktop. I want to unzip it, but nothing happens. I also installed (zip unzip) with this command: sudo apt install zip unzip, but it says that I have already have the newest versions of these installed.

Here is the error I get in the terminal:

Here is the error I get in the terminal

karel
  • 122,292
  • 133
  • 301
  • 332

2 Answers2

0

First, in the terminal use the cd command to change to the location you want. An example being cd /home/nick/Downloads. From here, verify that the file exists using ls -la | grep .zip to ensure you're in the right location.

From here, if you want to unzip to the current location, just run:

unzip file.zip
0

A better question is "How did you create the zip file?" If you made it in an editor, it's not "really" a zip archive and unzip won't work. If you want the contents, use cat hello.zip. To properly create a zip file, you can use, zip filename.zip filename.

Michael
  • 65