Labthrift Labthrift What to buy. What to skip. Why.

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

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.

Also on this topic

SSH from the couchType commands on the leftover box from your laptop, on the house network. Password login first. Do not open this to the internet. Edit a leftover-box file from the couchAfter SSH works, open a leftover-box file with nano, change a line, and save. The keys at the bottom of the screen are the whole trick. You do not need a new editor. Copy a file to the leftover box from your laptopAfter SSH works, use scp to move one file without a USB stick. A short leftover name makes the typing shorter. You do not need a NAS for this. See what's in a leftover-box folderAfter SSH works, list the leftover-box folder you are sitting in with ls. You do not need a file manager app for this. Move into a leftover-box folderAfter SSH works, change leftover-box folders with cd. You do not need a file manager app for this. Give the leftover box a short name on your laptopAfter SSH works, put a short name in your laptop SSH config so you type ssh leftover instead of the long address. You do not need a new router. Unlock your leftover-box key once per laptop sessionAfter the key has a passphrase, load it once with ssh-add so you are not typing that passphrase on every ssh leftover. You do not need a YubiKey. Turn off leftover-box password login once the key worksAfter the laptop key login is boring, tell SSH to stop accepting the leftover-box password. The key is how you get in. A keyboard on the leftover box is the backup now.