![]() ![]() This may matter, or it may not, in which case it doesn't matter (because the file-size difference is in most cases negligible).Īpparently, modern versions of ZIP also store Unix-file-attributes (depends on your ZIP-software), so with modern-zip-software, the file-size will be the only difference. So you see, appart from file size, if you zip a bunch of files on Linux/Unix, and then unzip them, the file-attributes will be gone (at the very least those not supported by MS-DOS - depends on what ZIP-software you use). Includes a file table at the end of the fileīecause zip compresses the files individually, a zip-archive will most-likely have a larger size (especially with many smaller files - think config files).Compresses each file individually, then consolidates the individually compressed files in one file.Actual compression is done by GZIP, on the one.If you ineed need a tar archive for every file, you can create it like so: for i in do tar -czf i.tar. You would use tar only if you would need a compressed archive as a single file. Consolidates all files to be archived in one file ("Tape ARchive"). tgz file, you can use a tool such as tar (on Unix and Linux) or a file compression utility like 7-Zip or WinRAR (on Windows). You can use gzip to compress them directly: gzip will result in, etc.You can use the j to create a tar archive that uses bzip2 compression. tar cfz file1 file2 file3 Another very popular type of compression on Linux is bzip2. ![]() ![]() The default may depend on your distribution, and can be toggled with options. Red Hat Linux includes a graphical utility called File Roller that can compress, decompress, and archive files and directories. To create a tar archive that uses gzip compression, you will need to add the z option to your tar command. Stores unix file attributes: uid, gid, permissions (most notably executable). ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |