Watch someone backspace 40 characters instead of pressing CTRL+W, and you’ll understand why this list exists. A collection of shell tricks-grouped by what works everywhere and what’s Bash/Zsh-speci...
I’m always using “clear” to just get rid of my console’s output. I think it has something to do with me remembering I used that on my old 80’s computer, trying it out on a bash long after that and “oh, that works here too, that’s convenient”.
Reset looks like it does more stuff, but I don’t know if that’s useful for this use case.
clear: clears the visible screen (sends the terminal’s “clear” sequence); usually fast and does not change terminal settings or fully reinitialize scrollback.
reset: fully reinitializes the terminal (sends init strings, resets modes/attributes, may reconfigure terminfo/baud, and clears); slower and used to recover from garbled output or broken state.
I was expecting some cool Mario stratsI’m always using “clear” to just get rid of my console’s output. I think it has something to do with me remembering I used that on my old 80’s computer, trying it out on a bash long after that and “oh, that works here too, that’s convenient”.
Reset looks like it does more stuff, but I don’t know if that’s useful for this use case.
I asked this myself, too. AI response:
clear: clears the visible screen (sends the terminal’s “clear” sequence); usually fast and does not change terminal settings or fully reinitialize scrollback.
reset: fully reinitializes the terminal (sends init strings, resets modes/attributes, may reconfigure terminfo/baud, and clears); slower and used to recover from garbled output or broken state.