-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
  • 114,770

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
  • Hey @Nick_Gkoutzas, the error stipulates that the zip file has no content, or Zip cannot read the file. A return of ls -la might give you file size. If corrupted, I'd suggest a redownload of the file. – DankyNanky Apr 18 '20 at 13:59
  • I changed this zip file to tar file and I I will try to untar it .if that doesn't work ,I will redownload the file – Nick_Gkoutzas Apr 18 '20 at 14:09
  • Hey Nick, in your other post it states the file seems corrupt. Try again with the download, otherwise perhaps try to use something like 7Zip to see if this is a compression issue. – DankyNanky Apr 18 '20 at 14:17
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
  • 1
  • 7