LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE
User Name
Password
SUSE / openSUSE This Forum is for the discussion of Suse Linux.

Notices


Reply
  Search this Thread
Old 12-02-2005, 01:59 PM   #1
thefedexguy
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
thanks
 
Old 12-02-2005, 02:19 PM   #2
Vampirite
Member
 
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:

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
 
Old 12-02-2005, 05:02 PM   #3
thefedexguy
LQ Newbie
 
Registered: Jul 2005
Location: Memphis, TN
Distribution: Suse
Posts: 13

Original Poster
Rep: Reputation: 0
Thanks!
 
  


Reply



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE

All times are GMT -5. The time now is 06:19 AM.

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