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.

Find a leftover-box file by name

After SSH works, search the leftover box for a file by name with find so you do not have to open every folder. You do not need a file manager app for this.

See what's in a leftover-box folder lists the folder you are sitting in. Find a word in a leftover-box file searches inside one file. When you forgot which folder holds the file, find walks the tree and prints matching paths. You are still only looking. The leftover box does not need a desktop, a search 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 already know the folder and only need the names in it, that is see what's in a leftover-box folder. If you already have the file and want one word inside it, that is find a word in a leftover-box file. If a house job broke and you need the leftover box's own diary, that is when something broke, look at the leftover-box log. 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

find walks a starting folder and prints paths whose names match what you asked for. You run it on the leftover box, after SSH. Matching paths print to the SSH window. The files stay on disk. You are only looking. It does not list only the current folder. That is ls. It does not open a file. That is cat, less, or nano. It does not search inside the file for a word. That is grep. One name pattern, same leftover box, only the matching paths.

Search a practice file

SSH in. Make a short throwaway file in a nested folder:

mkdir -p ~/practice/notes && printf 'hello\n' > ~/practice/notes/fruit.txt

Then search your home folder for that exact name:

find ~ -name 'fruit.txt'

You should see a path that ends in practice/notes/fruit.txt. That is the whole first-night trick.

Match part of a name, ignoring capital letters:

find ~ -iname '*fruit*'

The stars mean “anything before or after.” You are only looking. Do not delete the hits yet.

A real leftover-box folder that is safe to practice on:

find /etc -name 'hosts'

That file is already on Debian and Ubuntu. You are only looking. Do not edit it.

Useful extras, still looking only

Stop after the first hit when you only need one path:

find ~ -name 'fruit.txt' | head -n 1

Limit how deep the walk goes so a huge home folder stays quiet:

find ~ -maxdepth 3 -name 'fruit.txt'

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

sudo apt install findutils

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

When you are done practicing:

rm -i ~/practice/notes/fruit.txt && rmdir ~/practice/notes ~/practice

What this is not

This is not a list of the folder you are sitting in. That is see what's in a leftover-box folder. It is not a search inside a file for a word. That is find a word in a leftover-box file. It is not a dump of a short file. That is read a leftover-box file without opening the editor. It is not paging through a long file. That is read a leftover-box file one screen at a time. It is not an editor. That is edit a leftover-box file from the couch. It is not which folders are eating the disk. That is see which leftover-box folders are eating the disk. It is not a house share other computers browse. That is a folder the house can open.

What next

Need the names in one folder only? See what's in a leftover-box folder. Need to sit in the folder you found? Move into a leftover-box folder. Need only the lines with one word? Find a word in a leftover-box file. Need the last lines of a long file? See the end of a leftover-box file. Need a short file printed all at once? Read a leftover-box file without opening the editor. Need the whole long file one screen at a time? Read a leftover-box file one screen at a time. Need to change a line? Edit a leftover-box file from the couch. Need a spare before you edit? Copy a leftover-box file without leaving the box. 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 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: find. Ubuntu: find. GNU Findutils manual. Official pages only. For the login, see SSH from the couch. For names in one folder, see see what's in a leftover-box folder. For a word inside a file, see find a word in a leftover-box file. For a short dump, see read a leftover-box file without opening the editor. For paging, see read a leftover-box file one screen at a time.

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. 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. Find a word in a leftover-box fileAfter SSH works, search a leftover-box file with grep so you see only the matching lines. You do not need a file viewer app 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. Read a leftover-box file one screen at a timeAfter SSH works, open a leftover-box file with less so a long file does not flood the window. Space turns the page. q leaves. 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. 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. See which leftover-box folders are eating the diskBefore you buy a bigger drive or a NAS, ask which leftover-box folders are taking the room. 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.