How can i unzip a file and overwrite all files within any matching directory or subdirectorys files?

Advertisement

jazir5
Joined:
Posts:
3

How can i unzip a file and overwrite all files within any matching directory or subdirectorys files?

I am trying to overwrite a plugin in the plugins folder of a wordpress website using the custom command: unzip "!". There is a matching folder for the plugin already there and already filed with files of the same name. I want to overwrite all files within the plugins install folder directory and all subdirectories within with no prompts.

I've tried unzip "!" -x -o, but the connection just seems to timeout. How can i set it up so that it extracts and overwrites everything without timing out?

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
41,442
Location:
Prague, Czechia

Re: How can i unzip a file and overwrite all files within any matching directory or subdirectorys files?

Sorry, this is too broad question.
Why don't you use a regular SSH terminal?
Custom commands are intended for repeated tasks.
For one-off command, it's easier to use a regular SSH terminal.

Reply with quote

Advertisement

You can post new topics in this forum