Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE
User Name
SUSE / openSUSE This Forum is for the discussion of Suse Linux.


  Search this Thread
Old 12-02-2005, 01:59 PM   #1
LQ Newbie
Registered: Jul 2005
Location: Memphis, TN
Distribution: Suse
Posts: 13

Rep: Reputation: 0
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
Old 12-02-2005, 02:19 PM   #2
Registered: Apr 2005
Location: England
Distribution: Arch Linux
Posts: 223

Rep: Reputation: 30
In your home directory, a file called .bash_profile or .bashrc should be there.

In this you could write at the bottom:

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:

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

Either way would work.

Hope that helps,

Old 12-02-2005, 05:02 PM   #3
LQ Newbie
Registered: Jul 2005
Location: Memphis, TN
Distribution: Suse
Posts: 13

Original Poster
Rep: Reputation: 0


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
clear history "last" command nistelrooy Linux - Newbie 10 11-03-2010 12:09 PM
How to write a bash script to replace all "KH" to "K" in file ABC??? cqmyg5 Slackware 4 07-24-2007 09:00 AM
New SQUID user: How to clear the "access.log" and "store.log" automatically? yuzuohong Linux - Networking 2 12-02-2006 05:37 AM
How to clear "insmode xxxxxx fail" when boot Slackware9.1 preswang Slackware 4 11-04-2003 08:12 AM
How Can I Clear/Remove "Open Recent" ?? Guigo Linux - Newbie 10 09-17-2003 12:24 PM

All times are GMT -5. The time now is 07:37 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration