Команда pack

Shrinks file into one small (compressed) file so that it does not take as much space up. The file or files will be replaced by a packed file .Z.

Синтаксис

pack [-f] [-] filenames

-fForces packing of file . This is useful for causing an entire directory to be packed even if some of the files will not benefit. Packed files can be restored to their original form using unpack or pcat .
-pack uses Huffman (minimum redundancy) codes on a byte-by-byte basis. If the - argument is used, an internal flag is set that causes the number of times each byte is used, its relative frequency, and the code for the byte to be printed on the standard output. Additional occurrences of - in place of file will cause the internal flag to be set and reset.
filenamesThe name of the files that you want to pack.

Примеры

pack -f myfile.txt - packs the file myfile.txt and renames that file to myfile.txt.z. When successfully packed will receive message similar to the following"

pack: myfile.txt: -1.8% Compression

No packing will occur if:

Обратно к списку команд