Ағылшыншамен салыстырыңыз: абзацты басыңыз — түпнұсқа терезеде ашылады. Абзац астындағы EN түймесі оны мәтін ішінде көрсетеді.
Мазмұны
Кіріспе
LZW компрессия алгоритміне негізделген Unix қабықшасы компрессия бағдарламасы. Compress – LZW компрессия алгоритміне негізделген Unix қабықшасы компрессия бағдарламасы. Gzip-тің ең жылдам параметрлерімен салыстырғанда, compress қысу кезінде сәл баяу, ашып шығару кезінде сәл жылдам және қысу дәрежесі айтарлықтай төмен. Hutter Prize деректерін қысу үшін 1.8 МиБ жад қолданылады, бұл gzip-тің ең баяу параметрінен аспайды. Uncompress құралы, compress құралын пайдаланып қысылған файлдарды бастапқы күйіне келтіреді. Егер файлдар көрсетілмесе, стандарттық кіріс стандарттық шығысқа ашылып шығарылады. Алдағы POSIX және Single Unix Specification нұсқасында, gzip форматында қолданылатын DEFLATE алгоритмі осы құралдарда қолдау табады деп жоспарлануда.
Unix shell compression program based on the LZW compression algorithm
compress is a Unix shell compression program based on the LZW compression algorithm. Compared to gzip's fastest setting, compress is slightly slower at compression, slightly faster at decompression, and has a significantly lower compression ratio. 1.8 MiB of memory is used to compress the Hutter Prize data, slightly more than gzip's slowest setting. The uncompress utility will restore files to their original state after they have been compressed using the compress utility. If no files are specified, the standard input will be uncompressed to the standard output. In the upcoming POSIX and Single Unix Specification revision, it is planned that DEFLATE algorithm used in gzip format be supported in those utilities.
Сипаттама
Компрессия арқылы сығылған файлдарға әдетте ".Z" кеңейтімі беріледі (бұл ертерек pack бағдарламасының ".z" кеңейтімін еске түсіреді). Көптеген tar бағдарламалары "Z" командалық опциясы берілгенде деректерін компрессиядан өткізеді. (Тар бағдарламасы өздігінен сығымдамайды; ол жай ғана бір таспа архивінде бірнеше файлды сақтайды.) Файлдарды бастапқы күйіне келтіру үшін uncompress бағдарламасын пайдалану керек. Uncompress бағдарламасының әдеттегі әрекеті – файлдың сығылмайтын көшірмесін жасау ғана емес, сонымен қатар сығылған файлдың уақыт белгісін және басқа да атрибуттарын қалпына келтіру болып табылады. Басқа жүйелерде компрессия бағдарламасымен жасалған файлдар үшін uncompress 9-дан 16 биттік компрессияны қолдайды.
Files compressed by compress are typically given the extension ". Z" (modeled after the earlier pack program which used the extension ". z"). Most tar programs will pipe their data through compress when given the command line option " Z". (The tar program in its own does not compress; it just stores multiple files within one tape archive.) Files can be returned to their original state using uncompress. The usual action of uncompress is not merely to create an uncompressed copy of the file, but also to restore the timestamp and other attributes of the compressed file. For files produced by compress on other systems, uncompress supports 9 to 16 bit compression.
Тарих
Бұл жерде қолданылатын LZW алгоритміне 1983 жылы Sperry Research Center патент алған. Терри Уэлч 1984 жылы алгоритм туралы IEEE мақаласын жариялады, бірақ ол алгоритмге патент алуға өтініш бергенін атап көрсетпеді. Юта университетінің Спенсер Томас бұл мақаланы 1984 жылы пайдаланды, LZW алгоритміне патент берілуі күтіліп тұрғанын білмей. GIF кескін форматы да осылайша LZW сығылуын қолданды, ал Unisys кейінірек GIF іске асырылымдары үшін роялти талап етті. Жозеф М. Орост команданы басқарды және Томас және тағы басқалармен бірге "соңғы" (4.0) нұсқасын жасады және оны 1985 жылы "желілік" USENET тобына ақысыз бағдарлама ретінде жариялады. Патент 1985 жылы берілді, сондықтан оны Sperry Research компаниясына роялти төлеместен пайдалануға болмады, ал ол кейін Unisys компаниясына біріктірілді. осы себепті, LZW алгоритмін қолдану арқасында, ол Unisys патентімен қамтылғандықтан, белгілі бір пайдаланушылар тобы арасында сұраныстан шықты. Осыған байланысты, gzip және bzip2 Linux негізіндегі операциялық жүйелерде олардың баламалы алгоритмдері мен жақсырақ файлдарды сығу мүмкіндігінің арқасында танымалдылығын арттырды. compress, алайда, Unix және BSD жүйелерінде сақталды және командалары IBM i операциялық жүйесіне де көшірілді. АҚШ-тағы LZW патенті 2003 жылы аяқталды, сондықтан ол қазір АҚШ-та жалпыға қолжетімді. LZW-ге қатысты бүкіл әлемдегі барлық патенттердің де мерзімі аяқталды (Graphics Interchange Format#Unisys және LZW патенттерін қолдану қараңыз). Алдағы POSIX және Single Unix Specification нұсқасында gzip форматында қолданылатын DEFLATE алгоритмін осы құралдарда қолдау көрсету жоспарлануда.
The LZW algorithm used in was patented by Sperry Research Center in 1983. Terry Welch published an IEEE article on the algorithm in 1984, but failed to note that he had applied for a patent on the algorithm. Spencer Thomas of the University of Utah took this article and implemented in 1984, without realizing that a patent was pending on the LZW algorithm. The GIF image format also incorporated LZW compression in this way, and Unisys later claimed royalties on implementations of GIF. Joseph M. Orost led the team and worked with Thomas et al. to create the 'final' (4.0) version of and published it as free software to the 'net. sources' USENET group in 1985. was granted in 1985, and this is why could not be used without paying royalties to Sperry Research, which was eventually merged into Unisys. has fallen out of favor in particular user groups because it makes use of the LZW algorithm, which was covered by a Unisys patent because of this, gzip and bzip2 increased in popularity on Linux based operating systems due to their alternative algorithms, along with better file compression. compress has, however, maintained a presence on Unix and BSD systems and the and commands have also been ported to the IBM i operating system. The US LZW patent expired in 2003, so it is now in the public domain in the United States. All patents on the LZW worldwide have also expired (see Graphics Interchange Format#Unisys and LZW patent enforcement). In the up coming POSIX and Single Unix Specification revision, it is planned that DEFLATE algorithm used in gzip format be supported in those utilities.
Стандарттау және қол жетімділік
компресс 1994 жылы X/Open CAE Specification стандартында стандартталды, содан кейін The Open Group Base Specifications, 6 және 7 нөмірінде жарияланды. Linux Standard Base компрессияны талап етпейді. Compress Linux дистрибутивтерінде әдетте бастапқыда орнатылмайды, бірақ қосымша пакеттен орнатуға болады. Compress FreeBSD, OpenBSD, MINIX, Solaris және AIX үшін қолжетімді. Compress Point-to-Point Protocol үшін және HTTP/1.1 үшін рұқсат етілген, бірақ deflate/gzip мүмкіндігінің артық болуына байланысты қазіргі заманғы қолдануларда сирек қолданылады. Gunzip құралы Z файлдарын ашуға мүмкіндік береді.
compress was standardized in X/Open CAE Specification in 1994, and further in The Open Group Base Specifications, Issue 6 and 7. Linux Standard Base does not requires compress. compress is often not installed by default in Linux distributions, but can be installed from an additional package. compress is available for FreeBSD, OpenBSD, MINIX, Solaris and AIX. compress is allowed for Point to Point Protocol in and for HTTP/1.1 in , though it is rarely used in modern deployments as the better deflate/gzip is available. The gunzip utility is able to decompress Z files.