11/20/2023 0 Comments Untar a file .bz2If no file names are specified, bzip2 compresses from standard input to standard output. If you want this to happen, specify the -f flag. Each compressed file has the same modification date, permissions, and, when possible, ownership as the corresponding original, so that these properties can be correctly restored at decompression time.įile name handling is naive in the sense that there is no mechanism for preserving original file names, permissions, ownerships or dates in filesystems which lack these concepts, or have serious file name length restrictions, such as MS-DOS.īzip2 and bunzip2 will by default not overwrite existing files. Each file is replaced by a compressed version of itself, with the name original_name.bz2. The command-line options are deliberately very similar to those of GNU gzip, but they are not identical.īzip2 expects a list of file names to accompany the command-line flags. Has an improved algorithm which renders these flags irrelevant.Ĭompared with gzip, bzip2 will create smaller archives but has a slower decompression time and higher memory use.īzip2 compresses files using the Burrows-Wheeler block sorting text compression algorithm, and Huffman coding. They provided some coarseĬontrol over the behaviour of the sorting algorithm in earlier versions, bzip now These flags are redundant in versions 0.9.5 and above. ![]() This is so you can handle files with names beginning with a dash, Treats all subsequent arguments as file names, even if they start with a dash. In particular, -fast doesn't make things significantly faster.Īnd -best merely selects the default behaviour. The -fast and -best aliases are primarily for GNU gzipĬompatibility. V -version Display the software version, license terms and conditions. Increase the verbosity level, spewing out lots of information which is primarily v -verbose Verbose mode - show the compression ratio for each file processed. Other critical events will not be suppressed. q -quiet Suppress non-essential warning messages. In short, if your machine is low on memory (8 megabytes or less), ![]() During compression, -s selects a block size ofĢ00k, which limits memory use to around the same figure, at the expense of yourĬompression ratio. This means any file can be decompressed in 2300k of memory, albeitĪt about half the normal speed. Files areĭecompressed and tested using a modified algorithm which only requires 2.5 bytes s -small Reduce memory usage, for compression, decompression and testing. k -keep Keep (don't delete) input files during compression or decompression. If forced (-f), however, it will pass such files bzip2 normally declines to decompress files which don't have theĬorrect magic header bytes. Also forces bzip2 to break hard links to files, which it otherwise Normally, bzip2 will not overwrite existing f -force Force overwrite of output files. This really performs a trial decompression and throws away the result. t -test Check integrity of the specified file(s), but don't decompress them. z -compress The complement to -d: forces compression, regardless of the invokation name. ![]() This flag overrides that mechanism, and forces bzip2 to decompress. bzip2, bunzip2 and bzcat are really the same program,Īnd the decision about what actions to take is done on the basis of which ![]() c -stdout Compress or decompress to standard output.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |