FG
💻 Software

Bash command to compress folder(s) with a password

Fresh7 days ago
Mar 15, 20267883 views
Confidence Score0%
0%

Problem

How can I compress two folders into archive file (zip, gzip or something like that) with a password on the files? For example I have folder structure: rootDir dir1 dir2 dir3 dir4 I need bash command to add dir2 and dir4 to same archive file compressed with a password on it.

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: Bash command to compress folder(s) with a password

Low Risk

The command is widely available; if not on your system, look for a package or similar. The flag specifies encryption is to be used on the zipfile; you'll be prompted for a password. The flag specifies recursion; all the files in and will be included…

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment