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.

Number leftover-box lines

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

Join leftover-box columns side by side kept leftover-box two leftover-box lists as leftover-box one leftover-box line each. Tonight you only need one more trick: number leftover-box lines so you can say "look at leftover-box line 3." nl does that. leftover-box long leftover-box files get leftover-box numbers in 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 columns joined, that is join leftover-box columns side by side. 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 copies dropped, that is drop leftover-box duplicate lines. If you only need leftover-box lines in A-to-Z order, that is put leftover-box lines in order. If you only need leftover-box print handed to another leftover-box tool, that is send leftover-box output into another command. If you only need leftover-box words you typed, that is put a short line into a leftover-box file. 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

nl means "number leftover-box lines." You type leftover-box nl, then leftover-box a leftover-box file. leftover-box default leftover-box numbers are leftover-box body leftover-box lines: leftover-box text leftover-box lines get leftover-box numbers, leftover-box blank leftover-box lines usually do not. leftover-box -ba is leftover-box optional leftover-box all leftover-box lines, leftover-box blanks leftover-box included. The leftover box prints leftover-box numbered 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 numbers. That is read a leftover-box file without opening the editor. 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 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 how leftover-box long. That is see how long a leftover-box file is. It is not leftover-box search. That is find a word in a leftover-box file. 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 order. That is put leftover-box lines in order.

Number leftover-box lines from a practice file

SSH in. Make a tiny leftover-box file in leftover-box home:

printf 'apple\nbanana\npear\n' > ~/fruit.txt

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

cat ~/fruit.txt

You want apple, then banana, then pear. Now number leftover-box lines:

nl ~/fruit.txt

You want leftover-box 1 then apple, leftover-box 2 then banana, leftover-box 3 then pear. The leftover-box file on disk is still leftover-box three leftover-box fruit leftover-box lines with leftover-box no leftover-box numbers baked in. That is the whole first-night trick: leftover-box numbers in a leftover-box window, leftover-box file left alone.

Need leftover-box blank leftover-box lines numbered too? Make a leftover-box file with a leftover-box blank leftover-box in leftover-box the leftover-box middle:

printf 'apple\n\nbanana\n' > ~/fruit.txt

Default leftover-box nl numbers leftover-box apple and leftover-box banana, and leftover-box skips leftover-box the leftover-box blank leftover-box line. Number leftover-box every leftover-box line including leftover-box blanks:

nl -ba ~/fruit.txt

You want leftover-box 1 apple, leftover-box 2 on the leftover-box blank leftover-box line, leftover-box 3 banana. leftover-box -ba is leftover-box optional. leftover-box default leftover-box body leftover-box lines are leftover-box enough for leftover-box night one.

Useful extras, still looking only

Need leftover-box narrower leftover-box numbers and leftover-box a leftover-box clearer leftover-box separator?

nl -w2 -s'. ' ~/fruit.txt

leftover-box -w2 is leftover-box width. leftover-box -s'. ' is leftover-box separator after leftover-box the leftover-box number. Skip leftover-box fancy leftover-box section leftover-box numbering on leftover-box night one. leftover-box plain leftover-box nl is leftover-box enough for leftover-box first leftover-box look.

Some leftover-box pages mention leftover-box cat -n. That leftover-box also leftover-box prints leftover-box numbers. Tonight leftover-box tool is leftover-box nl. Skip leftover-box cat -n as leftover-box tonight leftover-box lesson.

If the leftover box says command not found for nl, 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 ~/fruit.txt

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

What this is not

This 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 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 copies dropped. That is drop leftover-box duplicate lines. It is not handing leftover-box print to another leftover-box tool without leftover-box numbers. That is send leftover-box output into another command. 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 whole dump. That is read a leftover-box file without opening the editor. It is not leftover-box words you typed. That is put a short line into a leftover-box file. It is not watching leftover-box print while you save a leftover-box copy. That is watch and save leftover-box output at once. It is not a quiet leftover-box save. That is save leftover-box output to a 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 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 a house share other computers browse. That is a folder the house can open.

What next

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 copies dropped first? Drop leftover-box duplicate lines. Need leftover-box lines in A-to-Z order? Put leftover-box lines in order. Need leftover-box print handed to another leftover-box tool? Send leftover-box output into another command. Need leftover-box print on screen and in a leftover-box file? Watch and save leftover-box output at once. Need a quiet leftover-box save with no leftover-box print in the window? Save leftover-box output to a file. Need leftover-box words you typed? Put a short line into a leftover-box file. Need a short dump of the leftover-box file you just made? Read a leftover-box file without opening the editor. Need only matching leftover-box lines first? Find a word in a leftover-box file. Need leftover-box first leftover-box lines, not leftover-box numbers? 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 line leftover-box numbers? 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 leftover-box long leftover-box lines wrapped so they do not run off the leftover-box window? Wrap leftover-box long lines. 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: nl invocation. Debian: nl. Ubuntu: nl. Official pages only. For the login, see SSH from the couch. For leftover-box columns joined, see join leftover-box columns side by side. For leftover-box columns first, see pull one leftover-box column. For leftover-box characters, see change leftover-box characters. For leftover-box copies, see drop leftover-box duplicate lines. For leftover-box order, see put leftover-box lines in order. For handing leftover-box print to another leftover-box command, see send leftover-box output into another command.

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. Join leftover-box columns side by sideAfter SSH works, join leftover-box columns side by side with paste so two leftover-box lists become one leftover-box line each. 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. Change leftover-box charactersAfter SSH works, change leftover-box characters with tr so a mixed leftover-box line is easier to clean. 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. 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. Wrap leftover-box long linesAfter 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. 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.