Ki or KiB The integer is multiplied by 1,024 (2^10). K or kB The integer is multiplied by 1,000 (10^3). There must be no space between the integer and the suffix. Suffix is supported to easily indicate large integers. In most places where an integer argument is expected, an optional Options Integer suffixes and special values The absolute value of the active memory usage limit can be seen near the bottom of the output of -long-help. Requirements, but it is possible that a block later in the file will exceed the memory usage limit, and an error about too low memory usage limit getsĭisplayed after some data has already been decompressed. Typically all blocks will have roughly the same memory Note thatĬompressed files may contain many blocks, which may have been compressed with different settings. If source file cannot be decompressed without exceeding the memory usage limit, an error message is displayed and the file is skipped. As an exception, if the memory usage limit is exceeded when compressing with -format=raw, an error is displayed and xz will When compressing, if the selected compression settings exceed the memory usage limit, the settings are automatically adjusted downwards and a notice about While operating systems provide ways to limit the memory usage of processes, relying on it wasn't deemed to be flexible enough. The default limit is 40 % of total physical To prevent uncomfortable surprises caused by huge memory usage, xz has a built-in memory usage limiter. Still, the worst-case memory usage of the decompressor is Needs only 5 % to 20 % of the amount of RAM that the compressor needed when creating the file. The settings used when compressing a file affect also the memory usage of the decompressor. The memory usage of xz varies from a few hundred kilobytes to several gigabytesĭepending on the compression settings. When standard error is a terminal, using -verbose will display an automatically updating progress indicator. Sending SIGINFO or SIGUSR1 to the xz process makes it print progress information to standard error. Removed if the output is written to standard output. Once the target file has been successfully closed, the source file is removed unless -keep was specified. xz doesn't support copying other metadata like access control lists or extended attributes yet. If copying the group fails, the permissions are modified so that the target file doesn't become accessible to users whoĭidn't have permission to access the source file. txz,Īfter successfully compressing or decompressing the file, xz copies the owner, group, permissions, access time, and modification time from the The operation mode is set to decompress, and the file doesn't have a suffix of any of the supported file formats (.The operation mode is set to compress, and the file already has a suffix of the target file format (.File has setuid, setgid, or sticky bit set.Symbolic links are not followed, thus they are never considered to be regular files. Unless writing to standard output, xz will display a warning and skip the file if any of the following applies: If the target file already exists, an error is displayed and the file is skipped. lzma suffix is removed from the filename to get the target filename. lzma) is appended to the source filename to get the target filename. When compressing, the suffix of the target file format (.Unless -stdout is specified, files other than - are written to a new file whose name is derived from the source file name: Similarly, xz will refuse to read compressed data from standard input if it is a terminal. Write compressed data to standard output if it is a terminal. xz will refuse (display an error and skip the file) to Xz reads from standard input and writes the processed data to standard output. Xz compresses or decompresses each file according to the selected operation mode. Streams with no container format headers are supported. Description xz is a general-purpose data compression tool with command line syntax similar to dc) instead of the names unxz and xzcat. When writing scripts that need to decompress files, it is recommended to always use the name xz with appropriate arguments ( xz -d or xz Lzcat is equivalent to xz -format=lzma -decompress -stdout. Unlzma is equivalent to xz -format=lzma -decompress. Xzcat is equivalent to xz -decompress -stdout.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |