Written 31 Aug 2026. This is a how-to, not a product card.
See window size
After clear, stty size prints rows and columns so window size makes sense. You don't need extra software for this.
Clear the window wiped the window with clear. Tonight you check the window size: stty size. Stty size means rows and columns (window size). The first number is rows. The second number is columns. Example 24 80 is 24 rows and 80 columns. 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 clear is what you want (window wipe), that is clear the window. Skip clear as tonight's job. stty size prints window size. Skip reset as tonight's job. Reset is garbled terminal fix. That is fix a garbled terminal.
What this is
stty size means window size. The command is stty size. Stty size means rows and columns. The first number is rows. The second number is columns.
After clear, this is window size so rows and columns make sense. You don't need extra system software for this.
Practice stty 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 for window size:
stty size
You want two numbers: rows then columns. Example 24 80 is 24 rows and 80 columns. Stty size means window size. The first number is rows. The second number is columns. That is enough for tonight. Practice only in home.
Debian and Ubuntu already have stty (coreutils / util-linux, usual install). Don't make apt the job.
If stty is missing, optional aside:
sudo apt install coreutils
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: stty -a if present (peek settings):
stty -a
That peek is settings, not window size. You can stop at stty size. Don't make stty -a the job.
Optional extra: echo $LINES $COLUMNS if present:
echo $LINES $COLUMNS
That line is rows and columns from the shell environment, if present. You can stop at stty size.
Optional extra: Resize the SSH window, then run stty size again:
stty size
Numbers can change after a resize. You can stop at stty size once.
Skip stty raw, stty -echo, and stty sane as repair beyond peek. Tonight: window size, not terminal repair. 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 clear. Clear wipes the window, not window size. That is clear the window. It is not reset. Reset is garbled terminal fix. That is fix a garbled terminal. It is not tput cols. That is see terminal columns and colors.
What next
Need a garbled terminal fixed? Fix a garbled terminal. Need the window cleared? Clear the window. 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
clearas tonight's job. Clear wipes window: clear the window. - Skip
resetas tonight's job. Reset is garbled terminal fix. That is fix a garbled terminal. - Skip
stty -aas tonight's job. Tonight:stty size. - Skip
stty raw,stty -echo, andstty saneas repair beyond peek. - 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: stty(1). Ubuntu: stty(1). Official pages only. 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.