a-if

  • Blog

Zipping File With Password in Macbook (or Linux-Based Systems)

Written by

Adashif Commit

at

2026-03-10 11:18:56 (GMT+0700)

Using Terminal (ZIP Archive)

  1. Open Terminal: Use Spotlight (Command + Space) and type “Terminal”.
  2. Navigate to the folder: Type cd followed by a space, then drag the folder containing your files into the Terminal window and press Enter.
  3. Run the Zip command: Type the following command and press Enter:
    zip -er MyArchiveName.zip /path/to/folder
    • -e tells the system to encrypt.
    • -r ensures subfolders are included.
  4. Enter Password: You will be prompted to enter and verify a password. Note: The characters will not appear as you type.

Category: AI-Assisted Q&A

←Prev
Creating QR code in MacBook is Really Easy
Next→
Grafana Historical Data Not Displayed Properly When Using Multi Days Range