Linux unzip command: Option to force overwrite?
According to http://www.manpagez.com/man/1/unzip/ you can use the -o
option to overwrite files:
unzip -o /path/to/archive.zip
Note that -o
, like most of unzip
's options, has to go before the archive name.
If you need to unzip in order to replace the new files only, you can use
unzip -f archieve.zip
But for future references, you can just type
unzip
and you will get a list of the arguments for this package. The possible arguments are for this case are:
-f freshen existing files, create none
-n never overwrite existing files
-q quiet mode (-qq => quieter)
-o overwrite files WITHOUT prompting
Use the one that you feel more suited for you needs.