Written 29 Aug 2026. This is a how-to, not a product card. Buy links are not tagged yet.
Find a word in a leftover-box file
After 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 editor dumps the whole short file. Read a leftover-box file one screen at a time pages through a long one. When you already know the word you care about, grep prints only the lines that have it. 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 the file is short and you want every line, that is read a leftover-box file without opening the editor. If the file is long and you want to turn pages, that is read a leftover-box file one screen at a time. 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
grep searches one file (or a few) for a word or short phrase. You run it on the leftover box, after SSH. Matching lines print to the SSH window. The file stays on disk. You are only looking. It does not open an editor. That is nano. It does not dump every line. That is cat. It does not take over the window like a pager. That is less. One word, same leftover box, only the hits.
Search a practice file
SSH in. Make a short throwaway file:
printf 'apple\nbanana\napple pie\ncarrot\n' > ~/fruit.txt
Then search for the word apple:
grep apple ~/fruit.txt
You should see two lines: apple and apple pie. The banana and carrot lines stay quiet. That is the whole first-night trick.
A real leftover-box file that is safe to practice on:
grep ssh /etc/services
That list is already on Debian and Ubuntu. You are only looking. Do not edit it.
Useful extras, still looking only
Show line numbers so you can find the hit later:
grep -n apple ~/fruit.txt
Ignore capital letters if you are not sure how the file spelled it:
grep -i apple ~/fruit.txt
Count how many matching lines without printing them:
grep -c apple ~/fruit.txt
If the leftover box says command not found, install the usual tools, then try again:
sudo apt install grep
Debian and Ubuntu Server usually already have it. That install is not a reason to buy a search app.
When you are done practicing:
rm -i ~/fruit.txt
What this is not
This is not an editor. That is edit a leftover-box file from the couch. It is not a dump of the whole file. That is read a leftover-box file without opening the editor. It is not paging through every line. That is read a leftover-box file one screen at a time. It is not the leftover box's system journal. That is when something broke, look at the leftover-box log. It is not a list of names in one folder. That is see what's in a leftover-box folder. It is not a hunt for a file by name across folders. That is find a leftover-box file by name. It is not a house share other computers browse. That is a folder the house can open.
What next
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 the names first? See what's in a leftover-box folder. 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. Tired of retyping the same long line? Reuse a leftover-box command you already typed. Forgot which folder holds the file? Find a leftover-box file by name. 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
caton a long file when you only care about one word. That dump is the wrong tool for a hunt. - Skip
nanoif you only want to find a line. That tool is for changing a line. - Skip
grepon photos, zip files, or leftover-box programs. Those print junk. A text file is the job. - Skip recursive folder hunts and fancy regex on day one. One file, one plain word is enough.
- Skip buying a search app, a “cloud IDE,” or a NAS to find one word in a leftover-box text file.
- Skip leftover-box SSH settings,
/etc/shadow, and anything under/etc/ssh. Looking at trusted laptop keys is see which laptop keys the leftover box already trusts. - Skip opening SSH to the internet so you can search files from a coffee shop. That is keep the leftover box on the house network.
Sources
GNU grep manual. Debian: grep. Ubuntu: grep. Official pages only. For the login, see SSH from the couch. 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. For changing a line, see edit a leftover-box file from the couch. For the leftover box's system journal, see when something broke, look at the leftover-box log.