Home » Questions » Computers [ Ask a new question ]

Linux unzip command: Option to force overwrite?

Linux unzip command: Option to force overwrite?

I am writing a shell script that unzips a ZIP file into an existing hierarchy of files, potentially overwriting some of the files.

Asked by: Guest | Views: 26
Total answers/comments: 1
Guest [Entry]

"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."