Zipping

| 1 min read | Unix things I always forget 3/7

Zipping is easy. Remembering zip's arguments is hard.

Create a zip archive from multiple files:

zip package.zip README.md LICENSE index.js

Create a zip archive from a directory:

zip website.zip -r sebastiandedeyne-com

Unzip contents to a specified directory.

unzip website.zip -d sebastiandedeyne-com

Unix things I always forget

This series is an attempt to document the Unix commands I know, and the ones I occasionally need.

Follow along, and you might learn some tricks along the way! Consider this series a living document that will grow organically; I won’t be updating or adding new posts on a set schedule.

  1. Introduction
  2. Listing directories
  3. Zipping
  4. Finding files (by filename)
  5. Finding files (by content)
  6. Permissions
  7. Rsync

More about cli