Skip to content

Compress is a simple and effective command-line tool for compressing files using gzip or zip formats. With just a few commands, users can easily compress their files to save storage space or facilitate data sharing.

Notifications You must be signed in to change notification settings

lucatsf/compress

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Compress

image

A command-line utility for compressing files using gzip or zip formats.

Requirements

  • Rust (to compile the source code)
  • Cargo (Rust's package manager)

Installation

Downloading and Installing

  1. Clone the repository:

    git clone https://github.com/username/compress.git
    cd compress
  2. Compile the project:

    cargo build --release
  3. You can run the project execute .install.sh or

    1. Copy the compiled binary to the /opt/compress directory:

      sudo mkdir -p /opt/compress
      sudo cp target/release/compress /opt/compress/
      sudo chmod +x /opt/compress/compress
    2. Add an alias to your .bashrc:

      echo "alias compress='/opt/compress/compress'" >> ~/.bashrc
      source ~/.bashrc
  4. Verify the installation:

    compress --help

Usage

The program supports two compression types: gzip and zip.

Example Usage:

  • Gzip compression:

    compress gzip source.txt source.txt.gz
  • Zip compression:

    compress zip source.txt source.zip

Help

To see the usage options:

compress --help

Contribution

If you find any issues or have suggestions for improvements, feel free to open an issue or submit a pull request.

License

`This project is licensed under the terms of the MIT license.

About

Compress is a simple and effective command-line tool for compressing files using gzip or zip formats. With just a few commands, users can easily compress their files to save storage space or facilitate data sharing.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published