LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   SUSE / openSUSE (https://www.linuxquestions.org/questions/suse-opensuse-60/)
-   -   how do i replace the clear "clear screen" with the cls command (https://www.linuxquestions.org/questions/suse-opensuse-60/how-do-i-replace-the-clear-clear-screen-with-the-cls-command-388695/)

thefedexguy 12-02-2005 01:59 PM

how do i replace the clear "clear screen" with the cls command
 
how do i replace the clear "clear screen" command with the cls command
thanks

Vampirite 12-02-2005 02:19 PM

In your home directory, a file called .bash_profile or .bashrc should be there.

In this you could write at the bottom:

Code:

alias cls='clear'
If you did this, typing "cls" would do exactly the same as "clear"

You could also use symlinks. Depending on where the command "clear" is, you could use the command:

Code:

ln -s clear cls
Which would symlink "clear" to "cls"

Either way would work.

Hope that helps,

Kourosh

thefedexguy 12-02-2005 05:02 PM

Thanks!


All times are GMT -5. The time now is 01:03 AM.