Answer the question
In order to leave comments, you need to log in
Unzip unzip on linux?
Tell me how to unpack the "zip" archive using ssh with the obligatory replacement of files, if any are already present in the directory.
I am using this code:
$exec = "sudo -u s" . $row["sid"] . " unzip -o -u " . $addon . ".zip -d " . $addons["dir"] . " && rm -Rf " . $addon . ".zip;";
Answer the question
In order to leave comments, you need to log in
unzip -o
the parameter -u
is not needed
Xs how did you read the mana
-o overwrite existing files without prompting. This is a dangerous option, so use it with care. (It is often used with -f, however, and is the only way to overwrite directory EAs under OS/2.)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question