Written 28 Aug 2026. This is a how-to, not a product card. Buy links are not tagged yet.
Reuse a leftover-box command you already typed
After SSH works, flip back through commands you already typed with the Up arrow or history. You do not need a notebook for the same long line twice.
SSH from the couch puts you at a leftover-box prompt. You will type the same long lines more than once: updates, a nano path, a check after reboot. The leftover box already remembers what you typed in this login. Your job is to ask for that list, not to retype it from a sticky note.
Skip until SSH already works
SSH from the couch should already get you a leftover-box prompt. A short name is nicer: give the leftover box a short name on your laptop. If you only need to move a file, that is copy a file to the leftover box from your laptop. If you are changing a leftover-box file, that is edit a leftover-box file from the couch. This note is how you reuse a command you already ran. Skip this whole note if you are still stuck on the first login.
What this is
Bash (the usual leftover-box prompt on Debian and Ubuntu) keeps a list of recent commands for your login. The Up arrow brings the last one back. history prints the numbered list. You are not installing software. You are not buying a “command notebook” app. This is the leftover box’s own memory of what you typed.
The Up arrow is enough most nights
SSH in. At the leftover-box prompt, press the Up arrow once. The last command you ran appears. Press Enter to run it again. Press Up a few more times to walk further back. Down walks forward. Edit the line with the arrow keys if only one word changed, then Enter.
That alone covers weekly updates, a second nano on the same file, and “run that check again.”
See the list with history
When Up is not enough, ask for the list:
history
You get numbered lines. The newest are at the bottom. Optional: only the last ten:
history | tail
or:
history 10
on some leftover boxes. If history 10 looks wrong, stick with history | tail.
Run one again by number
If the list shows line 142 and that is the command you want:
!142
Enter runs that exact line again. Look twice before you press Enter on anything with rm, passwd, or reboot. Optional peek without running:
!142:p
That prints the line and leaves it alone. Skip the bang shortcuts until Up arrow feels boring.
Optional: search without scrolling
At an empty prompt, press Ctrl+R, then type a word from the old command (for example nano or apt). Bash shows the newest match. Ctrl+R again walks older matches. Enter runs it. Esc cancels. Skip this until Up and history are comfortable.
What history is not
This list is your leftover-box login’s recent commands. It is not a security camera. It is not every other person’s login. It is not a backup of files. Failed leftover-box password guesses are see if anyone guessed the leftover-box password. Who is logged in right now is see who is on the leftover box right now.
What next
Need to change a leftover-box file? Edit a leftover-box file from the couch. Need the file on the laptop too? Copy a file to the leftover box from your laptop. Want to see the names in the folder first? See what's in a leftover-box folder. When key login is boring on every computer you use, turn off leftover-box password login once the key works. Keep SSH on the house network: keep the leftover box on the house network. Do not forward port 22.
Skip
- Skip if SSH still fails. Finish SSH from the couch first.
- Skip buying a command-history app, a “cheat sheet” SaaS, or a second monitor for this.
- Skip clearing history tonight to “look clean.” You are learning. The list helps.
- Skip opening SSH to the internet so you can reuse commands from a coffee shop. That is keep the leftover box on the house network.
Sources
GNU Bash: Bash History Facilities. Debian: bash. Ubuntu: bash. Official pages only. For the login, see SSH from the couch. For a short name, see give the leftover box a short name on your laptop. For editing a file, see edit a leftover-box file from the couch. For moving a file, see copy a file to the leftover box from your laptop.