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.

Drop leftover-box duplicate lines

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

Put leftover-box lines in order put leftover-box lines A to Z, and leftover-box copies stayed in leftover-box order. Tonight you only need one more trick: keep one of each leftover-box line. uniq does that. You almost always sort first, because leftover-box uniq only drops leftover-box copies that sit next to each other. 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 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

uniq means "keep one of each leftover-box line, if the leftover-box copies sit next to each other." You type leftover-box sort, a leftover-box bar, then leftover-box uniq. The leftover box prints the leftover-box lines once. 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.

Drop leftover-box copies from a practice list

SSH in. Make the same tiny leftover-box list from put leftover-box lines 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 drop leftover-box copies without leftover-box order:

uniq ~/fruit.txt

You still want pear, apple, banana, apple. The leftover-box apples were not next to each other, so leftover-box uniq left both. That is the leftover-box trick people miss. Sort first, then drop leftover-box copies:

sort ~/fruit.txt | uniq

You want apple, banana, pear. The leftover-box file on disk is still the mixed leftover-box list. That leftover-box bar is send leftover-box output into another command. That is the whole first-night trick: leftover-box lines in a leftover-box window, each leftover-box line once, leftover-box file left alone.

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

sort ~/fruit.txt | uniq | tee ~/fruit-unique.txt

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

cat ~/fruit-unique.txt

You want 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 a leftover-box count next to each leftover-box line?

sort ~/fruit.txt | uniq -c

You want 2 next to leftover-box apple, then 1 next to leftover-box banana, then 1 next to leftover-box pear. -c means count.

Need only leftover-box lines that showed up more than once?

sort ~/fruit.txt | uniq -d

You want apple. -d means leftover-box copies only.

Need leftover-box folder names with leftover-box copies dropped, without a leftover-box file in the middle?

ls | sort | uniq

You want leftover-box names A to Z, each leftover-box name once. Folder names are usually already unique. This leftover-box bar is the same leftover-box habit as leftover-box fruit.

If the leftover box says command not found for uniq or sort, 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-unique.txt

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

What this is not

This is not leftover-box order by itself. That is put leftover-box lines in order. It is not handing leftover-box print to another leftover-box tool without leftover-box copies dropped. 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 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 one leftover-box column from a mixed leftover-box line? Pull one leftover-box column. Need leftover-box lines in A-to-Z order, leftover-box copies and all? 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 saved? 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: uniq invocation. Debian: uniq. Ubuntu: uniq. Official pages only. For the login, see SSH from the couch. For leftover-box order first, 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. For watching leftover-box print while you save a leftover-box copy, see watch and save leftover-box output at once.

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. Put leftover-box lines in orderAfter 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. 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. 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. 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. 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 whether two leftover-box files are the sameAfter SSH works, compare two leftover-box files with diff so you can tell if the spare still matches. 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.