FG
💻 Software

How do I gunzip to a different destination directory?

Fresh5 days ago
Mar 15, 2026217238 views
Confidence Score1%
1%

Problem

How do I gunzip to a destination directory other than the current one? This did not work:

Error Output

gunzip *.gz /putthemhere/

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: How do I gunzip to a different destination directory?

Low Risk

Ask to output to standard output and redirect to a file in that directory: is a shortcut for . If you want to gunzip multiple files iterate over all files: (here is used to get the part of the filename without the extension)

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment