LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 05-31-2005, 05:30 PM   #1
utw-mephisto
Member
 
Registered: Apr 2005
Posts: 93

Rep: Reputation: 16
Windows command cls on Linux ?


I was browsing through the manpages, but I cannot find what I am looking for.

You know the command cls, which cleans up the screen on the commandline.

Is there a command for Linux too ? I am using Debian Woody ..

Thanks

Michael
 
Old 05-31-2005, 05:33 PM   #2
AdaHacker
Member
 
Registered: Oct 2001
Location: Brockport, NY
Distribution: Kubuntu
Posts: 384

Rep: Reputation: 31
The command you want is
Code:
clear
 
1 members found this post helpful.
Old 05-31-2005, 05:33 PM   #3
utw-mephisto
Member
 
Registered: Apr 2005
Posts: 93

Original Poster
Rep: Reputation: 16
WOW, answer in three minutes

Thanks a bunch
 
Old 05-31-2005, 06:22 PM   #4
dosnlinux
Member
 
Registered: Mar 2005
Distribution: slackware 11, arch 2007.08
Posts: 154

Rep: Reputation: 30
or ctrl+L if you're that kind of person

Oh, and BTW you can still do the shift+pgup thing after you use clear. It just resets the prompt to be at the top.

Last edited by dosnlinux; 05-31-2005 at 06:27 PM.
 
Old 05-31-2005, 06:24 PM   #5
utw-mephisto
Member
 
Registered: Apr 2005
Posts: 93

Original Poster
Rep: Reputation: 16
Thanks
 
Old 05-31-2005, 06:28 PM   #6
reddazz
Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 73
Quote:
Originally posted by dosnlinux
or ctrl+L if you're that kind of person
I didn't know this one. I have learnt something new today.
 
Old 05-31-2005, 06:30 PM   #7
utw-mephisto
Member
 
Registered: Apr 2005
Posts: 93

Original Poster
Rep: Reputation: 16
It;s not working through putty though
 
Old 05-31-2005, 07:04 PM   #8
perfect_circle
Senior Member
 
Registered: Oct 2004
Location: Athens, Greece
Distribution: Slackware, arch
Posts: 1,783

Rep: Reputation: 52
For the CTRL+ type of persons here is the whole list included in Advanced Bash-Scripting Guide(http://www.tldp.org/LDP/abs/html/)

Quote:
Ctl-B Backspace (nondestructive).

Ctl-C Break. Terminate a foreground job.

Ctl-D Log out from a shell (similar to exit).
When typing text on the console or in an xterm window, Ctl-D erases the character under the cursor. When there are no characters present, Ctl-D logs out of the session, as expected. In an xterm window, this has the effect of closing the window.

Ctl-G "BEL" (beep). On some old-time teletype terminals, this would actually ring a bell.

Ctl-H "Rubout" (destructive backspace). Erases characters the cursor backs over while backspacing.

Ctl-I Horizontal tab.

Ctl-J Newline (line feed).

Ctl-K Vertical tab.
When typing text on the console or in an xterm window, Ctl-K erases from the character under the cursor to end of line.

Ctl-L Formfeed (clear the terminal screen). This has the same effect as the clear command.

Ctl-M Carriage return.

Ctl-Q Resume (XON).

This resumes stdin in a terminal.

Ctl-S Suspend (XOFF).

This freezes stdin in a terminal. (Use Ctl-Q to restore input.)

Ctl-U Erase a line of input, from the cursor backward to beginning of line. In some settings, Ctl-U erases the entire line of input, regardless of cursor position.

Ctl-V When inputting text, Ctl-V permits inserting control characters.

Ctl-W When typing text on the console or in an xterm window, Ctl-W erases from the character under the cursor backwards to the first instance of whitespace. In some settings, Ctl-W erases backwards to first non-alphanumeric character.

Ctl-Z Pause a foreground job.
The really usefull ones according to my experience, are CTR+U, when you are typing passwords. If you realize before you hit the enter, that you have made a mistake since you cannot see the number of caracters printed, CTRL+U will clear the field, instaed of pressing backspace or delete all the time.

CTRL+Z. Some stupid applications catch the ctrl+C (SIGINT), so in order to kill the application, instead of killing the window(if tou are in GUI) or opening new consoles, press CTRL+Z to get your prompt back and then type
Code:
kill %%
to kill it.

Last edited by perfect_circle; 05-31-2005 at 07:07 PM.
 
1 members found this post helpful.
Old 05-31-2005, 08:47 PM   #9
IBall
Senior Member
 
Registered: Nov 2003
Location: Perth, Western Australia
Distribution: Ubuntu, Debian, Various using VMWare
Posts: 2,088

Rep: Reputation: 61
If you prefer the cls command, you can create an alias for it, in your ~/.bash_profile
Code:
alias cls="clear"
--Ian
 
1 members found this post helpful.
Old 12-01-2009, 10:11 AM   #10
AJenbo
LQ Newbie
 
Registered: Aug 2009
Posts: 4

Rep: Reputation: 0
Thanks for the usefull info.

Quote:
Originally Posted by utw-mephisto View Post
It;s not working through putty though
I does for me... here in 2009.
 
Old 12-02-2009, 11:34 AM   #11
cloudmilk
LQ Newbie
 
Registered: Dec 2009
Location: Paris, France
Distribution: Debian
Posts: 6

Rep: Reputation: 1
Quote:
Originally Posted by utw-mephisto View Post
It;s not working through putty though
Depends on how putty is configured, try term linux in order to get back use of different special keys.
 
  


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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
how do i replace the clear "clear screen" with the cls command thefedexguy Suse/Novell 2 12-02-2005 05:02 PM
Require Linux/Perl equivalent command for windows Command alix123 Programming 7 08-19-2005 02:23 AM
how do I use sffms.cls with LyX? levicc00123 Linux - Software 1 11-28-2004 07:44 PM
Linux is not visible after a Windows FIXMBR command ikhanr Linux - Newbie 6 10-23-2004 01:26 PM
Run Time Error- CLS command not found ashwinipahuja Programming 1 05-15-2004 12:50 AM


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

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