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 how long a leftover-box file is

After 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.

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. Before you print a mystery file, wc tells you how many lines it has. You are still only looking. The leftover box does not need a desktop, a file manager, 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 want every line of a short file, that is read a leftover-box file without opening the editor. If you want the last lines, that is see the end of a leftover-box file. If you want room left on the disk, that is see if the leftover box still has room. 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

wc counts leftover-box lines, words, and bytes. You run it on the leftover box, after SSH. The file stays on disk. You are only looking. It does not dump the words. That is cat. It does not take over the window like a pager. That is less. It does not print the last lines. That is tail. It does not tell you how much disk is free. That is see if the leftover box still has room. One path, same leftover box, a count.

Count the lines

SSH in. Make a throwaway file that is long enough to have an obvious count:

seq 1 40 > ~/lines.txt

Then count it:

wc ~/lines.txt

You should see three numbers, then the name. Lines, words, bytes. For seq 1 40 that is 40 lines. That is the whole first-night trick.

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

wc -l /etc/services

That list is already on Debian and Ubuntu. You are only looking. Do not edit it. -l prints the line count only, which is the number you want before a dump.

Useful extras, still looking only

Ask for lines only, on your throwaway file:

wc -l ~/lines.txt

A small number is safe to cat. A huge number belongs to less or tail, not a dump of the whole file.

Need the byte size of one file instead? That is already on see what's in a leftover-box folder as ls -lh. Tonight you are counting lines, not shopping for a bigger drive.

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 manager.

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 search for a word. That is find a word in a leftover-box file. It is not how much disk is free. That is see if the leftover box still has room. It is not which folders are huge. That is see which leftover-box folders are eating the disk. 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 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 newest lines at the bottom? See the end of a leftover-box file. 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

Sources

Debian: wc. Ubuntu: wc. GNU coreutils: wc. 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 the last lines, see see the end of a leftover-box file. For disk room, see see if the leftover box still has room.

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. 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. See the end of a leftover-box fileAfter SSH works, print the last lines of a leftover-box file with tail so a long file does not flood the window. You do not need a log viewer 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. 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. 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'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. 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.