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.

See whether two leftover-box files are the same

After SSH works, compare two leftover-box files with diff so you can tell if the spare still matches. You do not need a file viewer app for this.

Copy a leftover-box file without leaving the box makes a spare. Read a leftover-box file without opening the editor dumps one short file. After you edit the spare, diff tells you whether the two files still match, without opening both. You are still only looking. The leftover box does not need a desktop, a compare app, or a NAS for this one job.

Skip until SSH already works

SSH from the couch should already get you a leftover-box prompt. If you only need a spare, that is copy a leftover-box file without leaving the box. If you want to dump one short file, that is read a leftover-box file without opening the editor. If you want to change a line, that is edit a leftover-box file from the couch. 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

diff compares two leftover-box files line by line. You run it on the leftover box, after SSH. The files stay on disk. You are only looking. It does not make a spare. That is cp. It does not dump one file. That is cat. It does not open an editor. That is nano. It does not ask what kind of file this is. That is file. Two paths, same leftover box, a match or the lines that differ.

Compare two files

SSH in. Make a throwaway text file, then a spare:

printf 'apple\\nbanana\\ncherry\\n' > ~/fruit.txt

cp ~/fruit.txt ~/fruit-spare.txt

Then ask whether they match:

diff ~/fruit.txt ~/fruit-spare.txt

A blank window means they match. That is the whole first-night trick. No news is the good answer.

Now change the spare and ask again:

printf 'apple\\nblueberry\\ncherry\\n' > ~/fruit-spare.txt

diff ~/fruit.txt ~/fruit-spare.txt

You should see the banana line and the blueberry line. Lines with < are in the first file. Lines with > are in the second. You do not need to memorize the rest of the marks tonight.

Useful extras, still looking only

Need a spare first? That is copy a leftover-box file without leaving the box. Need to know if the path is even text? That is see what kind of leftover-box file this is. Need a short dump of one file? That is read a leftover-box file without opening the editor.

If the leftover box says command not found, install the usual tool, then try again:

sudo apt install diffutils

Debian and Ubuntu Server usually already have it. That install is not a reason to buy a compare app.

When you are done practicing:

rm -i ~/fruit.txt ~/fruit-spare.txt

What this is not

This is not a copy. That is copy a leftover-box file without leaving the box. It is not a dump of one file. That is read a leftover-box file without opening the editor. It is not an editor. That is edit a leftover-box file from the couch. It is not a line count. That is see how long a leftover-box file is. It is not asking what kind of file this is. That is see what kind of leftover-box file this is. It is not a search for a word. That is find a word in a leftover-box file. It is not a hunt for a file by name. That is find a leftover-box file by name. It is not an empty leftover-box file. That is make an empty leftover-box file. It is not a house share other computers browse. That is a folder the house can open.

What next

Need an empty file first? Make an empty leftover-box file. Need a spare to compare against? Copy a leftover-box file without leaving the box. Need to change the spare? Edit a leftover-box file from the couch. Need a short dump of one file? Read a leftover-box file without opening the editor. Need to know if the path is text before you compare it? See what kind of leftover-box file this is. Need the first lines of a long file? See the start of a leftover-box file. Need the last lines? See the end of a leftover-box file. Need only the lines with one word? Find a word in a leftover-box file. Need the throwaway gone for real? Delete a leftover-box file carefully. Need a file from the laptop instead? Copy a file to the leftover box from your laptop. When a house job broke, look at the leftover box's own diary: when something broke, look at the leftover-box log. 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

Debian: diff. Ubuntu: diff. Official pages only. For the login, see SSH from the couch. For a spare, see copy a leftover-box file without leaving the box. For a short dump, see read a leftover-box file without opening the editor. For a kind-of-file check, see see what kind of leftover-box file this is.

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 leftover-box file without leaving the boxAfter 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. Read a leftover-box file without opening the editorAfter SSH works, print a leftover-box file with cat so you can read it without opening nano. Short files only. You do not need a file viewer 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. See what kind of leftover-box file this isAfter SSH works, ask what kind of leftover-box file this is with file before you dump it. You do not need a file viewer app for this. See the start of a leftover-box fileAfter SSH works, print the first lines of a leftover-box file with head so a long file does not flood the window. You do not need a file viewer app for this. See how long a leftover-box file isAfter SSH works, count leftover-box lines with wc so you know if a dump will flood the window. You do not need a file manager app 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. Delete a leftover-box file carefullyAfter SSH works, delete one leftover-box file with rm -i. Ask first. Skip rm -rf. You do not need a NAS for this. Make an empty leftover-box fileAfter SSH works, make an empty leftover-box file with touch so nano and copies have a file to land on. You do not need a file manager app for this. 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.