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
- Skip if SSH still fails. Finish SSH from the couch first.
- Skip leftover-box
uniqover leftover-box files you care about, leftover-box paths under/etc, and leftover-box SSH settings. Practice only leftover-box files you just made in home. Leftover-boxuniqwithout leftover-boxsortfirst leaves leftover-box copies that are not next to each other. - Skip leftover-box
sort -u, leftover-boxcut, leftover-boxawk, and leftover-boxxargson night one. Leftover-boxsortthen leftover-boxuniqis enough for the first look. Leftover-boxsort -uis the same leftover-box job later, in one leftover-box word. - Skip leftover-box locale flags, leftover-box huge leftover-box logs, and leftover-box
uniqinto leftover-boxrm. Practice leftover-box tools that print, then leftover-box peek with leftover-boxcat. - Skip leftover-box SSH settings,
/etc/shadow, and anything under/etc/ssh. Looking at trusted laptop keys is see which laptop keys the leftover box already trusts. - Skip opening leftover-box SSH to the internet so you can drop leftover-box copies from a coffee shop. That is keep the leftover box on the house network.
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.