If you mean on the command line, then the command is: clearOf course, if your encoding's been messed up, you can also clear up this little problem with the command:reset
bash by default is configured to store the last 500 commands. You can configure it to store as many as you want, limited only by practicality and size, to whatever you want by setting the environment...