I use zip/unzip from the command line. However, I always seem to have to look up the options just for simple usage.
So here are my notes on my most common use model: zip a directory into an archive, then unzip it somewhere else.
- zip -r someDir someDir
- compress someDir and it’s contents and put it in a file called someDir.zip
- zip -r newName someDir
- compress someDir and it’s contents and put it in a file called newName.zip
- unzip newName.zip
- extract newName.zip into the current directory
- unzip newName.zip -d newDir
- extract newName.zip into a new directory called newDir
- zip -r someDir someDir
- compress someDir and it’s contents and put it in a file called someDir.zip
- zip -r newName someDir
- compress someDir and it’s contents and put it in a file called newName.zip
- unzip newName.zip
- extract newName.zip into the current directory
- unzip newName.zip -d newDir
- extract newName.zip into a new directory called newDir