This behavior is different from zip , which compresses each file before putting it in the archive. For that, I've started to use dtrx. The whole point of it is to remove complexity. So you just pass in any archive to it and it figures out what needs to be done with it. Zip, tar, gz Use is always the same — dtrx archive.
It asks a few questions and you're done. I often find myself trying to zip the modified files in my work directory -- either to copy all the modified files to another sandbox work directory or to preserve them for a short while because I want to undo some of the changes.
In that case, I copy the list of modified files to a temporary file and use zip with the option -. Sign up to join this community. The best answers are voted up and rise to the top. Stack Overflow for Teams — Collaborate and share knowledge with a private group. Create a free Team What is Teams? Learn more. Ask Question. Asked 10 years, 11 months ago. Active 1 year, 10 months ago. Viewed 2. How can I create and extract zip archives from the command line?
Improve this question. Steven D There's no problem with answering your own questions but not as part of the question itself, since that breaks down the whole community-votes-on-the-best-answer advantage of SO. In addition, this is probably better suited for superuser since it's not programming related. Where will you document how to get online and check SO if you forget your login? Using SA for a note like this helps other people too, as I see it.
Add a comment. Active Oldest Votes. To compress: zip squash. Improve this answer. Justin Ethier Justin Ethier 16k 9 9 gold badges 40 40 silver badges 55 55 bronze badges. I personally only ever use the zip -r9 archive. Just as a side note: zip can create many different flavors of. ZIP archives, as well as use many different compressors.
On the other hand, there are a number of other compression tools named similarly: 7-Zip, gzip, bzip2, rzip, etc. In case you don't want the parent directory to be included: cd dir1; zip -r.. Connect and share knowledge within a single location that is structured and easy to search.
Is it possible to use GZip to create a. I've been Googling and can't find anything that leads me to believe this is possible. This is not possible. Sign up to join this community. The best answers are voted up and rise to the top. Stack Overflow for Teams — Collaborate and share knowledge with a private group. Create a free Team What is Teams? Learn more. How to use GZip to create a.
Asked 10 years, 3 months ago. Active 10 years, 3 months ago. Viewed 42k times. Improve this question. Webnet Webnet 3, 17 17 gold badges 58 58 silver badges 93 93 bronze badges. Table of Contents. Improve Article. Save Article. Like Article. Last Updated : 19 Feb, Previous Gzip Command in Linux. Next tar command in Linux with examples.
Recommended Articles. Article Contributed By :. Easy Normal Medium Hard Expert. Writing code in comment? Please use ide.
0コメント