[原文] .PU [訳文] .PU ---------------------------------------- [原文] .TH bzip2 1 [訳文] .TH bzip2 1 ---------------------------------------- [原文] .SH NAME bzip2, bunzip2 - a block-sorting file compressor, v1.0.8 bzcat - decompresses files to stdout bzip2recover - recovers data from damaged bzip2 files [訳文] .SH åå‰ bzip2, bunzip2 - ブãƒãƒƒã‚¯ã‚½ãƒ¼ãƒˆã«ã‚ˆã£ã¦ãƒ•ァイルを圧縮・伸長ã™ã‚‹ã€‚ãƒãƒ¼ã‚¸ãƒ§ãƒ³ 1.0.8 bzcat - ファイルを標準出力ã«ä¼¸é•·ã™ã‚‹ bzip2recover - ç ´æã—㟠bzip2 ファイルã‹ã‚‰ãƒ‡ãƒ¼ã‚¿ã‚’復元ã™ã‚‹ ---------------------------------------- [原文] .SH SYNOPSIS .ll +8 .B bzip2 .RB [ " -cdfkqstvzVL123456789 " ] [ .I "filenames ..." ] .ll -8 .B bunzip2 .RB [ " -fkvsVL " ] [ .I "filenames ..." ] .B bzcat .RB [ " -s " ] [ .I "filenames ..." ] .B bzip2recover .I "filename" [訳文] .SH æ›¸å¼ .ll +8 bzip2 [ -cdfkqstvzVL123456789 ] [ filenames ... ] .ll -8 bunzip2 [ -fkvsVL ] [ filenames ... ] bzcat [ -s ] [ filenames ... ] bzip2recover filename ---------------------------------------- [原文] .SH DESCRIPTION .I bzip2 compresses files using the Burrows-Wheeler block sorting text compression algorithm, and Huffman coding. Compression is generally considerably better than that achieved by more conventional LZ77/LZ78-based compressors, and approaches the performance of the PPM family of statistical compressors. [訳文] .SH 説明 bzip2 ã¯ã€Burrows-Wheeler ブãƒãƒƒã‚¯ã‚½ãƒ¼ãƒˆãƒ†ã‚スト圧縮アルゴリズム㨠Huffman コード化を使ã£ã¦ãƒ•ァイルを圧縮ã™ã‚‹ã€‚ 圧縮率ã¯ã€ä¸€èˆ¬çš„㪠LZ77/LZ78 ベースã®åœ§ç¸®çŽ‡ã«æ¯”ã¹ã‚‹ã¨ã€å¤§æŠµã®å ´åˆã§ã¨ã¦ã‚‚良ã„。 ã¾ãŸã€åœ§ç¸®é€Ÿåº¦ã¯ã€çµ±è¨ˆçš„圧縮法ã§ã‚ã‚‹ PPM 圧縮ã®é€Ÿåº¦ã«è¿‘ã¥ã„ã¦ã„る。 ---------------------------------------- [原文] The command-line options are deliberately very similar to those of .I GNU gzip, but they are not identical. [訳文] コマンドラインオプション㯠GNU gzip ã®ã‚ªãƒ—ションã«ã‚ã–ã¨ä¼¼ã›ã¦ã‚ã‚‹ãŒã€åŒã˜ã§ã¯ãªã„。 ---------------------------------------- [原文] .I bzip2 expects a list of file names to accompany the command-line flags. Each file is replaced by a compressed version of itself, with the name "original_name.bz2". 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. File 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. [訳文] bzip2 ã¯ã‚³ãƒžãƒ³ãƒ‰ãƒ©ã‚¤ãƒ³ã®ãƒ•ラグを伴ã£ãŸãƒ•ァイルåã®ãƒªã‚¹ãƒˆã‚’å—ã‘å–ã‚‹ 。 å„ファイルã¯ã€"original_name.bz2" ã¨ã„ã†åå‰ã® 圧縮ã•れãŸãƒ•ァイルã«ç½®ãæ›ãˆã‚‰ã‚Œã‚‹ã€‚ 圧縮ファイルã®ä¿®æ£æ—¥ãƒ»ã‚¢ã‚¯ã‚»ã‚¹æ¨©ãƒ»(è¨å®šå¯èƒ½ãªå ´åˆã®) 所有者ã¯ã€ å…ƒã®ãƒ•ァイルã¨åŒã˜ã«ãªã‚‹ã€‚ ã“れã«ã‚ˆã‚Šã€ä¼¸é•·æ™‚ã«å±žæ€§ãŒæ£ã—ã復元ã•れる。 ファイルåã®æ“作ã¯ã€ å…ƒã®ãƒ•ァイルå・アクセス権・所有者をä¿å˜ã™ã‚‹ä»•組ã¿ãŒ ファイルシステムã«ãªã‹ã£ãŸã‚Šã€ MS-DOS ã®ã‚ˆã†ã«æ·±åˆ»ãªãƒ•ァイルåã®é•·ã•制é™ãŒã‚ã‚‹ãŸã‚ã«ã€ ã¨ã¦ã‚‚é¢å€’ã§ã‚る。 ---------------------------------------- [原文] .I bzip2 and .I bunzip2 will by default not overwrite existing files. If you want this to happen, specify the -f flag. [訳文] bzip2 㨠bunzip2 ã¯ãƒ‡ãƒ•ォルトã§ã¯æ—¢å˜ã®ãƒ•ァイルを上書ãã—ãªã„。 上書ãã—ãŸã„å ´åˆã¯ -f フラグを指定ã™ã‚‹ã“ã¨ã€‚ ---------------------------------------- [原文] If no file names are specified, .I bzip2 compresses from standard input to standard output. In this case, .I bzip2 will decline to write compressed output to a terminal, as this would be entirely incomprehensible and therefore pointless. [訳文] ファイルåãŒæŒ‡å®šã•れãªã„å ´åˆã€ bzip2 標準入力を圧縮ã—ã¦æ¨™æº–å‡ºåŠ›ã«æ›¸ã出ã™ã€‚ ã“ã®å ´åˆã€ bzip2 ã¯åœ§ç¸®ã•れãŸå‡ºåŠ›ã‚’ç«¯æœ«ã«ã¯æ›¸ã出ã•ãªã„。 ãªãœãªã‚‰ã€ã“ã®å‡ºåŠ›ã¯å…¨ã分ã‹ã‚Šã«ããã¦ã€ç„¡é§„ãªã‚‚ã®ã ã‹ã‚‰ã§ã‚ る。 ---------------------------------------- [原文] .I bunzip2 (or .I bzip2 -d) decompresses all specified files. Files which were not created by .I bzip2 will be detected and ignored, and a warning issued. .I bzip2 attempts to guess the filename for the decompressed file from that of the compressed file as follows: [訳文] bunzip2 (ã¾ãŸã¯ bzip2 -d) ã¯ã€æŒ‡å®šã•れãŸå…¨ã¦ã®ãƒ•ァイルを伸長ã™ã‚‹ã€‚ bzip2 ã§åœ§ç¸®ã•れã¦ã„ãªã„ãƒ•ã‚¡ã‚¤ãƒ«ã¯æ¤œçŸ¥ã•れã€ç„¡è¦–ã•れる。 ã•らã«è¦å‘ŠãŒå‡ºã•れる。 bzip2 ã¯ã€ä»¥ä¸‹ã®ã‚ˆã†ã«ã—ã¦åœ§ç¸®ãƒ•ァイルã®åå‰ã‹ã‚‰ä¼¸é•·å¾Œã®ãƒ•ァイルå を推測ã™ã‚‹ã€‚ ---------------------------------------- [原文] filename.bz2 becomes filename filename.bz becomes filename filename.tbz2 becomes filename.tar filename.tbz becomes filename.tar anyothername becomes anyothername.out [訳文] filename.bz2 㯠filename ã«ãªã‚‹ã€‚ filename.bz 㯠filename ã«ãªã‚‹ã€‚ filename.tbz2 㯠filename.tar ã«ãªã‚‹ã€‚ filename.tbz 㯠filename.tar ã«ãªã‚‹ã€‚ anyothername 㯠anyothername.out ã«ãªã‚‹ã€‚ ---------------------------------------- [原文] If the file does not end in one of the recognised endings, .I .bz2, .I .bz, .I .tbz2 or .I .tbz, .I bzip2 complains that it cannot guess the name of the original file, and uses the original name with .I .out appended. [訳文] ファイルå㌠.bz2, .bz, .tbz2, .tbz ã®ã‚ˆã†ãªèªè˜ã•れる拡張åã®ã„ãšã‚Œã‹ã§çµ‚ã£ã¦ã„ãªã„å ´åˆã€ bzip2 ã¯å…ƒã®ãƒ•ァイルåãŒæŽ¨æ¸¬ã§ããªã„ã¨ã„ã†è¦å‘Šã‚’出ã—〠.out ã‚’ä»˜åŠ ã—ãŸåå‰ã‚’å…ƒã®ãƒ•ァイルåã¨ã—ã¦ä½¿ã†ã€‚ ---------------------------------------- [原文] As with compression, supplying no filenames causes decompression from standard input to standard output. [訳文] 圧縮ã®å ´åˆã¨åŒæ§˜ã«ã€ ファイルåãŒæŒ‡å®šã•れãªã„å ´åˆã¯ã€ 標準入力を伸長ã—ã¦æ¨™æº–å‡ºåŠ›ã«æ›¸ã出ã™ã€‚ ---------------------------------------- [原文] .I bunzip2 will correctly decompress a file which is the concatenation of two or more compressed files. The result is the concatenation of the corresponding uncompressed files. Integrity testing (-t) of concatenated compressed files is also supported. [訳文] bunzip2 㯠2 ã¤ä»¥ä¸Šã®åœ§ç¸®ãƒ•ァイルを連çµã—ãŸãƒ•ァイルã§ã‚‚æ£ã—ã伸長ã™ã‚‹ã€‚ 伸長ã—ã¦å¾—られるファイルã¯ã€åœ§ç¸®å‰ã®ãƒ•ァイルを連çµã—ãŸã‚‚ã®ã« ãªã‚‹ã€‚ 連çµã—ãŸåœ§ç¸®ãƒ•ァイルã®å®Œå…¨æ€§ãƒ†ã‚¹ãƒˆ (-t) もサãƒãƒ¼ãƒˆã•れã¦ã„る。 ---------------------------------------- [原文] You can also compress or decompress files to the standard output by giving the -c flag. Multiple files may be compressed and decompressed like this. The resulting outputs are fed sequentially to stdout. Compression of multiple files in this manner generates a stream containing multiple compressed file representations. Such a stream can be decompressed correctly only by .I bzip2 version 0.9.0 or later. Earlier versions of .I bzip2 will stop after decompressing the first file in the stream. [訳文] -c フラグを指定ã™ã‚‹ã“ã¨ã«ã‚ˆã‚Šã€ 圧縮・伸長ã•れãŸãƒ•ã‚¡ã‚¤ãƒ«ã‚’æ¨™æº–å‡ºåŠ›ã«æ›¸ã出ã™ã“ã¨ã‚‚ã§ãる。 ã“ã®ãƒ•ラグを指定ã—ã¦ã€è¤‡æ•°ã®ãƒ•ァイルを圧縮・伸長ã™ã‚‹ã“ã¨ãŒã§ ãる。 çµæžœã®å‡ºåŠ›ã¯æ¨™æº–出力ã«é †ç•ªã«æ›¸ã出ã•れる。 ã“ã®æ–¹å¼ã«ã‚ˆã‚‹è¤‡æ•°ãƒ•ァイルã®åœ§ç¸®ã§ã¯ã€ 複数圧縮ファイル表ç¾ã‚’å«ã‚€ã‚¹ãƒˆãƒªãƒ¼ãƒ ãŒç”Ÿæˆã•れる。 ã“ã®ã‚ˆã†ãªã‚¹ãƒˆãƒªãƒ¼ãƒ ã¯ã€ ãƒãƒ¼ã‚¸ãƒ§ãƒ³ 0.9.0 以é™ã® bzip2 ã§ã—ã‹æ£ã—ã伸長ã§ããªã„。 ã“れよりå‰ã®ãƒãƒ¼ã‚¸ãƒ§ãƒ³ã® bzip2 ã§ã¯ã‚¹ãƒˆãƒªãƒ¼ãƒ ä¸ã®æœ€åˆã®ãƒ•ァイルを伸長ã—ãŸå¾Œã«åœæ¢ã™ã‚‹ã€‚ ---------------------------------------- [原文] .I bzcat (or .I bzip2 -dc) decompresses all specified files to the standard output. [訳文] bzcat (ã¾ãŸã¯ bzip2 -dc) ã¯æŒ‡å®šã—ãŸå…¨ã¦ã®ãƒ•ァイルを伸長ã—ã€æ¨™æº–å‡ºåŠ›ã«æ›¸ã出ã™ã€‚ ---------------------------------------- [原文] .I bzip2 will read arguments from the environment variables .I BZIP2 and .I BZIP, in that order, and will process them before any arguments read from the command line. This gives a convenient way to supply default arguments. [訳文] bzip2 ã¯ç’°å¢ƒå¤‰æ•° BZIP2, BZIP ã‹ã‚‰ã“ã®é †ç•ªã§å¼•ãæ•°ã‚’èªã¿è¾¼ã¿ã€ コマンドラインã‹ã‚‰èªã¿è¾¼ã¾ã‚ŒãŸå¼•ãæ•°ã‚ˆã‚Šã‚‚å…ˆã«å‡¦ç†ã™ã‚‹ã€‚ ã“れã¯ãƒ‡ãƒ•ォルトã®å¼•ãæ•°ã‚’与ãˆã‚‹ä¾¿åˆ©ãªæ–¹æ³•ã§ã‚る。 ---------------------------------------- [原文] Compression is always performed, even if the compressed file is slightly larger than the original. Files of less than about one hundred bytes tend to get larger, since the compression mechanism has a constant overhead in the region of 50 bytes. Random data (including the output of most file compressors) is coded at about 8.05 bits per byte, giving an expansion of around 0.5%. [訳文] 圧縮後ã®ãƒ•ァイルãŒå…ƒã®ãƒ•ァイルより少ã—大ãããªã‚‹å ´åˆã§ã‚ã£ã¦ も〠圧縮ã¯å¸¸ã«è¡Œã‚れる。 100 ãƒã‚¤ãƒˆã‚ˆã‚Šå°ã•ã„ãらã„ã®ãƒ•ァイルã¯ã€åœ§ç¸®ã«ã‚ˆã£ã¦å¤§ãããªã‚‹å‚¾ å‘ãŒã‚る。 ãªãœãªã‚‰ã€ã“ã®åœ§ç¸®ãƒ¡ã‚«ãƒ‹ã‚ºãƒ ㌠定常的㫠50 ãƒã‚¤ãƒˆã®ã‚ªãƒ¼ãƒãƒ¼ãƒ˜ãƒƒãƒ‰ã‚’æŒã¤ãŸã‚ã§ã‚る。 (大部分ã®ãƒ•ァイル圧縮法ã«ã‚ˆã‚‹å‡ºåŠ›ã‚’å«ã‚€) ランダムãªãƒ‡ãƒ¼ã‚¿ã¯ã€ 1 ãƒã‚¤ãƒˆå½“ãŸã‚Šç´„ 8.05 ビットã§ã‚³ãƒ¼ãƒ‰åŒ–ã•れã€ç´„ 0.5% 大ãããªã‚‹ã€‚ ---------------------------------------- [原文] As a self-check for your protection, .I bzip2 uses 32-bit CRCs to make sure that the decompressed version of a file is identical to the original. This guards against corruption of the compressed data, and against undetected bugs in .I bzip2 (hopefully very unlikely). The chances of data corruption going undetected is microscopic, about one chance in four billion for each file processed. Be aware, though, that the check occurs upon decompression, so it can only tell you that something is wrong. It can't help you recover the original uncompressed data. You can use .I bzip2recover to try to recover data from damaged files. [訳文] データä¿è·ã®ãŸã‚ã®è‡ªå·±ãƒã‚§ãƒƒã‚¯ã¨ã—ã¦ã€ bzip2 㯠32 ビット CRC ã‚’ç ´æã—ãŸãƒ•ァイルを元ã®ãƒ•ァイルã¨åŒã˜ã«ã™ã‚‹ãŸã‚ã«ä½¿ã†ã€‚ ã“れã«ã‚ˆã‚Šã€åœ§ç¸®ãƒ‡ãƒ¼ã‚¿ã®ç ´æã¨ã¾ã 見ã¤ã‹ã£ã¦ã„ãªã„ bzip2 ã®ãƒã‚° (ã¨ã¦ã‚‚å°‘ãªã„ã“ã¨ã‚’期待ã™ã‚‹) ã‹ã‚‰ãƒ‡ãƒ¼ã‚¿ã‚’ä¿è·ã™ã‚‹ã“ã¨ãŒã§ãる。 データã®ç ´æãŒæ¤œçŸ¥ã•れãªã„確率ã¯éžå¸¸ã«å°‘ãªã〠å„ファイル処ç†ã«ã¤ã 40 億回㫠1 回程度ã§ã‚る。 ã—ã‹ã—ã€ã“ã®ãƒã‚§ãƒƒã‚¯ã¯ä¼¸é•·ã®ã¨ãã«ã—ã‹è¡Œã‚れãªã„ã®ã§ã€ 何ã‹é–“é•ã„ãŒã‚ã‚‹ã“ã¨ã‚’知らã›ã‚‹ã ã‘ã§ã‚ã‚‹ç‚¹ã«æ³¨æ„ã™ã‚‹ã“ã¨ã€‚ オリジナルã®åœ§ç¸®ã•れã¦ã„ãªã„データを復元ã™ã‚‹åŠ©ã‘ã«ã¯ãªã‚‰ãªã„ 。 ç ´æã—ãŸãƒ•ァイルã‹ã‚‰ãƒ‡ãƒ¼ã‚¿ã‚’復元ã™ã‚‹ãŸã‚ã«ã¯ã€ bzip2recover を使ã†ã“ã¨ãŒã§ãる。 ---------------------------------------- [原文] Return values: 0 for a normal exit, 1 for environmental problems (file not found, invalid flags, I/O errors, &c), 2 to indicate a corrupt compressed file, 3 for an internal consistency error (eg, bug) which caused .I bzip2 to panic. [訳文] 返り値: æ£å¸¸çµ‚了ã®å ´åˆã€0 ãŒè¿”ã•れる。 実行環境ã®å•題 (ファイルãŒãªã„ãƒ»ä¸æ£ãªãƒ•ラグ・ I/O エラーãªã©) ãŒã‚ã‚‹å ´åˆã€1 ãŒè¿”ã•れる。 ç ´æã—ãŸåœ§ç¸®ãƒ•ァイルã®å ´åˆã€2 ãŒè¿”ã•れる。 bzip2 ã«ãƒ‘ニックを引ãèµ·ã“ã™å†…éƒ¨æ•´åˆæ€§ã‚¨ãƒ©ãƒ¼ (例ãˆã°ã€ãƒã‚°) ã®å ´åˆã€3 ãŒè¿”ã•れる。 ---------------------------------------- [原文] .SH OPTIONS [訳文] .SH オプション ---------------------------------------- [原文] .TP .B -c --stdout Compress or decompress to standard output. [訳文] .TP -c --stdout 圧縮・伸長ã—ãŸçµæžœã‚’æ¨™æº–å‡ºåŠ›ã«æ›¸ã出ã™ã€‚ ---------------------------------------- [原文] .TP .B -d --decompress Force decompression. .I bzip2, .I bunzip2 and .I bzcat are really the same program, and the decision about what actions to take is done on the basis of which name is used. This flag overrides that mechanism, and forces .I bzip2 to decompress. [訳文] .TP -d --decompress ファイルã®ä¼¸é•·ã‚’ã•ã›ã‚‹ã€‚ bzip2, bunzip2, bzcat ã¯å®Ÿéš›ã«ã¯åŒã˜ãƒ—ãƒã‚°ãƒ©ãƒ ã§ã‚る。 ã©ã®å‹•作をã™ã‚‹ã®ã‹ã¯ã€ã©ã®åå‰ãŒä½¿ã‚れãŸã‹ã«åŸºã¥ã„ã¦æ±ºã‚られ る。 ã“ã®ãƒ•ラグã¯ã€ãã®å‹•作決定機構より優先ã•れ〠bzip2 ã«ãƒ•ァイルã®ä¼¸é•·ã‚’ã•ã›ã‚‹ã€‚ ---------------------------------------- [原文] .TP .B -z --compress The complement to -d: forces compression, regardless of the invocation name. [訳文] .TP -z --compress -d ã®å対。 èµ·å‹•ã•れãŸåå‰ã«ã‹ã‹ã‚らãšã€ãƒ•ァイルã®åœ§ç¸®ã‚’ã•ã›ã‚‹ã€‚ ---------------------------------------- [原文] .TP .B -t --test Check integrity of the specified file(s), but don't decompress them. This really performs a trial decompression and throws away the result. [訳文] .TP -t --test 指定ã•れãŸãƒ•ァイルã®å®Œå…¨æ€§ã®ãƒã‚§ãƒƒã‚¯ã‚’ã™ã‚‹ãŒã€ä¼¸é•·ã¯ã—ãªã„。 伸長テストを行ã„ã€çµæžœã‚’ç ´æ£„ã™ã‚‹ã€‚ ---------------------------------------- [原文] .TP .B -f --force Force overwrite of output files. Normally, .I bzip2 will not overwrite existing output files. Also forces .I bzip2 to break hard links to files, which it otherwise wouldn't do. [訳文] .TP -f --force 出力ファイルã®ä¸Šæ›¸ãã‚’ã•ã›ã‚‹ã€‚ 通常〠bzip2 ã¯æ—¢å˜ã®å‡ºåŠ›ãƒ•ã‚¡ã‚¤ãƒ«ã‚’ä¸Šæ›¸ãã—ãªã„。 ã•ら㫠bzip2 ã«ãƒ•ァイルã¸ã®ãƒãƒ¼ãƒ‰ãƒªãƒ³ã‚¯ã‚’削除ã•ã›ã‚‹ã€‚ ã“ã®ã‚ªãƒ—ã‚·ãƒ§ãƒ³ãŒæŒ‡å®šã•れã¦ã„ãªã„å ´åˆã¯ã€ãƒãƒ¼ãƒ‰ãƒªãƒ³ã‚¯ã®å‰Šé™¤ã‚‚ ã•れãªã„。 ---------------------------------------- [原文] bzip2 normally declines to decompress files which don't have the correct magic header bytes. If forced (-f), however, it will pass such files through unmodified. This is how GNU gzip behaves. [訳文] 通常 bzip2 ã¯æ£ã—ã„マジックヘッダãƒã‚¤ãƒˆã‚’æŒãŸãªã„ファイルを伸長ã—ãªã„。 ãŸã ã— (-f) ã§å¼·åˆ¶ã™ã‚Œã°ã€ã“れらã®ãƒ•ァイルも修æ£ã›ãšã«é€šéŽã•ã›ã‚‹ã€‚ ã“れ㯠GNU gzip ã®å‹•作ã¨åŒã˜ã§ã‚る。 ---------------------------------------- [原文] .TP .B -k --keep Keep (don't delete) input files during compression or decompression. [訳文] .TP -k --keep 伸長・展開ã®å¾Œã§ã‚‚入力ファイルをä¿å˜ã™ã‚‹ (削除ã—ãªã„)。 ---------------------------------------- [原文] .TP .B -s --small Reduce memory usage, for compression, decompression and testing. Files are decompressed and tested using a modified algorithm which only requires 2.5 bytes per block byte. This means any file can be decompressed in 2300k of memory, albeit at about half the normal speed. [訳文] .TP -s --small 圧縮・伸長・テストã®éš›ã®ãƒ¡ãƒ¢ãƒªä½¿ç”¨é‡ã‚’減らã™ã€‚ 1 ブãƒãƒƒã‚¯ãƒã‚¤ãƒˆå½“ãŸã‚Š 2.5 ãƒã‚¤ãƒˆã—ã‹å¿…è¦ã¨ã—ãªã„ ä¿®æ£ã•れãŸã‚¢ãƒ«ã‚´ãƒªã‚ºãƒ を使ã£ã¦ã€ ファイルã®ä¼¸é•·ãƒ»ãƒ†ã‚¹ãƒˆãŒè¡Œã‚れる。 å…¨ã¦ã®ãƒ•ァイル㌠2300kB ã®ãƒ¡ãƒ¢ãƒªã§ä¼¸é•·ã§ãã‚‹ãŒã€ 通常ã®é€Ÿåº¦ã®ç´„åŠåˆ†ã®é€Ÿåº¦ã«ãªã£ã¦ã—ã¾ã†ã€‚ ---------------------------------------- [原文] During compression, -s selects a block size of 200k, which limits memory use to around the same figure, at the expense of your compression ratio. In short, if your machine is low on memory (8 megabytes or less), use -s for everything. See MEMORY MANAGEMENT below. [訳文] 圧縮ã®å ´åˆã€-s フラグを使ã†ã¨ 200kB ã®ãƒ–ãƒãƒƒã‚¯ã‚µã‚¤ã‚ºãŒé¸æŠžã•れる。 メモリ使用é‡ã¯ã“れã¨åŒã˜ãらã„ã«ãªã‚‹ãŒã€åœ§ç¸®çއãŒçŠ ç‰²ã«ãªã‚‹ã€‚ ã¤ã¾ã‚Šã€è¨ˆç®—機ã«ãƒ¡ãƒ¢ãƒªãŒå°‘ãªã„ (8 MB 以下) å ´åˆã¯ã€ å…¨ã¦ã®ãƒ•ァイルã«ã¤ã„㦠-s フラグを使ã†ã“ã¨ã€‚ 以下ã®ã€Œãƒ¡ãƒ¢ãƒªç®¡ç†ã€ã‚»ã‚¯ã‚·ãƒ§ãƒ³ã‚’å‚ç…§ã™ã‚‹ã“ã¨ã€‚ ---------------------------------------- [原文] .TP .B -q --quiet Suppress non-essential warning messages. Messages pertaining to I/O errors and other critical events will not be suppressed. [訳文] .TP -q --quiet 本質的ã§ãªã„è¦å‘Šãƒ¡ãƒƒã‚»ãƒ¼ã‚¸ã‚’抑制ã™ã‚‹ã€‚ I/O エラーã¨è‡´å‘½çš„ãªã‚¤ãƒ™ãƒ³ãƒˆã«é–¢ä¿‚ã™ã‚‹ãƒ¡ãƒƒã‚»ãƒ¼ã‚¸ã¯æŠ‘制ã•れãªã„。 ---------------------------------------- [原文] .TP .B -v --verbose Verbose mode -- show the compression ratio for each file processed. Further -v's increase the verbosity level, spewing out lots of information which is primarily of interest for diagnostic purposes. [訳文] .TP -v --verbose 詳細表示モード -- å„ファイル処ç†ã«ã¤ã„ã¦åœ§ç¸®çŽ‡ã‚’è¡¨ç¤ºã™ã‚‹ã€‚ ã•ら㫠-v ã®æ•°ã‚’増やã™ã¨ã€è©³ç´°è¡¨ç¤ºã®ãƒ¬ãƒ™ãƒ«ã‚‚上ãŒã‚Šã€ 主ã«è¨ºæ–を目的ã¨ã™ã‚‹å¤šãã®æƒ…å ±ã‚’æ›¸ã出ã™ã€‚ ---------------------------------------- [原文] .TP .B -L --license -V --version Display the software version, license terms and conditions. [訳文] .TP -L --license -V --version ソフトウェアã®ãƒãƒ¼ã‚¸ãƒ§ãƒ³ãƒ»ãƒ©ã‚¤ã‚»ãƒ³ã‚¹ãƒ»é…布æ¡ä»¶ã‚’表示ã™ã‚‹ã€‚ ---------------------------------------- [原文] .TP .B -1 (or --fast) to -9 (or --best) Set the block size to 100 k, 200 k .. 900 k when compressing. Has no effect when decompressing. See MEMORY MANAGEMENT below. The --fast and --best aliases are primarily for GNU gzip compatibility. In particular, --fast doesn't make things significantly faster. And --best merely selects the default behaviour. [訳文] .TP -1 (ã¾ãŸã¯ --fast) ã‹ã‚‰ -9 (ã¾ãŸã¯ --best) 圧縮ã®å ´åˆã€ãƒ–ãƒãƒƒã‚¯ã‚µã‚¤ã‚ºã‚’ 100 k, 200 k .. 900 k ã«è¨å®šã™ã‚‹ã€‚ 伸長ã®å ´åˆã€ä½•も影響をåŠã¼ã•ãªã„。 以下ã®ã€Œãƒ¡ãƒ¢ãƒªç®¡ç†ã€ã‚»ã‚¯ã‚·ãƒ§ãƒ³ã‚’å‚ç…§ã™ã‚‹ã“ã¨ã€‚ --fast 㨠--best エイリアスã¯ã€ 主ã¨ã—㦠GNU gzip ã¨ã®äº’æ›æ€§ã®ãŸã‚ã«ã‚る。 特㫠--fast オプションã§ç›®ã«è¦‹ãˆã¦é€Ÿããªã‚‹è¨³ã§ã¯ãªã„。 ã¾ãŸ --best ã¯å˜ã«ãƒ‡ãƒ•ォルトã®å‹•ä½œã‚’é¸æŠžã™ã‚‹ã ã‘ã§ã‚る。 ---------------------------------------- [原文] .TP .B -- Treats all subsequent arguments as file names, even if they start with a dash. This is so you can handle files with names beginning with a dash, for example: bzip2 -- -myfilename. [訳文] .TP -- ã“れ以é™ã®å¼•ãæ•°ãŒã€ãŸã¨ãˆãƒ€ãƒƒã‚·ãƒ¥ã§å§‹ã¾ã‚‹ã‚‚ã®ã§ã‚ã£ã¦ã‚‚〠ファイルåã¨ã—ã¦æ‰±ã†ã€‚ ã“れã«ã‚ˆã‚Šã€ãƒ€ãƒƒã‚·ãƒ¥ã§å§‹ã¾ã‚‹åå‰ã®ãƒ•ァイルを扱ã†ã“ã¨ãŒã§ãã‚‹ 。 例を挙ã’ã‚‹: bzip2 -- -myfilename ---------------------------------------- [原文] .TP .B --repetitive-fast --repetitive-best These flags are redundant in versions 0.9.5 and above. They provided some coarse control over the behaviour of the sorting algorithm in earlier versions, which was sometimes useful. 0.9.5 and above have an improved algorithm which renders these flags irrelevant. [訳文] .TP --repetitive-fast --repetitive-best ã“れらã®ãƒ•ラグã¯ã€ãƒãƒ¼ã‚¸ãƒ§ãƒ³ 0.9.5 以é™ã§ã¯ä½™è¨ˆãªã‚‚ã®ã§ã‚る。 ã“れらã®ãƒ•ラグã¯ã€ä»¥å‰ã®ãƒãƒ¼ã‚¸ãƒ§ãƒ³ã§ã‚½ãƒ¼ãƒˆã‚¢ãƒ«ã‚´ãƒªã‚ºãƒ ã®å‹•作 ã‚’ 大雑把ã«åˆ¶å¾¡ã™ã‚‹ãŸã‚ã«æä¾›ã•れãŸã‚‚ã®ã§ã€æ™‚々ã¯å½¹ç«‹ã£ãŸã‚‚ã®ã§ ã‚る。 0.9.5 以é™ã§ã¯ã€ã“れらã®ãƒ•ラグãŒç„¡é–¢ä¿‚ã«ãªã‚‹ 改良ã•れãŸã‚¢ãƒ«ã‚´ãƒªã‚ºãƒ ãŒä½¿ã‚れã¦ã„る。 ---------------------------------------- [原文] .SH MEMORY MANAGEMENT .I bzip2 compresses large files in blocks. The block size affects both the compression ratio achieved, and the amount of memory needed for compression and decompression. The flags -1 through -9 specify the block size to be 100,000 bytes through 900,000 bytes (the default) respectively. At decompression time, the block size used for compression is read from the header of the compressed file, and .I bunzip2 then allocates itself just enough memory to decompress the file. Since block sizes are stored in compressed files, it follows that the flags -1 to -9 are irrelevant to and so ignored during decompression. [訳文] .SH ãƒ¡ãƒ¢ãƒªç®¡ç† bzip2 ã¯ãƒ–ãƒãƒƒã‚¯æ¯Žã«å¤§ããªãƒ•ァイルを圧縮ã™ã‚‹ã€‚ ブãƒãƒƒã‚¯ã‚µã‚¤ã‚ºã¯ã€å®Ÿè¡Œã•れãŸçµæžœã®åœ§ç¸®çŽ‡ã¨ åœ§ç¸®ãƒ»ä¼¸é•·ã«å¿…è¦ãªãƒ¡ãƒ¢ãƒªä½¿ç”¨é‡ã®ä¸¡æ–¹ã«å½±éŸ¿ã‚’åŠã¼ã™ã€‚ フラグ -1 ã‹ã‚‰ -9 ã¯ã€ãれãžã‚Œãƒ–ãƒãƒƒã‚¯ã‚µã‚¤ã‚º 100,000 ãƒã‚¤ãƒˆã‹ã‚‰ (デフォルトã®) 900,000 ãƒã‚¤ãƒˆã‚’指定ã™ã‚‹ã€‚ 伸長時ã«ã¯ã€åœ§ç¸®ã«ä½¿ã‚れãŸãƒ–ãƒãƒƒã‚¯ã‚µã‚¤ã‚ºãŒåœ§ç¸®ãƒ•ァイルã®ãƒ˜ãƒƒ ダã‹ã‚‰èªã¿è¾¼ã¾ã‚Œã€ bunzip2 ã¯ãƒ•ァイルを伸長ã™ã‚‹ã®ã«ã¡ã‚‡ã†ã©å分ãªãƒ¡ãƒ¢ãƒªã‚’確ä¿ã™ã‚‹ã€‚ ブãƒãƒƒã‚¯ã‚µã‚¤ã‚ºã¯åœ§ç¸®ãƒ•ã‚¡ã‚¤ãƒ«ã«æ ¼ç´ã•れã¦ã„ã‚‹ã®ã§ã€ 伸長時ã«ã¯ãƒ•ラグ -1 ã‹ã‚‰ -9 ã¯é–¢ä¿‚ãªã無視ã•れる。 ---------------------------------------- [原文] Compression and decompression requirements, in bytes, can be estimated as: [訳文] 圧縮・伸縮ã«å¿…è¦ãªãƒ¡ãƒ¢ãƒªä½¿ç”¨é‡ (ãƒã‚¤ãƒˆå˜ä½) ã¯ã€ 以下ã®ã‚ˆã†ã«è¨ˆç®—ã§ãã‚‹: ---------------------------------------- [原文] Compression: 400k + ( 8 x block size ) [訳文] 圧縮: 400k + ( 8 x ブãƒãƒƒã‚¯ã‚µã‚¤ã‚º ) ---------------------------------------- [原文] Decompression: 100k + ( 4 x block size ), or 100k + ( 2.5 x block size ) [訳文] 伸長: 100k + ( 4 x ブãƒãƒƒã‚¯ã‚µã‚¤ã‚º ), ã¾ãŸã¯ 100k + ( 2.5 x ブãƒãƒƒã‚¯ã‚µã‚¤ã‚º ) ---------------------------------------- [原文] Larger block sizes give rapidly diminishing marginal returns. Most of the compression comes from the first two or three hundred k of block size, a fact worth bearing in mind when using .I bzip2 on small machines. It is also important to appreciate that the decompression memory requirement is set at compression time by the choice of block size. [訳文] 大ãã„ブãƒãƒƒã‚¯ã‚µã‚¤ã‚ºã«ã™ã‚‹ã¨ã€å¢ƒç•Œã®è¿”り値をã™ãã«æ¸›å°‘ã•ã›ã‚‹ 。 大部分ã®åœ§ç¸®ã¯ã€æœ€åˆã® 200kB ã‹ã‚‰ 300kB ã®ãƒ–ãƒãƒƒã‚¯ã‚µã‚¤ã‚ºã§ã¤ãられる。 bzip2 をメモリã®å°‘ãªã„計算機ã§ä½¿ã†å ´åˆã¯ã€ ã“ã®ã“ã¨ã‚’覚ãˆã¦ãŠã価値ãŒã‚る。 ã•らã«ã€ä¼¸é•·ã«å¿…è¦ãªãƒ¡ãƒ¢ãƒªã¯ã€åœ§ç¸®æ™‚ã«ãƒ–ãƒãƒƒã‚¯ã‚µã‚¤ã‚ºã‚’é¸æŠžã™ ã‚‹ã“ã¨ã§ è¨å®šã•れる点を知ã£ã¦ãŠãã“ã¨ã‚‚é‡è¦ã§ã‚る。 ---------------------------------------- [原文] For files compressed with the default 900k block size, .I bunzip2 will require about 3700 kbytes to decompress. To support decompression of any file on a 4 megabyte machine, .I bunzip2 has an option to decompress using approximately half this amount of memory, about 2300 kbytes. Decompression speed is also halved, so you should use this option only where necessary. The relevant flag is -s. [訳文] デフォルト㮠900kB ブãƒãƒƒã‚¯ã‚µã‚¤ã‚ºã§åœ§ç¸®ã•れãŸãƒ•ァイルã«å¯¾ã—ã¦ã€ bunzip2 ã¯ä¼¸é•·æ™‚ã«ç´„ 3700kB ã®ãƒ¡ãƒ¢ãƒªã‚’å¿…è¦ã¨ã™ã‚‹ã€‚ 4MB ã®ãƒ¡ãƒ¢ãƒªã®è¨ˆç®—機ã§ãƒ•ァイル伸長をサãƒãƒ¼ãƒˆã™ã‚‹ã«ã¯ã€ bunzip2 ã“ã®ãƒ¡ãƒ¢ãƒªé‡ã®ç´„åŠåˆ†ã€ç´„ 2300kB を使ã£ã¦ä¼¸é•·ã™ã‚‹ã‚ªãƒ—ションãŒã‚る。 伸長速度もåŠåˆ†ã«ãªã‚‹ã®ã§ã€ã“ã®ã‚ªãƒ—ションã¯å¿…è¦ãªå ´åˆã«ã®ã¿ä½¿ ã†ã¹ãã§ã‚る。 関連ã™ã‚‹ãƒ•ラグã¨ã—㦠-s ãŒã‚る。 ---------------------------------------- [原文] In general, try and use the largest block size memory constraints allow, since that maximises the compression achieved. Compression and decompression speed are virtually unaffected by block size. [訳文] 一般的ã«ã¯ã€ãƒ¡ãƒ¢ãƒªã®åˆ¶é™ãŒè¨±ã™é™ã‚Šä¸€ç•ªå¤§ããªãƒ–ãƒãƒƒã‚¯ã‚µã‚¤ã‚ºã‚’ 使ã†ã“ã¨ã€‚ ã“ã†ã™ã‚‹ã“ã¨ã§åœ§ç¸®çŽ‡ãŒæœ€ã‚‚良ããªã‚‹ã€‚ 圧縮・伸長ã®é€Ÿåº¦ã¯äº‹å®Ÿä¸Šãƒ–ãƒãƒƒã‚¯ã‚µã‚¤ã‚ºã«å½±éŸ¿ã•れãªã„。 ---------------------------------------- [原文] Another significant point applies to files which fit in a single block -- that means most files you'd encounter using a large block size. The amount of real memory touched is proportional to the size of the file, since the file is smaller than a block. For example, compressing a file 20,000 bytes long with the flag -9 will cause the compressor to allocate around 7600k of memory, but only touch 400k + 20000 * 8 = 560 kbytes of it. Similarly, the decompressor will allocate 3700k but only touch 100k + 20000 * 4 = 180 kbytes. [訳文] ä»–ã«é‡è¦ãªç‚¹ãŒå˜ä¸€ã®ãƒ–ãƒãƒƒã‚¯ã«é©ç”¨ã•れる。 -- ã¤ã¾ã‚Šã€å…¥æ‰‹ã™ã‚‹å¤§éƒ¨åˆ†ã®ãƒ•ァイルã¯ã€ 大ãã„ブãƒãƒƒã‚¯ã‚µã‚¤ã‚ºã‚’使ã£ã¦ã„ã‚‹ã¨ã„ã†ã“ã¨ã§ã‚る。 ã“ã®ãƒ•ァイルã®ã‚µã‚¤ã‚ºã¯ãƒ–ãƒãƒƒã‚¯ã‚µã‚¤ã‚ºã‚ˆã‚Šå°ã•ã„ã®ã§ã€ 実際ã®ãƒ¡ãƒ¢ãƒªä½¿ç”¨é‡ã¯ãƒ•ã‚¡ã‚¤ãƒ«ã‚µã‚¤ã‚ºã«æ¯”例ã™ã‚‹ã€‚ 例ãˆã°ã€20,000 ãƒã‚¤ãƒˆ (20kB) ã®ãƒ•ァイルを -9 フラグã§åœ§ç¸®ã™ã‚‹å ´åˆã€ 7600kB ã®ãƒ¡ãƒ¢ãƒªãŒç¢ºä¿ã•れるãŒã€400k + 20000 * 8 = 560kB ã—ã‹ä½¿ç”¨ã—ãªã„。 åŒæ§˜ã«ã€ä¼¸é•·æ™‚ã«ã¯ 3700kB ãŒç¢ºä¿ã•れるãŒã€ 100k + 20000 * 4 = 180 kB ã—ã‹ä½¿ç”¨ã—ãªã„。 ---------------------------------------- [原文] Here is a table which summarises the maximum memory usage for different block sizes. Also recorded is the total compressed size for 14 files of the Calgary Text Compression Corpus totalling 3,141,622 bytes. This column gives some feel for how compression varies with block size. These figures tend to understate the advantage of larger block sizes for larger files, since the Corpus is dominated by smaller files. [訳文] ç•°ãªã‚‹ãƒ–ãƒãƒƒã‚¯ã‚µã‚¤ã‚ºã«å¯¾ã—ã¦ã®æœ€å¤§ãƒ¡ãƒ¢ãƒªä½¿ç”¨é‡ã‚’ã¾ã¨ã‚ãŸãƒ†ãƒ¼ ブルを以下ã«ç¤ºã™ã€‚ カルガリー大å¦ã®ãƒ†ã‚スト圧縮コーパス (14 個ã®ãƒ•ァイルã€åˆè¨ˆ 3,141,622 ãƒã‚¤ãƒˆ) ã‚’ 圧縮ã—ãŸã‚µã‚¤ã‚ºã‚‚記録ã•れã¦ã„る。 è¡Œæ¯Žã«æ¯”ã¹ã‚‹ã¨ã€ãƒ–ãƒãƒƒã‚¯ã‚µã‚¤ã‚ºã«ã‚ˆã£ã¦åœ§ç¸®ãŒ ã©ã®ã‚ˆã†ã«å¤‰ã‚ã‚‹ã‹ã‚’知るã“ã¨ãŒã§ãる。 ã“ã®æ•°å—ã¯ã€å¤§ããªãƒ•ァイルã«å¯¾ã—ã¦å¤§ããªãƒ–ãƒãƒƒã‚¯ã‚µã‚¤ã‚ºã‚’使ㆠã“ã¨ã®åˆ©ç‚¹ã‚’〠控ãˆç›®ã«ã—ã‹è¿°ã¹ã¦ã„ãªã„。 ãªãœãªã‚‰ã€ã“ã®ã‚³ãƒ¼ãƒ‘スãŒå°ã•ã‚ã®ãƒ•ァイルã§å ã‚られã¦ã„ã‚‹ãŸã‚ ã§ã‚る。 ---------------------------------------- [原文] Compress Decompress Decompress Corpus Flag usage usage -s usage Size [訳文] 圧縮時㮠伸長時㮠-s 伸長時㮠コーパス㮠フラグ ä½¿ç”¨é‡ ä½¿ç”¨é‡ ä½¿ç”¨é‡ ã‚µã‚¤ã‚º ---------------------------------------- [原文] -1 1200k 500k 350k 914704 -2 2000k 900k 600k 877703 -3 2800k 1300k 850k 860338 -4 3600k 1700k 1100k 846899 -5 4400k 2100k 1350k 845160 -6 5200k 2500k 1600k 838626 -7 6100k 2900k 1850k 834096 -8 6800k 3300k 2100k 828642 -9 7600k 3700k 2350k 828642 [訳文] -1 1200k 500k 350k 914704 -2 2000k 900k 600k 877703 -3 2800k 1300k 850k 860338 -4 3600k 1700k 1100k 846899 -5 4400k 2100k 1350k 845160 -6 5200k 2500k 1600k 838626 -7 6100k 2900k 1850k 834096 -8 6800k 3300k 2100k 828642 -9 7600k 3700k 2350k 828642 ---------------------------------------- [原文] .SH RECOVERING DATA FROM DAMAGED FILES .I bzip2 compresses files in blocks, usually 900kbytes long. Each block is handled independently. If a media or transmission error causes a multi-block .bz2 file to become damaged, it may be possible to recover data from the undamaged blocks in the file. [訳文] .SH ç ´æã—ãŸãƒ•ァイルã‹ã‚‰ã®ãƒ‡ãƒ¼ã‚¿å¾©å…ƒ bzip2 ã¯ã€é€šå¸¸ 900kB ã®ãƒ–ãƒãƒƒã‚¯ã§ãƒ•ァイルを圧縮ã™ã‚‹ã€‚ å„ブãƒãƒƒã‚¯ã¯ç‹¬ç«‹ã«æ“作ã•れる。 メディアã®ã‚¨ãƒ©ãƒ¼ã‚„転é€ã‚¨ãƒ©ãƒ¼ã«ã‚ˆã‚Šã€ 複数ブãƒãƒƒã‚¯ã‹ã‚‰ãªã‚‹ .bz2 ファイルãŒç ´æã—ã¦ã‚‚〠ファイルã®ç ´æã—ã¦ã„ãªã„ブãƒãƒƒã‚¯ã‹ã‚‰ãƒ‡ãƒ¼ã‚¿ã‚’復元ã§ãã‚‹å¯èƒ½æ€§ ãŒã‚る。 ---------------------------------------- [原文] The compressed representation of each block is delimited by a 48-bit pattern, which makes it possible to find the block boundaries with reasonable certainty. Each block also carries its own 32-bit CRC, so damaged blocks can be distinguished from undamaged ones. [訳文] å„ブãƒãƒƒã‚¯ã®åœ§ç¸®ã•れãŸè¡¨ç¾ã¯ã€48 ビットã®ãƒ‘ターンã§åŒºåˆ‡ã‚‰ã‚Œã‚‹ã€‚ ã“ã®ãƒ‘ターンã«ã‚ˆã‚Šã€è«–ç†çš„ãªç¢ºå®Ÿæ€§ã‚’æŒã£ã¦ãƒ–ãƒãƒƒã‚¯å¢ƒç•Œã‚’見㤠ã‘ã‚‹ã“ã¨ãŒã§ãる。 å„ブãƒãƒƒã‚¯ã«ã¯ãれãžã‚Œã® 32 ビット CRC ãŒã‚ã‚‹ã®ã§ã€ ç ´æã—ãŸãƒ–ãƒãƒƒã‚¯ã¯ç ´æã—ã¦ã„ãªã„ã‚‚ã®ã¨åŒºåˆ¥ã§ãる。 ---------------------------------------- [原文] .I bzip2recover is a simple program whose purpose is to search for blocks in .bz2 files, and write each block out into its own .bz2 file. You can then use .I bzip2 -t to test the integrity of the resulting files, and decompress those which are undamaged. [訳文] bzip2recover ã¯ã€.bz2 ファイルã®å„ブãƒãƒƒã‚¯ã‚’検索ã—〠ãれ独自㮠.bz2 ファイルã«å„ブãƒãƒƒã‚¯ã‚’書ã出ã™ã€‚ ユーザーã¯ã€ bzip2 -t を使ã£ã¦å¾—られãŸãƒ•ァイルã®å®Œå…¨æ€§ã‚’テストã—ã€ ç ´æã—ã¦ã„ãªã„ファイルã¨ã—ã¦ä¼¸é•·ã§ãる。 ---------------------------------------- [原文] .I bzip2recover takes a single argument, the name of the damaged file, and writes a number of files "rec00001file.bz2", "rec00002file.bz2", etc, containing the extracted blocks. The output filenames are designed so that the use of wildcards in subsequent processing -- for example, "bzip2 -dc rec*file.bz2 > recovered_data" -- processes the files in the correct order. [訳文] bzip2recover ã¯ã€ç ´æã—ãŸãƒ•ァイルを唯一ã®å¼•ãæ•°ã¨ã—ã¦å—ã‘å–り〠抽出ã•れãŸãƒ–ãƒãƒƒã‚¯ã‚’å«ã‚“ã "rec00001file.bz2", "rec00002file.bz2", ..., ã¨ã„ã†å¤šãã®ãƒ•ァイルを書ã出ã™ã€‚ 出力ファイルã®åå‰ã¯ã€ ãã®å¾Œã®å‡¦ç†ã§ãƒ¯ã‚¤ãƒ«ãƒ‰ã‚«ãƒ¼ãƒ‰ãŒä½¿ãˆã‚‹ã‚ˆã†ã«è¨è¨ˆã•れã¦ã„ã‚‹ -- 例ãˆã°ã€ "bzip2 -dc rec*file.bz2 > recovered_data" -- ã¨ã™ã‚Œã°ã€ãƒ•ァイルをæ£ã—ã„é †ç•ªã§å‡¦ç†ã™ã‚‹ã“ã¨ãŒã§ãる。 ---------------------------------------- [原文] .I bzip2recover should be of most use dealing with large .bz2 files, as these will contain many blocks. It is clearly futile to use it on damaged single-block files, since a damaged block cannot be recovered. If you wish to minimise any potential data loss through media or transmission errors, you might consider compressing with a smaller block size. [訳文] 大ã㪠.bz2 ファイルã«ã¯å¤šãã®ãƒ–ãƒãƒƒã‚¯ãŒå«ã¾ã‚Œã¦ã„ã‚‹ã®ã§ã€ bzip2recover ã¯ã€ã»ã¨ã‚“ã©ã®å ´åˆã€ã“ã®ã‚ˆã†ãªãƒ•ァイルを扱ã†ãŸã‚ã«ä½¿ã‚れる。 1 ブãƒãƒƒã‚¯ãŒå…¨ã¦ç ´æã—ãŸãƒ–ãƒãƒƒã‚¯ã¯å¾©å…ƒã§ããªã„ã®ã§ã€ ã“ã®ã‚ˆã†ãªãƒ•ァイルã«å¯¾ã—ã¦ä½¿ã†ã®ã¯æ˜Žã‚‰ã‹ã«ç„¡é§„ã§ã‚る。 メディアエラーや転é€ã‚¨ãƒ©ãƒ¼ã«ã‚ˆã‚‹æ½œåœ¨çš„ãªãƒ‡ãƒ¼ã‚¿æå¤±ã‚’å°‘ãªãã— ãŸã„ãªã‚‰ã€ å°ã•ã„ブãƒãƒƒã‚¯ã‚µã‚¤ã‚ºã§åœ§ç¸®ã™ã‚‹ã“ã¨ã‚’考ãˆãŸæ–¹ãŒè‰¯ã„。 ---------------------------------------- [原文] .SH PERFORMANCE NOTES The sorting phase of compression gathers together similar strings in the file. Because of this, files containing very long runs of repeated symbols, like "aabaabaabaab ..." (repeated several hundred times) may compress more slowly than normal. Versions 0.9.5 and above fare much better than previous versions in this respect. The ratio between worst-case and average-case compression time is in the region of 10:1. For previous versions, this figure was more like 100:1. You can use the -vvvv option to monitor progress in great detail, if you want. [訳文] .SH 性能ã«é–¢ã™ã‚‹æ³¨æ„ 圧縮ã®ã‚½ãƒ¼ãƒˆãƒ•ェーズã§ã¯ã€ãƒ•ァイルä¸ã®åŒä¸€ã®æ–‡å—列を集ã‚る。 ãã®ãŸã‚ã€"aabaabaabaab ..." ã®ã‚ˆã†ã« (数百回) åŒã˜ã‚·ãƒ³ãƒœãƒ«ãŒé•·ã繰り返ã•れã¦ã„るファイルã¯ã€ 通常ã®ã‚‚ã®ã‚ˆã‚Šåœ§ç¸®ãŒé…ããªã‚‹ã€‚ ãƒãƒ¼ã‚¸ãƒ§ãƒ³ 0.9.5 以é™ã§ã¯ä»¥å‰ã®ãƒãƒ¼ã‚¸ãƒ§ãƒ³ã«æ¯”ã¹ã‚‹ã¨ã€ã“ã®ç‚¹ãŒè‰¯ããªã£ã¦ã„る。 åœ§ç¸®æ™‚é–“ã®æœ€ã‚‚悪ã„å ´åˆã¨å¹³å‡ã®å ´åˆã®æ¯”率ã¯ã€10:1 ã®ç¯„囲ã§ã‚る。 以å‰ã®ãƒãƒ¼ã‚¸ãƒ§ãƒ³ã§ã¯ã€ã“ã®æ¯”率㯠100:1 ã§ã‚ã£ãŸã€‚ ã‚‚ã—見ã¦ã¿ãŸã„ãªã‚‰ã€-vvvv オプションを使ã£ã¦ã€ 詳細ãªåœ§ç¸®éŽç¨‹ã®é€²è¡Œã‚’見るã“ã¨ãŒã§ãる。 ---------------------------------------- [原文] Decompression speed is unaffected by these phenomena. [訳文] 伸長ã¯ã€ã“ã®ç¾è±¡ã«å½±éŸ¿ã•れãªã„。 ---------------------------------------- [原文] .I bzip2 usually allocates several megabytes of memory to operate in, and then charges all over it in a fairly random fashion. This means that performance, both for compressing and decompressing, is largely determined by the speed at which your machine can service cache misses. Because of this, small changes to the code to reduce the miss rate have been observed to give disproportionately large performance improvements. I imagine .I bzip2 will perform best on machines with very large caches. [訳文] bzip2 ã¯é€šå¸¸ã€æ“作ã®ãŸã‚ã«æ•°ãƒ¡ã‚¬ãƒã‚¤ãƒˆã®ãƒ¡ãƒ¢ãƒªã‚’確ä¿ã—〠ã¨ã¦ã‚‚ãƒ©ãƒ³ãƒ€ãƒ ãªæ–¹æ³•ã§ç¢ºä¿ã•れãŸãƒ¡ãƒ¢ãƒªã‚’変更ã™ã‚‹ã€‚ ã“れã¯ã€ã€Œåœ§ç¸®ãƒ»ä¼¸é•·ã®ä¸¡æ–¹ã®æ€§èƒ½ã¯ã€ ã‚ャッシュã«ãªã„å ´åˆã«è¨ˆç®—機ãŒå¯¾å¿œã™ã‚‹é€Ÿåº¦ã«å¤§ããä¾å˜ã™ã‚‹ã€ ã¨ã„ã†ã“ã¨ã‚’æ„味ã™ã‚‹ã€‚ ãã®ãŸã‚ã€ã‚ャッシュã«ãªã„割åˆã‚’減らã™ãŸã‚ã®ã¡ã‚‡ã£ã¨ã—ãŸã‚³ãƒ¼ ドã®å¤‰æ›´ãŒã€ éžå¸¸ã«å¤§ããªæ€§èƒ½ã®å‘上をもãŸã‚‰ã—ãŸã®ã‚’見ãŸã“ã¨ãŒã‚る。 bzip2 ã¯ã€éžå¸¸ã«å¤§ããªã‚ャッシュをæŒã£ãŸè¨ˆç®—機ã§ã€ æœ€ã‚‚è‰¯ã„æ€§èƒ½ã‚’発æ®ã™ã‚‹ã¨è€ƒãˆã‚‰ã‚Œã‚‹ã€‚ ---------------------------------------- [原文] .SH CAVEATS I/O error messages are not as helpful as they could be. .I bzip2 tries hard to detect I/O errors and exit cleanly, but the details of what the problem is sometimes seem rather misleading. [訳文] .SH è¦å‘Š I/O エラーã®ãƒ¡ãƒƒã‚»ãƒ¼ã‚¸ã¯ã€ãれã»ã©å½¹ç«‹ãŸãªã„。 bzip2 ã¯ã€ã§ãã‚‹ã ã‘ I/O エラーを検知ã—ã¦æ£ã—ã終了ã—よã†ã¨ã™ã‚‹ã€‚ ã—ã‹ã—ã€ä½•ãŒå•題ãªã®ã‹ã®è©³ç´°ã¯ã€ã¨ãã©ãã‹ãªã‚Šé–“é•ã£ãŸã‚‚ã®ã« 見ãˆã‚‹ã€‚ ---------------------------------------- [原文] This manual page pertains to version 1.0.8 of .I bzip2. Compressed data created by this version is entirely forwards and backwards compatible with the previous public releases, versions 0.1pl2, 0.9.0, 0.9.5, 1.0.0, 1.0.1, 1.0.2 and above, but with the following exception: 0.9.0 and above can correctly decompress multiple concatenated compressed files. 0.1pl2 cannot do this; it will stop after decompressing just the first file in the stream. [訳文] ã“ã® man ページã¯ã€ãƒãƒ¼ã‚¸ãƒ§ãƒ³ 1.0.8 ã® bzip2 ã«ã¤ã„ã¦è¿°ã¹ã¦ã„る。 ã“ã®ãƒãƒ¼ã‚¸ãƒ§ãƒ³ã§ç”Ÿæˆã•れãŸåœ§ç¸®ãƒ‡ãƒ¼ã‚¿ã¯ã€ 以å‰ã®ãƒ‘ブリックリリースã§ã‚ã‚‹ ãƒãƒ¼ã‚¸ãƒ§ãƒ³ 0.1pl2, 0.9.0, 0.9.5, 1.0.0, 1.0.1, 1.0.2 ã¨ãれ以é™ã«å¯¾ã—ã¦ã€ 剿–¹äº’æ›ã¨å¾Œæ–¹äº’æ›ãŒã‚る。 ãŸã ã—ã€æ¬¡ã®ã‚ˆã†ãªä¾‹å¤–ãŒã‚ã‚‹: 0.9.0 以é™ã§ã¯ 複数ã®ãƒ•ァイルを連çµã—ã¦åœ§ç¸®ã—ãŸãƒ•ァイルを伸長ã§ãã‚‹ãŒã€ 0.1pl2 ã§ã¯ 伸長ã§ããšã€ã‚¹ãƒˆãƒªãƒ¼ãƒ ã®æœ€åˆã«ã‚るファイルを伸長ã—ãŸå¾Œã«åœæ¢ ã™ã‚‹ã€‚ ---------------------------------------- [原文] .I bzip2recover versions prior to 1.0.2 used 32-bit integers to represent bit positions in compressed files, so they could not handle compressed files more than 512 megabytes long. Versions 1.0.2 and above use 64-bit ints on some platforms which support them (GNU supported targets, and Windows). To establish whether or not bzip2recover was built with such a limitation, run it without arguments. In any event you can build yourself an unlimited version if you can recompile it with MaybeUInt64 set to be an unsigned 64-bit integer. [訳文] 1.0.2 以å‰ã® bzip2recover ã¯ã€åœ§ç¸®ãƒ•ァイルã§ã®ãƒ“ットä½ç½®ã‚’表ç¾ã™ã‚‹ãŸã‚ã«ã€ 32 ビット整数を使ã£ã¦ã„ãŸã€‚ãã®ãŸã‚ 512MB 以上ã®åœ§ç¸®ãƒ•ァイルを扱ãˆãªã„。 ãƒãƒ¼ã‚¸ãƒ§ãƒ³ 1.0.2 ã¨ãれ以é™ã§ã¯ã€ 512MB 以上ã®åœ§ç¸®ãƒ•ァイルをサãƒãƒ¼ãƒˆå¯èƒ½ãª プラットフォーム(GNU ãŒã‚µãƒãƒ¼ãƒˆã™ã‚‹ã‚¿ãƒ¼ã‚²ãƒƒãƒˆã¨ Windows) ã§ã¯ã€ 64 ビット整数を使用ã—ã¦ã„る。ã“ã®åˆ¶é™ã‚り㧠bzip2recover ãŒãƒ“ルドã•れ㦠ã„ã‚‹ã‹ã‚’確èªã™ã‚‹ã«ã¯ã€bzip2recover å¼•ãæ•°ãªã—ã§å®Ÿè¡Œã™ã‚Œã°ã‚ˆã„。 å°‘ãªãã¨ã‚‚ MaybeUInt64 を符å·ãªã— 64 ビット整数型ã«è¨å®šã—ã¦å†ã‚³ãƒ³ãƒ‘イル ã™ã‚‹ã“ã¨ã«ã‚ˆã‚Šã€ éžåˆ¶é™ãƒãƒ¼ã‚¸ãƒ§ãƒ³ã‚’ビルドã™ã‚‹ã“ã¨ãŒã§ãる。 ---------------------------------------- [原文] .SH AUTHOR Julian Seward, jseward@acm.org. [訳文] .SH 作者 Julian Seward, jseward@acm.org. ---------------------------------------- [原文] https://sourceware.org/bzip2/ [訳文] https://sourceware.org/bzip2/ ---------------------------------------- [原文] The ideas embodied in .I bzip2 are due to (at least) the following people: Michael Burrows and David Wheeler (for the block sorting transformation), David Wheeler (again, for the Huffman coder), Peter Fenwick (for the structured coding model in the original .I bzip, and many refinements), and Alistair Moffat, Radford Neal and Ian Witten (for the arithmetic coder in the original .I bzip). I am much indebted for their help, support and advice. See the manual in the source distribution for pointers to sources of documentation. Christian von Roques encouraged me to look for faster sorting algorithms, so as to speed up compression. Bela Lubkin encouraged me to improve the worst-case compression performance. Donna Robinson XMLised the documentation. The bz* scripts are derived from those of GNU gzip. Many people sent patches, helped with portability problems, lent machines, gave advice and were generally helpful. [訳文] bzip2 ã«å«ã¾ã‚Œã¦ã„るアイディアã¯ã€(å°‘ãªãã¨ã‚‚) ä»¥ä¸‹ã®æ–¹ã€…ã®ãŠã‹ã’ã§ã‚ã‚‹: Michael Burrows, David Wheeler (ブãƒãƒƒã‚¯ã‚½ãƒ¼ãƒˆå¤‰æ›), David Wheeler (Huffman コード化ã«ã¤ã„ã¦ã‚‚), Peter Fenwick (オリジナル㮠bzip ã«ãŠã‘ã‚‹æ§‹é€ åŒ–ã‚³ãƒ¼ãƒ‰åŒ–ãƒ¢ãƒ‡ãƒ«ã€ãã—ã¦å¤šãã®æ”¹è‰¯), Alistair Moffat, Radford Neal, Ian Witten (オリジナル㮠bzip ã«ãŠã‘る算術コード化)。 ç§ã¯ã€å½¼ã‚‰ã®åŠ©ã‘・サãƒãƒ¼ãƒˆãƒ»åŠ©è¨€ã«å¯¾ã—ã¦æ„Ÿè¬ã—ã¦ã„る。 ドã‚ュメントã®ã‚½ãƒ¼ã‚¹ã®å ´æ‰€ã«ã¤ã„ã¦ã¯ã€ã‚½ãƒ¼ã‚¹é…布ã®ä¸ã®ãƒžãƒ‹ãƒ¥ アルをå‚ç…§ã™ã‚‹ã“ã¨ã€‚ Christian von Roques ã¯ã€åœ§ç¸®é€Ÿåº¦ã®å‘上ã®ãŸã‚ã«ã€ より速ã„ソートアルゴリズムを探ã™ã“ã¨ã‚’å‹§ã‚ã¦ãれãŸã€‚ Bela Lubkin ã¯ã€åœ§ç¸®é€Ÿåº¦ãŒæœ€ã‚‚é…ã„å ´åˆã®æ”¹è‰¯ã‚’å‹§ã‚ã¦ãれãŸã€‚ Donna Robinson ã¯ãƒ‰ã‚ュメント㮠XML 化をã—ã¦ãれãŸã€‚ bz* スクリプト㯠GNU gzip ã®ã‚‚ã®ã«ç”±æ¥ã—ã¦ã„る。 多ãã®æ–¹ã€…ãŒãƒ‘ッãƒã‚’é€ã‚Šã€ç§»æ¤æ€§ã®å•題ã«ã¤ã„ã¦åŠ©ã‘ã¦ãれãŸã€‚ ã¾ãŸã€è¨ˆç®—機を貸ã—ã¦ãれãŸã‚Šã€ã‚¢ãƒ‰ãƒã‚¤ã‚¹ã‚’ã—ã¦ãれãŸäººé”ã‚‚ã„ ãŸã€‚ ã“れらã¯å…¨ã¦åŠ©ã‘ã«ãªã£ãŸã€‚ ----------------------------------------