How To Zip A File?

Windows (File Explorer)

Right-click the file or folder you want to zip

Select Send to

Click Compressed (zipped) folder

Rename the .zip file if needed

Windows (Command Prompt)

Open Command Prompt

Run: `powershell Compress-Archive -Path “C:pathfile-or-folder” -DestinationPath “C:patharchive.zip”`

macOS (Finder)

Right-click the file or folder

Select Compress

The .zip file will be created in the same location

macOS (Terminal)

Run: `zip -r archive.zip /path/to/file-or-folder`

Linux (Terminal)

Run: `zip -r archive.zip /path/to/file-or-folder`

Linux (If zip isn’t installed)

Install: `sudo apt-get install zip` (Debian/Ubuntu) or `sudo dnf install zip` (Fedora)

Then run: `zip -r archive.zip /path/to/file-or-folder`

Suggested for You

Trending Today