📄 uncompress.html
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN"><html><head><!-- Copyright 1997 The Open Group, All Rights Reserved --><title>uncompress</title></head><body bgcolor=white><center><font size=2>The Single UNIX ® Specification, Version 2<br>Copyright © 1997 The Open Group</font></center><hr size=2 noshade><h4><a name = "tag_001_014_2505"> </a>NAME</h4><blockquote>uncompress - expand compressed data</blockquote><h4><a name = "tag_001_014_2506"> </a>SYNOPSIS</h4><blockquote><pre><code>uncompress <b>[</b>-cfv<b>][</b><i>file</i>...<b>]</b></code></pre></blockquote><h4><a name = "tag_001_014_2507"> </a>DESCRIPTION</h4><blockquote>The<i>uncompress</i>utility will restore files to their original state after they have beencompressed using the<i><a href="compress.html">compress</a></i>utility.If no files are specified, the standard input will be uncompressed to thestandard output. If the invoking process has appropriate privileges, theownership, modes, access time, and modification time of the original file arepreserved.<p>This utility supports the uncompressing of any files produced by the<i><a href="compress.html">compress</a></i>utility on the same implementation.For files produced by<i><a href="compress.html">compress</a></i>on other systems,<i>uncompress</i>supports 9- to 14-bit compression (see<i><a href="compress.html">compress</a></i><b>-b</b>);it is implementation-dependent whether values of<b>-b</b>greater than 14 are supported.</blockquote><h4><a name = "tag_001_014_2508"> </a>OPTIONS</h4><blockquote>The<i>uncompress</i>utility supports the <b>XBD</b> specification, <a href="../xbd/utilconv.html#usg"><b>Utility Syntax Guidelines</b> </a> .<p>The following options are supported:<dl compact><dt><b>-c</b><dd>Write to standard output; no files will be changed.<dt><b>-f</b><dd>Do not prompt for overwriting files.Except when run in the background, if<b>-f</b>is not given the user will be prompted as to whether an existingfile should be overwritten.If the standard input is not a terminal and<b>-f</b>is not given,<i>uncompress</i>will write a diagnostic message to standard error and exitwith a status greater than zero.<dt><b>-v</b><dd>Write messages to standard error concerning the expansion of each file.</dl></blockquote><h4><a name = "tag_001_014_2509"> </a>OPERANDS</h4><blockquote>The following operand is supported:<dl compact><dt><i>file</i><dd>A pathname of a file.If<i>file</i>already has the.Zsuffix specified,it will be used as the input file and the output file will be named<i>file</i>with the.Zsuffix removed.Otherwise,<i>file</i>will be used as the name of the output file and<i>file</i>with the.Zsuffix appended will be used as the input file.</dl></blockquote><h4><a name = "tag_001_014_2510"> </a>STDIN</h4><blockquote>The standard input will be used only if no<i>file</i>operands are specified, or if a<i>file</i>operand is "-".</blockquote><h4><a name = "tag_001_014_2511"> </a>INPUT FILES</h4><blockquote>Input files are in the format produced by the<i><a href="compress.html">compress</a></i>utility.</blockquote><h4><a name = "tag_001_014_2512"> </a>ENVIRONMENT VARIABLES</h4><blockquote>The following environment variables affect the execution of<i>uncompress</i>:<dl compact><dt><i>LANG</i><dd>Provide a default value for the internationalisation variablesthat are unset or null.If<i>LANG</i>is unset or null, the corresponding value from theimplementation-dependent default locale will be used.If any of the internationalisation variables contains an invalid setting, theutility will behave as if none of the variables had been defined.<dt><i>LC_ALL</i><dd>If set to a non-empty string value,override the values of all the other internationalisation variables.<dt><i>LC_CTYPE</i><dd>Determine thelocale for the interpretation of sequences of bytes of text data ascharacters (for example, single- as opposed to multi-byte charactersin arguments).<dt><i>LC_MESSAGES</i><dd>Determine the locale that should be used to affectthe format and contents of diagnosticmessages written to standard error.<dt><i>NLSPATH</i><dd>Determine the location of message cataloguesfor the processing of<i>LC_MESSAGES .</i></dl></blockquote><h4><a name = "tag_001_014_2513"> </a>ASYNCHRONOUS EVENTS</h4><blockquote>Default.</blockquote><h4><a name = "tag_001_014_2514"> </a>STDOUT</h4><blockquote>When there are no file operands or the<b>-c</b>option is specified,the uncompressed output will be written to standard output.</blockquote><h4><a name = "tag_001_014_2515"> </a>STDERR</h4><blockquote>Prompts will be written to the standard error output under the conditionsspecified in the DESCRIPTION and OPTIONS sections.The prompts will contain the<i>file</i>pathname, but their format is otherwise unspecified.Otherwise, the standard error output will beused only for diagnostic messages.</blockquote><h4><a name = "tag_001_014_2516"> </a>OUTPUT FILES</h4><blockquote>Output files are the same as the respective input files to<i><a href="compress.html">compress</a></i>.</blockquote><h4><a name = "tag_001_014_2517"> </a>EXTENDED DESCRIPTION</h4><blockquote>None.</blockquote><h4><a name = "tag_001_014_2518"> </a>EXIT STATUS</h4><blockquote>The following exit values are returned:<dl compact><dt>0<dd>Successful completion.<dt>>0<dd>An error occurred.</dl></blockquote><h4><a name = "tag_001_014_2519"> </a>CONSEQUENCES OF ERRORS</h4><blockquote>The input file will remain unmodified.</blockquote><h4><a name = "tag_001_014_2520"> </a>APPLICATION USAGE</h4><blockquote>The limit of 14 on the<i><a href="compress.html">compress</a></i><b>-b</b> <i>bits</i>argument is to achieve portability to all systems(within the restrictions imposed by the lack of an explicit publishedfile format).Some systems based on 16-bit architectures cannot support15- or 16-bit uncompression.</blockquote><h4><a name = "tag_001_014_2521"> </a>EXAMPLES</h4><blockquote>None.</blockquote><h4><a name = "tag_001_014_2522"> </a>FUTURE DIRECTIONS</h4><blockquote>None.</blockquote><h4><a name = "tag_001_014_2523"> </a>SEE ALSO</h4><blockquote><i><a href="compress.html">compress</a></i>,<i><a href="unpack.html">unpack</a></i>,<i><a href="zcat.html">zcat</a></i>.</blockquote><hr size=2 noshade><center><font size=2>UNIX ® is a registered Trademark of The Open Group.<br>Copyright © 1997 The Open Group<br> [ <a href="../index.html">Main Index</a> | <a href="../xshix.html">XSH</a> | <a href="../xcuix.html">XCU</a> | <a href="../xbdix.html">XBD</a> | <a href="../cursesix.html">XCURSES</a> | <a href="../xnsix.html">XNS</a> ]</font></center><hr size=2 noshade></body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -