Windows 10/11: Right-click the file(s) or folder → select “Send to” → “Compressed (zipped) folder”
Windows 10/11: Select the file(s) or folder → right-click → “Send to” → “Compressed (zipped) folder”
macOS: Right-click the file(s) or folder → select “Compress”
macOS: Select the file(s) or folder → right-click → “Compress”
Linux (terminal): zip -r archive.zip /path/to/folder
Linux (terminal): zip archive.zip file1 file2 file3
Linux (terminal): zip -r archive.zip . (from inside the folder to zip)
PowerShell (Windows): Compress-Archive -Path “C:pathfolder*” -DestinationPath “C:patharchive.zip”
PowerShell (Windows): Compress-Archive -Path “C:pathfile1.txt”,”C:pathfile2.txt” -DestinationPath “C:patharchive.zip”
Python: import shutil; shutil.make_archive(“archive”, “zip”, “path/to/folder”)
7-Zip (Windows): Select file(s)/folder → right-click → “7-Zip” → “Add to archive…” → set format to ZIP → OK
