Compression

ncompress – traditional Unix LZW file compressor

ncompress is an implementation of the traditional Unix compress utility. It uses the Lempel-Ziv-Welch (LZW) algorithm to compress files, producing the familiar .Z format associated with older Unix systems.

The program prioritises simplicity and compatibility rather than achieving the highest compression ratios. It is particularly useful for handling older compressed files, maintaining historical archives and interacting with environments that still use the traditional compress format.

ncompress provides the familiar compress, uncompress and zcat workflows. Its command-line options also allow users to control code sizes, process directory trees and retain original files when required.

This is free and open source software.

Key Features

  • Lossless compression using the Lempel-Ziv-Welch algorithm.
  • Creates and decompresses traditional Unix .Z files.
  • Provides compress and uncompress operations.
  • Supports zcat-style output of decompressed data to standard output.
  • Offers configurable maximum LZW code widths.
  • Uses a fast compression hash table implementation.
  • Supports recursive processing of directory contents.
  • Can retain original input files after processing.
  • Allows output files to be overwritten when explicitly requested.
  • Provides verbose output with compression statistics.
  • Supports compatibility processing for older compress data formats.
  • Can operate through standard input and output for shell pipelines.
  • Includes options for handling files whose names begin with a hyphen.
  • Retains compatibility with the conventional Unix compress command-line workflow.

Website: vapier.github.io/ncompress
Support:
Developer: Mike Frysinger and contributors
License: Public Domain

ncompress is written in C. Learn C with our recommended free books and free tutorials.


Related Software

Compression Tools
LZ4Focused on compression and decompression speed
ZstandardFast compression algorithm, providing high compression ratios
brotliGeneric-purpose lossless compression algorithm
lzopFile compressor favoring speed over compression ratio
pigzParallel implementation of gzip
ouchCLI tool for compressing and decompressing for various formats
pixzParallel, indexed xz compressor
gzipProvides the standard GNU file compression utilities
BZip3Spiritual successor to BZip2
bzip2Freely available, patent free, high-quality data compressor
PBZIP2Parallel implementation of bzip2
lrzipAchieve very high compression ratios and speed when used with large files
lbzip2Multi-threaded implementation of bzip2, suited for serial and parallel processing
ZXCHigh-performance lossless compression library and command-line tool
plzipMassively parallel lossless data compressor
p7zip-zstdp7zip fork with additional codecs and improvements
7-ZipFile archiver with a high compression ratio
ncompressFast, simple LZW file compressor
PXZRuns LZMA compression on multiple cores and processors
crabzLike pigz but written in Rust
LzipLossless data compressor aimed at Unix-like systems
cmixOptimize compression ratio at the cost of high CPU/memory usage
bscHigh-performance block-sorting compressor for large files
rapidgzipParallelized decompression of gzip files
KanziModular lossless compressor with multithreaded processing

Read our verdict in the software roundup.


Best Free and Open Source Software LinuxLinks helps you discover the best free and open source software for Linux. Explore our extensive collection of recommended applications, including alternatives to popular proprietary software.

We also publish software reviews, Linux tutorials, hardware reviews, free programming books and articles covering the wider open source community. Browse our Linux resources to discover more.

Know a useful free and open source Linux application we haven't covered? Suggest a program for inclusion.

Has your software been featured on LinuxLinks? Display one of our Featured on LinuxLinks badges on your website or GitHub README.
Subscribe

Please read our Comment Policy before commenting.

Notify of
guest
0 Comments
Oldest
Newest Most Voted