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:
clsdoes the same thing asclear, but with way fewer keystrokes. You're welcome!
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.shFor 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.debCopy the script directly to your system:
git clone https://github.com/MIbnEKhalid/cls.git
cd cls
sudo install -m 755 cls /usr/local/bin/clsFor Termux (Android):
git clone https://github.com/MIbnEKhalid/cls.git
cd cls
install -m 755 cls "$PREFIX/bin/cls"To build the Debian package from source:
-
Install build dependencies:
sudo apt install build-essential debhelper devscripts git
-
Clone the repository:
git clone https://github.com/MIbnEKhalid/cls.git cd cls -
Build the package:
dpkg-buildpackage -us -uc && sudo dpkg -i ../cls_1.0.2-1_all.deb
The command is case-insensitive. All these variations work:
cls # lowercase
Cls # Title case
CLS # uppercase
CLs # mixed casecls
cls -h, --help # Display help message
cls -v, --version # Display version information
cls -c, --compatible # Clear screen in compatible mode# 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# Most systems
sudo rm /usr/local/bin/cls
# Termux (Android)
rm $PREFIX/bin/clsThis project is licensed under the MIT License - see the LICENSE file for details.
For questions or contributions, please contact:
- Muhammad Bin Khalid
- Website: mbktechstudio.com/Support
- Email: [email protected]
- Alternate Email: [email protected]