Thanks to visit codestin.com
Credit goes to github.com

Skip to content

A simple utility that clears the terminal screen when you type 'cls', similar to Windows' cls command.

License

Notifications You must be signed in to change notification settings

MIbnEKhalid/cls

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cls - The Time Saver

Are you lazy enough to not want to type clear? Well, we got you covered! Tired of writing long, tedious commands? Meet cls – the shorter, snappier, and way more entertaining way to clear your terminal screen!

TL;DR: cls does the same thing as clear, but with way fewer keystrokes. You're welcome!

Installation

Method 1: Universal Installation (Recommended) 🚀

Works on all Linux distributions (Debian, Red Hat, Alpine, Arch, etc.) and Android (Termux):

git clone https://github.com/MIbnEKhalid/cls.git
cd cls
sudo bash install.sh

Method 2: Direct Download (Debian-based systems only)

For Ubuntu, Debian, and derivatives:

wget https://github.com/MIbnEKhalid/cls/releases/download/v1.0.2/cls_1.0.2-1_all.deb
sudo dpkg -i cls_1.0.2-1_all.deb

Method 3: Manual Installation (Works everywhere)

Copy the script directly to your system:

git clone https://github.com/MIbnEKhalid/cls.git
cd cls
sudo install -m 755 cls /usr/local/bin/cls

For Termux (Android):

git clone https://github.com/MIbnEKhalid/cls.git
cd cls
install -m 755 cls "$PREFIX/bin/cls"

Method 4: Building from source

To build the Debian package from source:

  1. Install build dependencies:

    sudo apt install build-essential debhelper devscripts git
  2. Clone the repository:

    git clone https://github.com/MIbnEKhalid/cls.git
    cd cls
  3. Build the package:

    dpkg-buildpackage -us -uc && sudo dpkg -i ../cls_1.0.2-1_all.deb

Usage

Basic Usage

The command is case-insensitive. All these variations work:

cls   # lowercase
Cls   # Title case
CLS   # uppercase
CLs   # mixed case

Available Options

cls
cls -h, --help                # Display help message
cls -v, --version             # Display version information
cls -c, --compatible          # Clear screen in compatible mode

Uninstallation

If installed via package manager:

# Debian/Ubuntu
sudo apt remove cls

# Red Hat/Fedora/CentOS
sudo dnf remove cls
# or
sudo yum remove cls

# Alpine Linux
sudo apk del cls

# Arch Linux
sudo pacman -R cls

If installed via universal installer or manual method:

# Most systems
sudo rm /usr/local/bin/cls

# Termux (Android)
rm $PREFIX/bin/cls

License

This project is licensed under the MIT License - see the LICENSE file for details.

Contact

For questions or contributions, please contact:

About

A simple utility that clears the terminal screen when you type 'cls', similar to Windows' cls command.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages