Labthrift Labthrift What to buy. What to skip. Why.

Written 30 Aug 2026. This is a how-to, not a product card. Buy links are not tagged yet.

Wrap leftover-box long lines

After SSH works, wrap leftover-box long leftover-box lines with fold so they do not run off the leftover-box window. You do not need a file manager app for this.

Number leftover-box lines put leftover-box numbers next to leftover-box each leftover-box line so you can say "look at leftover-box line 3." Tonight you only need one more trick: wrap leftover-box long leftover-box lines so they do not run off the leftover-box window. fold does that. leftover-box long leftover-box lines become leftover-box several leftover-box short leftover-box lines in leftover-box the leftover-box window. You are still only looking. The leftover box does not need a desktop, a file manager, or a new mini PC 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 leftover-box line leftover-box numbers, that is number leftover-box lines. If you only need leftover-box whole dump with leftover-box no leftover-box wrap, that is read a leftover-box file without opening the editor. If you only need leftover-box one leftover-box screen at leftover-box a leftover-box time, that is read a leftover-box file one screen at a time. If you only need leftover-box first leftover-box lines, that is see the start of a leftover-box file. If you only need leftover-box last leftover-box lines, that is see the end of a leftover-box file. If you only need leftover-box how leftover-box long, that is see how long a leftover-box file is. If you only need leftover-box columns pulled, that is pull one leftover-box column. If you only need leftover-box characters cleaned, that is change leftover-box characters. If you only need leftover-box columns joined, that is join leftover-box columns side by side. If you only need leftover-box print handed to another leftover-box tool, that is send leftover-box output into another command. 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

fold means "wrap leftover-box long leftover-box lines." You type leftover-box fold, then leftover-box a leftover-box file. leftover-box default leftover-box width is leftover-box 80 leftover-box columns. leftover-box long leftover-box line becomes leftover-box several leftover-box short leftover-box lines in leftover-box the leftover-box window. The leftover-box file on disk is still leftover-box one leftover-box long leftover-box line. leftover-box -w is leftover-box optional leftover-box narrower leftover-box wrap. leftover-box -s is leftover-box optional leftover-box break at leftover-box spaces so leftover-box words stay leftover-box whole. The leftover box prints leftover-box wrapped leftover-box lines. It does not rewrite the leftover-box file unless you ask it to. It is not leftover-box whole dump without leftover-box wrap. That is read a leftover-box file without opening the editor. It is not leftover-box one leftover-box screen at leftover-box a leftover-box time. That is read a leftover-box file one screen at a time. It is not leftover-box first leftover-box lines. That is see the start of a leftover-box file. It is not leftover-box last leftover-box lines. That is see the end of a leftover-box file. It is not leftover-box how leftover-box long. That is see how long a leftover-box file is. It is not leftover-box line leftover-box numbers. That is number leftover-box lines. It is not leftover-box columns pulled. That is pull one leftover-box column. It is not leftover-box characters cleaned. That is change leftover-box characters. It is not leftover-box columns joined. That is join leftover-box columns side by side. It is not leftover-box print handed to another leftover-box tool. That is send leftover-box output into another command.

Wrap leftover-box long leftover-box lines from a practice file

SSH in. Make a leftover-box long leftover-box line in leftover-box home:

printf 'The leftover box in the closet still turns on and you can type commands from the couch.\n' > ~/note.txt

That leftover-box save is save leftover-box output to a file. Peek first:

cat ~/note.txt

You want the leftover-box line to run long across leftover-box the leftover-box window. Now wrap leftover-box long leftover-box lines:

fold ~/note.txt

You want leftover-box several leftover-box short leftover-box lines in leftover-box the leftover-box window. Default leftover-box width is leftover-box 80 leftover-box columns. The leftover-box file on disk is still leftover-box one leftover-box long leftover-box line. That is the whole first-night trick: leftover-box wrap in a leftover-box window, leftover-box file left alone.

Need leftover-box a leftover-box narrower leftover-box wrap?

