Skip to content

File compression algorithm implemented as a command line utility for UNIX and Unix-like operating systems.

License

Notifications You must be signed in to change notification settings

trenthuber/huffman

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

File Compression Command Line Utility

A command line utility using the Huffman coding algorithm for compressing and decompressing files.

Installation (UNIX and Unix-like operating systems only)

git clone https://github.com/trenthuber/huffman.git
cd huffman

The make command will make the binary in a newly created ./bin/ directory. the make clean command will remove the binary and the object files created in ./src/.

The command sudo make install clean will install the binary to /usr/local/bin. To uninstall the command, use sudo make uninstall.

Features

  • Unlimited filesize (as big as your operating system can handle)
  • Binary files are supported (although by the nature of Huffman coding, won't always compress that well)
  • All memory is allocated on the stack for efficiency and simplicity

Other notes

  • You're on your own for getting this to work for Windows
  • I'd one day like to implement an archiver/unarchiver to go alongside this utility so multiple files can be compressed/decompressed simultaneously

License

See LICENSE file for license rights and limitations.

About

File compression algorithm implemented as a command line utility for UNIX and Unix-like operating systems.

Topics

Resources

License

Stars

Watchers

Forks