Written 29 Aug 2026. This is a how-to, not a product card. Buy links are not tagged yet.
See the start of a leftover-box file
After 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.
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 from the top. See the end of a leftover-box file prints the newest lines at the bottom. When you only care about the opening lines, head prints those and stops. You are still only looking. The leftover box does not need a desktop, a file viewer, 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 you want the newest lines at the bottom, that is see the end of a leftover-box file. If you want to turn pages from the start, that is read a leftover-box file one screen at a time. 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
head prints the first lines of a leftover-box file. You run it on the leftover box, after SSH. The file stays on disk. You are only looking. It does not dump every line. That is cat. It does not take over the window like a pager. That is less. It does not print the end. That is tail. It does not search for a word. That is grep. It does not ask what kind of file this is. That is file. One path, same leftover box, only the start.
Print the first lines
SSH in. Make a throwaway file that is long enough to have an obvious start:
seq 1 40 > ~/lines.txt
Then print the first lines:
head ~/lines.txt
You should see 1 through 10. With no extra flags, head prints the first ten lines and stops. That is the whole first-night trick.
A real leftover-box file that is safe to practice on:
head /etc/services
That list is already on Debian and Ubuntu. You are only looking. Do not edit it.
Useful extras, still looking only
Ask for a different count:
head -n 5 ~/lines.txt
That prints the first five lines. Swap the number if you want more or fewer.
Need the last lines instead? That is see the end of a leftover-box file. Need a line count before a dump? That is see how long a leftover-box file is. Need to know if the path is even text? That is see what kind of leftover-box file this is.
If the leftover box says command not found, install the usual tools, then try again:
sudo apt install coreutils
Debian and Ubuntu Server usually already have it. That install is not a reason to buy a file viewer.
When you are done practicing:
rm -i ~/lines.txt
What this is not
This 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 from the top. That is read a leftover-box file one screen at a time. It is not a peek at the last lines. That is see the end of a leftover-box file. 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 compare of two leftover-box files. That is see whether two leftover-box files are the same. 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 editor. That is edit a leftover-box file from the couch. It is not a house share other computers browse. That is a folder the house can open.
What next
Need only the newest lines at the bottom? See the end of a leftover-box file. Need to know if a dump will flood the window first? See how long a leftover-box file is. Need to know if the path is text before you dump it? See what kind of leftover-box file this is. Need to see if a spare still matches? See whether two leftover-box files are the same. 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 only the lines with one word? Find a word in a leftover-box file. Forgot which folder holds the file? Find a leftover-box file by name. 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 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
- Skip if SSH still fails. Finish SSH from the couch first.
- Skip
caton a file that never stops when you only care about the opening lines. That dump is the wrong tool for a peek at the start. - Skip
headon photos, zip files, or leftover-box programs. Those print junk. A text file is the job. Ask first with see what kind of leftover-box file this is. - Skip
headif you already know the path is a short text note you made tonight. That is read a leftover-box file without opening the editor. - Skip buying a file manager, a “cloud IDE,” or a NAS to read the start of one 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 peek at files from a coffee shop. That is keep the leftover box on the house network.
Sources
Debian: head. Ubuntu: head. GNU coreutils: head. 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 the end of a file, see see the end of a leftover-box file. For paging, see read a leftover-box file one screen at a time. For a kind-of-file check, see see what kind of leftover-box file this is.