💻 Software
Linux unzip command: Option to force overwrite?
Fresh5 days ago
Mar 15, 2026468305 viewsConfidence Score1%
1%
Problem
I am writing a shell script that unzips a ZIP file into an existing hierarchy of files, potentially overwriting some of the files. The problem is that the unzip command asks for confirmation: Is there an option to force unzip to overwrite the files?
Error Output
replace jsp/extension/add-aspect.jsp? [y]es, [n]o, [A]ll, [N]one, [r]ename: y
Unverified for your environment
Select your OS to check compatibility.
1 Fix
Canonical Fix
Unverified Fix
New Fix – Awaiting Verification
Fix for: Linux unzip command: Option to force overwrite?
Low Risk
According to http://www.manpagez.com/man/1/unzip/ you can use the option to overwrite files: Note that , like most of 's options, has to go before the archive name.
Awaiting Verification
Be the first to verify this fix
Sign in to verify this fix