Clearing terminal
Posted
by
sldkjalsdjk
on Super User
See other posts from Super User
or by sldkjalsdjk
Published on 2011-02-01T11:52:33Z
Indexed on
2011/02/01
15:27 UTC
Read the original article
Hit count: 156
Hi folks,
I would like to issue a command from a bash script to clear the terminal it is running from:
-I don't want to clear the bash history (history -c)
-I don't want to issue the clear command (which moves the terminal down to the last prompt, giving the impression the terminal has been cleared, but previous output remains visible if you scroll up)
-I want to completely remove all previous output to my terminal and have it clean as if I was opening a new one
Thanks.
© Super User or respective owner