Find files by date linux compress old11/11/2023 ![]() ![]() Then add the comments using a zipnote command like this one: $ zipnote -w twofiles.zip < comments Next, edit the file you've just created, inserting your comments above the (comment above this line) lines. rw-rw-r- 1 shs shs 21313 Jan 15 13:46 twofiles.zip comments You can expect the file size to vary a little from the original. The zipcloak command encrypts a zip file, prompting you to enter a password twice (to help ensure you don't "fat finger" it) and leaves the file in place. The unzip command will recover the contents from a zip file and, as you'd likely suspect, leave the zip file intact, whereas a similar gunzip command would leave only the uncompressed file. The variation in the example below is considerable. The amount of disk space that is saved (i.e., the degree of compression obtained) will depend on the content of each file. Notice also that the original files are still sitting there. Notice how this command requires that a name be provided for the zipped archive where gzip simply uses the original file name and adds the. Here's an example of gzip at work: $ gzip onefile In other words, it leaves a compressed file - not the original file alongside the compressed copy. For another, the gzip command zips “in place”. ![]() For one thing, the gzip command is used only for compressing a single file where zip can both compress files and join them together into an archive. It uses what is essentially the same compression algorithm as gzip, but there are a couple important differences. ![]() The basic zip commandįirst, let’s look at the basic zip command. So, in this post, we’re going to look at standard zipping and unzipping as well as some other interesting zipping options. Even so, there are some interesting variations on zipping that not all of us have tried. Some of us have been zipping files on Unix and Linux systems for many decades - to save some disk space and package files together for archiving. ![]()
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |