https://github.com/buct0r/cls
The cls command from windows command prompt for Linux
https://github.com/buct0r/cls
bash clear cls command command-line-tool command-prompt linux linux-terminal terminal
Last synced: 2 months ago
JSON representation
The cls command from windows command prompt for Linux
- Host: GitHub
- URL: https://github.com/buct0r/cls
- Owner: Buct0r
- License: mit
- Created: 2025-06-26T13:14:18.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2025-06-26T14:52:52.000Z (about 1 year ago)
- Last Synced: 2025-06-26T15:24:51.582Z (about 1 year ago)
- Topics: bash, clear, cls, command, command-line-tool, command-prompt, linux, linux-terminal, terminal
- Homepage:
- Size: 336 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
CLS
The cls command from windows command prompt for Linux
## How to install it
### Git clone:
In the terminal:
```
$ git clone https://github.com/Buct0r/cls.git && cd cls
```
then:
```
$ chmod +x cls && cp cls /usr/local/bin
```
If it gives you an error like this:
```
cp: cannot create regular file '/usr/local/bin/cls': Permission denied
```
Just run the previous command with sudo:
```
$ sudo cp cls /usr/local/bin
```
In alternative you can clone the repo and add the directory to path
```
$ git clone https://github.com/Buct0r/cls.git && cd cls
```
make it executable:
```
$ chmod +x cls
```
Edit your shell profile, depending on your system and shell:
```
$ vim ~/.bashrc
```
Add this line to the end of the file:
```
export PATH=$PATH:~/cls
```
And then source the file
```
$ source ~/.bashrc
```
### wget
In your terminal type:
```
wget https://raw.githubusercontent.com/Buct0r/cls/main/cls
```
then:
```
chmod +x cls
```
Follow the previous steps to add the executable to your path variable
### Without git
Download the source code and use the same commands as above.
## Conclusion
If you decide to use the cls command, consider adding a star to the repo💫. I made this project mainly for fun and also because I'm pretty lazy and I prefferd to type less to clear the terminal output😓
Developed by Buct0r❤️