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

Notices

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

Original Poster
Rep: Reputation: 0
Thanks!
 
  


Reply


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 01:09 PM
How to write a bash script to replace all "KH" to "K" in file ABC??? cqmyg5 Slackware 4 07-24-2007 10:00 AM
New SQUID user: How to clear the "access.log" and "store.log" automatically? yuzuohong Linux - Networking 2 12-02-2006 06:37 AM
How to clear "insmode xxxxxx fail" when boot Slackware9.1 preswang Slackware 4 11-04-2003 09:12 AM
How Can I Clear/Remove "Open Recent" ?? Guigo Linux - Newbie 10 09-17-2003 01:24 PM


All times are GMT -5. The time now is 11:15 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration