linuxbzcat命令

韵味老鸟 2024-08-25 13:36:54

linux bzcat 命令

Linux bzcat命令用于不解压缩指定的.bz2文件,即可直接查看解压缩后的文件内容。

bzcat命令语法bashbzcat [选项] [文件名]

常用选项:

-s:将输出结果以更加易读的格式显示。

命令帮助:

root@meng:~# bzcat --help

bzip2, a block-sorting file compressor. Version 1.0.8, 13-Jul-2019.

usage: bzcat [flags and input files in any order]

-h --help print this message

-d --decompress force decompression

-z --compress force compression

-k --keep keep (don't delete) input files

-f --force overwrite existing output files

-t --test test compressed file integrity

-c --stdout output to standard out

-q --quiet suppress noncritical error messages

-v --verbose be verbose (a 2nd -v gives more)

-L --license display software version & license

-V --version display software version & license

-s --small use less memory (at most 2500k)

-1 .. -9 set block size to 100k .. 900k

--fast alias for -1

--best alias for -9

If invoked as `bzip2', default action is to compress.

as `bunzip2', default action is to decompress.

as `bzcat', default action is to decompress to stdout.

If no file names are given, bzip2 compresses or decompresses

from standard input to standard output. You can combine

short flags, so `-v -4' means the same as -v4 or -4v, &c.

命令案例:bzip2 -z meng.txt

查看:

bzcat meng.txt.bz2

0 阅读:3

韵味老鸟

简介:感谢大家的关注