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

Written 1 Sep 2026. This is a how-to, not a product card.

Turn tabs into spaces

After fmt, expand turns tabs into spaces so practice notes line up without tab stops jumping. You don't need extra software for this.

Reflow paragraphs reflowed words to fill a width. Tonight you turn tabs into spaces: expand. Expand fills tab stops with spaces so letters sit still. Start with one short practice line: printf 'a\tb\tc\n' | expand.

\t is a tab. Expand replaces those tabs with spaces. You are still only practicing in home on the computer. It does not need extra software, htop, Grafana, or a NAS for this one job.

Skip until SSH already works

SSH from the couch should already get you a prompt. SSH means type commands from your laptop, on the house network. If spaces to tabs is what you want, that is turn spaces into tabs. If reflow is what you want, that is reflow paragraphs. If a hard wrap is what you want, that is wrap long lines.

What this is

expand turns tabs into spaces at tab stops. You type printf 'a\tb\tc\n' | expand. Printf prints one short practice line once. Expand fills tab stops with spaces. Stick with that safe peek. You don't need extra software for this.

It is not unexpand. Unexpand is spaces to tabs. It is not fmt. Fmt reflows paragraphs to fill a width. It is not fold. Fold hard-wraps lines at a column and can split a word.

Practice expand in home

SSH in.

Make sure home is where you sit:

pwd

You want a path that ends in your login name.

If the path is wrong, run this:

cd ~

Turn tabs into spaces on one short practice line:

printf 'a\tb\tc\n' | expand

You want the same letters with spaces where the tabs were. Then the prompt back. That is enough for tonight. Practice only in home on the computer.

Debian and Ubuntu usually already have expand (coreutils). Don't make apt the job.

If expand is missing, install coreutils:

sudo apt install coreutils

Then stop. That apt line is not the lesson.

No files are required for this practice. If you made practice files anyway, throw them away with careful delete only. That is delete a file carefully. Skip rm -rf.

Useful extras, still home only

Optional extra: a narrower tab width of 4:

printf 'a\tb\tc\n' | expand -t 4

That peek uses tab stops every 4 columns instead of the usual 8. Don't make expand -t 4 required.

Optional extra: expand a short word with a tab in the middle:

printf 'hello\tworld\n' | expand

That peek fills the tab between hello and world with spaces. Don't make that line required.

Optional extra: expand, then head the first line:

printf 'a\tb\tc\n' | expand | head -n 1

That peek shows only the first expanded line. Don't make head the job.

Skip huge dumps as this job. Skip expand piped into rm. Expand turns tabs into spaces. Rm deletes files. Don't mix those jobs. Skip files under /etc, whole /, SSH folders, USB sticks, and /srv. Practice only in home.

Skip screen, tmux, htop, Grafana, and a NAS. Keep SSH on the house network: keep the computer on the house network. Don't forward port 22.

What this is not

This is not unexpand. Unexpand turns spaces into tabs. Expand turns tabs into spaces. That is turn spaces into tabs. It is not fmt. That is reflow paragraphs. It is not fold. That is wrap long lines.

What next

Need spaces back to tabs? Turn spaces into tabs. Need a hard wrap? Wrap long lines.

Skip

Sources

Debian: expand(1). Ubuntu: expand(1). Official pages only. For spaces to tabs, see turn spaces into tabs. For reflow, see reflow paragraphs. For a hard wrap, see wrap long lines. For the login, see SSH from the couch.

Also on this topic

SSH from the couchType commands on the computer from your laptop, on the house network. Password login first. Don't open this to the internet. Reflow paragraphsAfter rev, fmt reflows paragraphs so a practice note wraps to a readable width. You don't need extra software for this. Turn spaces into tabsAfter expand, unexpand turns spaces into tabs so a practice line can go back to tabs. You don't need extra software for this. Wrap long linesAfter SSH works, fold wraps long lines so they don't run off the window. You don't need a file manager for this. Reverse charactersAfter tac, rev reverses characters on each line so a short word reads last letter first. You don't need extra software for this. Put a short line into a fileAfter SSH works, put one short line into a file with echo so you don't need to open nano. You don't need a file manager for this. Change charactersAfter SSH works, tr changes characters so you can swap or delete letters without opening nano. You don't need extra software for this. Send output into another commandAfter SSH works, a pipe sends output into another command so a long dump does not flood the window. You don't need extra software for this. Delete a file carefullyAfter SSH works, delete one file with rm -i. Ask first. Skip rm -rf. You don't need a NAS for this. Turn off password login once the key worksAfter the laptop key login is boring, tell SSH to stop accepting the password. The key is how you get in. A keyboard on the computer is the backup now. Keep the computer on the house networkSSH and Pi-hole belong on the house network. Skip this if you never opened the router settings. Don't forward port 22.