1

I have received a zip file but the actual filename is

data.zip;1

I have tried to unzip on Linux 7.1 but the command fails. What does the ;1 at the end of the file mean?

Ran file 'data.ZIP;'. The results are as follows:

data.ZIP;1: regular file, no read permission
9
  • 1
    names are just names and aren't important. What's really important is the content of the file. Run file data.zip;1 to see if it's a zip file or not
    – phuclv
    Commented May 27, 2021 at 9:14
  • 4
    @phuclv file 'data.zip;1', the filename must be quoted as ; is a command terminator otherwise.
    – Kusalananda
    Commented May 27, 2021 at 9:27
  • 2
    If "the command fails" then something went wrong. If you post the text here, we might guess why.
    – RalfFriedl
    Commented May 27, 2021 at 9:27
  • 1
    @Kusalananda yes I forgot that. It may also be the reason the unzip command fails, but we'll have to wait until the OP shows the command he ran
    – phuclv
    Commented May 27, 2021 at 9:29
  • 2
    @John edit the question and update everything there. No one will read comments. But if you can't read the file then it might be created with root permission. Show the output of ls -l 'data.zip;1' and run the command with sudo
    – phuclv
    Commented May 27, 2021 at 11:41

1 Answer 1

0

You should have a command zipinfo if you have unzip.

Try zipinfo -2t 'data.ZIP;1' or zipinfo -2t 'data.zip;1' (as appropriate)

This should output some thing like:-

Archive: data.ZIP;1
Zip file size: 1069878 bytes, number of entries: 999
filename1
filename2
...
999 files, 1727702 bytes uncompressed, 1060860 bytes compressed:  38.6%

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .