Written 31 Aug 2026. This is a how-to, not a product card.
Fix a garbled terminal
After stty, reset restores terminal settings so the prompt and typing make sense again.
See window size saw window size with stty size. Tonight you fix a garbled terminal: reset. Reset means terminal settings restored. The prompt is usable again. Typing echoes again.
Garbled terminal means weird characters, no echo, or a prompt that looks broken after a bad program or paste. The command is reset. You are still only practicing in home on the computer. It does not need extra system software, htop, Grafana, or a NAS for this one job.
Skip until SSH already works
SSH from the couch should already get you a prompt. SSH means type commands from your laptop, on the house network. If window size is what you want, that is see window size. Skip stty size as tonight's job. If window wipe is what you want, that is clear the window. Skip clear as tonight's job. Tonight: reset, not stty repair as the main job.
What this is
reset means a garbled terminal fix. The command is reset. Reset restores terminal settings. The prompt is usable again. Typing echoes again.
After stty, this is terminal repair so prompt and typing make sense again. You don't need extra system software for this.
Practice reset in home
SSH in. Make sure home is where you sit:
pwd
You want a path that ends in your login name. If not:
cd ~
Ask it to restore terminal settings:
reset
You want the prompt usable again. Typing should echo. Weird characters should stop. Reset means terminal settings restored. That is enough for tonight. Practice only in home.
Don't break the terminal on purpose. Don't type stty raw or stty -echo as practice. If the terminal is already garbled, reset is how you fix it.
Debian and Ubuntu already have reset (ncurses-bin, usual install). Don't make apt the job.
If reset is missing, optional aside:
sudo apt install ncurses-bin
Then stop. That apt line is not the lesson.
No files are required for this practice. If you made practice files anyway, throw them away with careful delete only. That is delete a file carefully. Skip rm -rf.
Useful extras, still home only
Optional extra: Type a short line after reset, or run stty size, to confirm things look normal:
stty size
That peek is window size, not terminal repair. That is see window size. You can stop at reset.
Optional extra: tput reset if present:
tput reset
That line is another way to send terminal reset strings, if present. You can stop at reset. Need window width with tput cols instead? That is see terminal columns and colors.
Optional extra: stty sane as lighter peek:
stty sane
That line is lighter terminal settings, not a full reset. You can stop at reset.
Skip stty raw and stty -echo as practice. Don't break the terminal on purpose. Skip screen, tmux, htop, Grafana, and a NAS. Skip files under /etc and /dev as a dump. Practice only in home. Keep SSH on the house network: keep the computer on the house network. Don't forward port 22.
What this is not
This is not stty size. Stty prints window size, not garbled terminal fix. That is see window size. It is not clear. Clear wipes the window, not terminal settings. That is clear the window. It is not tput cols. That is see terminal columns and colors.
What next
Need terminal columns and colors? See terminal columns and colors. Need window size? See window size. Keep SSH on the house network: keep the computer on the house network. Don't forward port 22.
Skip
- Skip if SSH still fails. Finish SSH from the couch first.
- Skip
stty sizeas tonight's job. Stty prints window size: see window size. - Skip
clearas tonight's job. Clear wipes window: clear the window. - Skip
tput resetandstty saneas tonight's main job. Tonight:reset. - Skip
stty rawandstty -echoas practice. Don't break the terminal on purpose. - Skip
screen,tmux, htop, Grafana, and a NAS. - Skip files under
/etcand/devas a dump. Practice only in home. - Skip
rm -rf. Careful delete only: delete a file carefully. - Skip opening SSH to the internet. That is keep the computer on the house network. Don't forward port 22.
Sources
Debian: reset(1). Ubuntu: reset(1). Debian: tput(1). Ubuntu: tput(1). Official pages only. For window size, see see window size. For a window wipe, see clear the window. For the terminal name, see see the terminal name. For the login, see SSH from the couch.