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.

Put leftover-box lines in order

After SSH works, put leftover-box lines in order with sort so a mixed list is easier to scan. You do not need a file manager app for this.

Send leftover-box output into another command handed leftover-box print to a second leftover-box tool. Watch and save leftover-box output at once kept a leftover-box copy while you watched. Tonight you only need one more trick: put leftover-box lines in A-to-Z order so a mixed leftover-box list is easier to scan. sort does that. 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 to hand leftover-box print to another leftover-box tool, that is send leftover-box output into another command. If you only need leftover-box print on screen and in a leftover-box file, that is watch and save leftover-box output at once. 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

sort means "put leftover-box lines in order." You type sort and a leftover-box file, or you hand leftover-box print to sort with the leftover-box bar from send leftover-box output into another command. The leftover box prints the same leftover-box lines, A to Z. It does not rewrite the leftover-box file unless you ask it to. It is not leftover-box search. That is find a word in a leftover-box file. It is not leftover-box compare. That is see whether two leftover-box files are the same.

Sort a leftover-box practice list

SSH in. Make a tiny leftover-box list that is not already in order:

printf 'pear\napple\nbanana\napple\n' > ~/fruit.txt

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

cat ~/fruit.txt

You want pear, then apple, then banana, then apple again. Now put those leftover-box lines in order:

sort ~/fruit.txt

You want apple, apple, banana, pear. The leftover-box file on disk is still the mixed leftover-box list. sort only printed. That is the whole first-night trick: leftover-box lines in a leftover-box window, in A-to-Z order, leftover-box file left alone.

Need that leftover-box order on a leftover-box copy you can keep?

sort ~/fruit.txt | tee ~/fruit-sorted.txt

You want the same A-to-Z leftover-box lines on screen. Then:

cat ~/fruit-sorted.txt

You want apple, apple, banana, pear again. That leftover-box copy is watch and save leftover-box output at once. The mixed leftover-box file is still ~/fruit.txt.

Useful extras, still looking only

Need the leftover-box list Z to A?

sort -r ~/fruit.txt

You want pear, banana, apple, apple. -r means reverse.

Need leftover-box numbers in counting order, not dictionary order?

printf '10\n2\n1\n' > ~/nums.txt

sort ~/nums.txt

You want 1, then 10, then 2. That is leftover-box dictionary order: leftover-box 10 starts with 1, so it sits next to leftover-box 1. Counting order uses -n:

sort -n ~/nums.txt

You want 1, then 2, then 10. Use leftover-box -n when the leftover-box lines are leftover-box numbers, not leftover-box words.

Need leftover-box folder names in leftover-box order, without a leftover-box file in the middle?

ls | sort

You want the leftover-box names A to Z. That leftover-box bar is send leftover-box output into another command.

If the leftover box says command not found for sort or printf, 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 files:

rm ~/fruit.txt ~/fruit-sorted.txt ~/nums.txt

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

What this is not

This is not handing leftover-box print to another leftover-box tool without leftover-box order. That is send leftover-box output into another command. 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 leftover-box words you typed. That is put a short line into a leftover-box file. It is not leftover-box search. That is find a word in a leftover-box file. It is not leftover-box compare. That is see whether two leftover-box files are the same. It is not a house share other computers browse. That is a folder the house can open.

What next

Need each leftover-box line only once? Drop leftover-box duplicate lines. 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 sorted? 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 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. 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: sort invocation. Debian: sort. Ubuntu: sort. Official pages only. For the login, see SSH from the couch. For handing leftover-box print to another leftover-box command, see send leftover-box output into another command. For watching leftover-box print while you save a leftover-box copy, see watch and save leftover-box output at once. For leftover-box words you typed, see put a short line into a leftover-box file.

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. Send leftover-box output into another commandAfter SSH works, send leftover-box output into another command with | so a long dump does not flood the window. You do not need a file manager app for this. Watch and save leftover-box output at onceAfter SSH works, watch leftover-box command output and save it at the same time with tee. You do not need a file manager app for this. Drop leftover-box duplicate linesAfter SSH works, drop leftover-box duplicate lines with uniq so a mixed list shows each leftover-box line once. You do not need a file manager app for this. Save leftover-box output to a fileAfter SSH works, save leftover-box command output to a file with > so you can read it later. You do not need a file manager app for this. Put a short line into a leftover-box fileAfter SSH works, put one short line into a leftover-box file with echo so you do not need to open nano. 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. 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. 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.