fold -w 40 ~/note.txt

leftover-box -w 40 is leftover-box width leftover-box 40 leftover-box columns. leftover-box long leftover-box line becomes leftover-box more leftover-box short leftover-box lines.

Need leftover-box break at leftover-box spaces so leftover-box words stay leftover-box whole?

fold -s -w 40 ~/note.txt

leftover-box -s breaks leftover-box near leftover-box spaces when leftover-box it leftover-box can. leftover-box words stay leftover-box readable. leftover-box -s is leftover-box optional. leftover-box plain leftover-box fold is leftover-box enough for leftover-box night one.

Useful extras, still looking only

Skip leftover-box fmt, leftover-box sed, leftover-box awk, and leftover-box xargs on leftover-box night one. Tonight leftover-box tool is leftover-box fold. Skip leftover-box rewriting leftover-box the leftover-box file with leftover-box a leftover-box redirect on leftover-box night one. Practice leftover-box print first.

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

sudo apt install coreutils

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

When you are done looking, throw away the leftover-box practice file:

rm ~/note.txt

Careful delete only. That is delete a leftover-box file carefully.

What this is not

This is not leftover-box line leftover-box numbers. That is number leftover-box lines. It is not leftover-box whole dump without leftover-box wrap. That is read a leftover-box file without opening the editor. It is not leftover-box one leftover-box screen at leftover-box a leftover-box time. That is read a leftover-box file one screen at a time. It is not leftover-box first leftover-box lines. That is see the start of a leftover-box file. It is not leftover-box last leftover-box lines. That is see the end of a leftover-box file. It is not leftover-box how leftover-box long. That is see how long a leftover-box file is. It is not leftover-box columns pulled. That is pull one leftover-box column. It is not leftover-box characters cleaned. That is change leftover-box characters. It is not leftover-box columns joined. That is join leftover-box columns side by side. It is not handing leftover-box print to another leftover-box tool. That is send leftover-box output into another command. It is not leftover-box search. That is find a word in a leftover-box file. It is not leftover-box order. That is put leftover-box lines in order. It is not leftover-box words you typed. That is put a short line into a leftover-box file. It is not a quiet leftover-box save. That is save leftover-box output to a file. It is not a house share other computers browse. That is a folder the house can open.

What next

Need leftover-box line leftover-box numbers first? Number leftover-box lines. Need leftover-box columns joined first? Join leftover-box columns side by side. Need leftover-box columns pulled first? Pull one leftover-box column. Need leftover-box characters cleaned first? Change leftover-box characters. Need leftover-box print handed to another leftover-box tool? Send leftover-box output into another command. Need a short dump of the leftover-box file you just made? Read a leftover-box file without opening the editor. Need leftover-box one leftover-box screen at leftover-box a leftover-box time? Read a leftover-box file one screen at a time. Need leftover-box first leftover-box lines, not leftover-box wrap? See the start of a leftover-box file. Need leftover-box last leftover-box lines? See the end of a leftover-box file. Need leftover-box how leftover-box long, not leftover-box wrap? See how long a leftover-box file is. Need the leftover-box throwaway gone for real? Delete a leftover-box file carefully. When a house job broke, look at the leftover box's own diary: when something broke, look at the leftover-box log. Need a leftover-box file from a web address? Download a file onto the leftover box. 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

GNU coreutils: fold invocation. Debian: fold. Ubuntu: fold. Official pages only. For the login, see SSH from the couch. For leftover-box line leftover-box numbers, see number leftover-box lines. For leftover-box whole dump, see read a leftover-box file without opening the editor. For leftover-box one leftover-box screen, see read a leftover-box file one screen at a time. For leftover-box columns joined, see join leftover-box columns side by side.

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. Number leftover-box linesAfter SSH works, number leftover-box lines with nl so a long leftover-box file is easier to point at. You do not need a file manager 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. 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 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. 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. Pull one leftover-box columnAfter SSH works, pull one leftover-box column with cut so a mixed leftover-box line is easier to scan. 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.