Computer

cls on Linux

When you type clear on Linux, your screen is cleared and de prompt is showed on the top os screen. Thats is good and very useful in some many cases I will not list here.
But the point is, you will still have the way to scroll back. Another this is very useful is so manu cases I will not list here too.
You have the reset command that not aways work like I expected: clear screen AND the scroll back

An useful way to do that is creating a schell script that send a message to the screen buffer to clear the scroll back history.

Usualy I put this script on /usr/bin named as cls with access level 755.
#!/bin/sh
clear
echo -e -n "\03"
USE IT AT YOUR OWN RISK!
Kudos: 0 [Give a kudo]

12r6j5xasef5Z6Sm4A6oBpMLn2ESPPX6ym
Ads: