When we use clear command or Ctrl+L in terminal, it clears terminal but we can still scroll back to view the last used commands. Is there a way to completely clear the terminal?
on 12/16/2011 – Made popular on 12/16/2011
One thing that annoys me using Linux's terminal is when I have to type a invisble password, like when you run ssh. Sometimes I mistype one or more letters and then I have to press backspace key a few times to make sure that I erased everything to start again.
I have a bad habit of hitting cmd+k in Mac Terminal to clear the screen (and losing my history). I'm wondering if there is a way to map the command-k combo to run /usr/bin/clear when I press it. There are options to map this to a function key, but I'd like to map to the cmd combo if possible.
Is there a shortcut to clear the command line when typing in it instead of keeping backspace pressed for a few long seconds?
I ask because I regularly use the Tab key to automatically fill in file names when using bash commands in the Terminal. For example instead of typing cd this_is_a_long_file_name, i will type cd th<Tab>.
I want to open a gnome terminal with five tabs in it
I want to run a set of commands (5 – 10 commands) in each tab automatically
First tab: shall set clear-case view and after that execute one or more commands
Second tab: shall login into a server and execute some commands
Third tab: shall only execute some commands