unzip: filename not matched

About writing shell scripts and making the most of your shell
Forum rules
Topics in this forum are automatically closed 6 months after creation.
Locked
Seff

unzip: filename not matched

Post by Seff »

Hello- I'm trying to set up Android Studio on Mint 17.2 MATE. (https://developer.android.com/studio/pr ... eview.html) The problem is, when I try to extract it via command-line I get:

Code: Select all

sudo unzip -xf android-studio-ide-171.3909050-linux.zip -C /usr/local
Archive:  android-studio-ide-171.3909050-linux.zip
caution: filename not matched:  -C
caution: filename not matched:  /usr/local
While I could just unzip the thing from my file manager and set up a script or desktop entry, I want to know why this command fails. Please help.

I was able to extract the file, dropping all the arguments and simply running unzip on it. Odd.
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
User avatar
xenopeek
Level 25
Level 25
Posts: 29607
Joined: Wed Jul 06, 2011 3:58 am

Re: unzip: filename not matched

Post by xenopeek »

The options you use on the command do not make any sense. See https://explainshell.com/explain?cmd=su ... sr%2Flocal

Perhaps have another read of the unzip manpage.
Image
Seff

Re: unzip: filename not matched

Post by Seff »

Thanks. I was given instructions on how to unpack a tar file, but then it turned out Studio is packaged in a zip file.
User avatar
Flemur
Level 20
Level 20
Posts: 10096
Joined: Mon Aug 20, 2012 9:41 pm
Location: Potemkin Village

Re: unzip: filename not matched

Post by Flemur »

Double-click the .zip file in your file-browser.
Please edit your original post title to include [SOLVED] if/when it is solved!
Your data and OS are backed up....right?
Seff

Re: unzip: filename not matched

Post by Seff »

Flemur wrote:Double-click the .zip file in your file-browser.
Does that give me administrative permissions, though? I think they're needed for anything that's under / rather than /home.
shengchieh

Re: unzip: filename not matched

Post by shengchieh »

In thunar, I think (but not sure) you can set it to have administrative status. I never done this (always used the terminal - long-time unix user). Take a look

thunar -> edit -> configure custom actions

There is an "open as root" option.

Never used it, so you are on your own. Hopefully you figure it out.

Sheng-Chieh
Locked

Return to “Scripts & Bash”