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

Written 29 Aug 2026. This is a how-to, not a product card. Buy links are not tagged yet.

Copy a leftover-box file without leaving the box

After SSH works, copy a leftover-box file with cp so you can edit a spare without wrecking the original. You do not need a NAS for this.

Copy a file to the leftover box from your laptop is the laptop-to-box path. Tonight you are already on the leftover box. cp is copy. It makes a second leftover-box file from one that is already there. Useful before edit a leftover-box file from the couch, so a bad save does not eat the only copy. The leftover box does not need a desktop, a NAS, or a cloud drive for this one job.

Skip until SSH already works

SSH from the couch should already get you a leftover-box prompt. If the file is still on the laptop, that is copy a file to the leftover box from your laptop. If you need a folder for the spare to land in, that is make a leftover-box folder. Skip this whole note if you only need a house share other computers browse. That is a folder the house can open.

What this is

cp copies a leftover-box file to another leftover-box name or folder. You run it on the leftover box, after SSH. It does not talk to the laptop. That is scp. It does not share the copy with phones. That is Samba. It does not measure free disk. That is see if the leftover box still has room. Two names, same leftover box.

Make a spare with a new name

SSH in. If you do not already have a throwaway file, make one in home:

echo 'hello leftover' > ~/hello.txt

Then copy it to a second name:

cp ~/hello.txt ~/hello-copy.txt

The first path is the file you already have. The second path is the spare. Swap the names for yours. A short name with no spaces is easier to type later.

See that both are there

List home:

ls ~

You want hello.txt and hello-copy.txt. Optional look at size and date:

ls -lh ~/hello.txt ~/hello-copy.txt

The sizes should match. Optional peek at the spare without opening the editor:

cat ~/hello-copy.txt

You want the same line you wrote. Now you can edit the spare: edit a leftover-box file from the couch. The original stays put.

Copy into a folder

Need a leftover-box folder first? Make a leftover-box folder. Then keep the same filename and drop the copy inside:

cp ~/hello.txt ~/notes/

The trailing slash on notes/ is a reminder that the last thing is a folder. List it:

ls ~/notes

You want hello.txt in that folder. A full second path also works if you want a different name in there:

cp ~/hello.txt ~/notes/hello-keep.txt

Optional: ask before overwriting

If the spare name already exists, a plain cp replaces it with no useful undo. Ask first:

cp -i ~/hello.txt ~/hello-copy.txt

The leftover box will wait for a yes if that second name is already taken. Type n if you did not mean to replace it. Skip cp -r tonight unless you are copying one small folder you made. Skip copying anything under / or /etc. Home is the practice place.

What this is not

This copy lives on the leftover box. It is not a file from the laptop. That is copy a file to the leftover box from your laptop. It is not a house share other computers browse. That is a folder the house can open. It is not a checked backup. That is a backup of the leftover-box folder. Free disk left is still see if the leftover box still has room.

What next

Need to change the spare? Edit a leftover-box file from the couch. Need the spare under a better name? Rename or move a leftover-box file. Need a folder for copies to land in? Make a leftover-box folder. Need the names again? See what's in a leftover-box folder. Need a file from the laptop instead? Copy a file to the leftover box from your laptop. Tired of retyping the same long line? Reuse a leftover-box command you already typed. 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 coreutils: cp invocation. Debian: cp. Ubuntu: cp. Official pages only. For the login, see SSH from the couch. For the laptop path, see copy a file to the leftover box from your laptop. For making a folder, see make a leftover-box folder. For listing names, see see what's in a leftover-box folder. For editing a spare, see edit a leftover-box file from the couch.

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. 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. Make a leftover-box folderAfter SSH works, make a leftover-box folder with mkdir so copies and edits have a place to land. You do not need a NAS for this. Rename or move a leftover-box fileAfter SSH works, rename or move a leftover-box file with mv so the name matches the job. The old name is gone. 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. 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. Reuse a leftover-box command you already typedAfter SSH works, flip back through commands with the Up arrow or history. You do not need a notebook for the same long line twice. See if the leftover box still has roomAfter the house folder is working, check that the leftover box is not filling up. Photos stop copying when the disk is full. You do not need a NAS for this look. A folder the house can openShare one folder from the leftover box so phones and laptops can open it. Samba is the usual name for that job on Debian and Ubuntu. 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.