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

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

Reverse characters

After tac, rev reverses characters on each line so a short word reads last letter first. You don't need extra software for this.

Reverse lines reversed line order. Tonight you flip each line, last letter first: rev. Start with echo hello | rev as a safe peek.

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 last line first is what you want, that is reverse lines. If reflow is what you want, that is reflow paragraphs. If mixed lines are what you want, that is mix lines.

What this is

rev reverses characters on each line. You type echo hello | rev. Echo prints hello once. Rev prints olleh. Stick with that safe peek. You don't need extra software for this.

It is not tac. Tac reverses line order. It is not fmt. Fmt reflows paragraphs. It is not tr. Tr swaps or deletes characters, and does not reverse a line.

Practice rev 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 ~

Reverse characters on one short word:

echo hello | rev

You want olleh, then the prompt back. That is enough for tonight. Practice only in home on the computer.

Debian and Ubuntu usually already have rev (util-linux). Don't make apt the job.

If rev is missing, install util-linux:

sudo apt install util-linux

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: reverse two short lines:

printf 'hello\nworld\n' | rev

That peek prints olleh, then dlrow. Line order stays the same. Only characters reverse. Don't make that line required.

Optional extra: reverse twice, back to the original word:

echo hello | rev | rev

That peek prints hello again. Don't make the round trip required. You can stay on echo hello | rev.

Skip huge dumps as this job. Skip rev piped into rm. Rev reverses characters. 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 tac. Tac reverses line order. Rev reverses characters on each line. That is reverse lines. It is not fmt. That is reflow paragraphs. It is not tr. That is change characters.

What next

Need reflow to a width? Reflow paragraphs. Need last line first? Reverse lines.

Skip

Sources

Debian: rev(1). Ubuntu: rev(1). Official pages only. For reverse lines, see reverse lines. For reflow, see reflow paragraphs. For character swap, see change characters. 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. Reverse linesAfter shuf, tac reverses line order so a practice list can be last line first. You don't need extra software for this. Mix linesAfter yes, shuf mixes lines at random so a practice list is not in file order. You don't need extra software for this. Print a number listAfter tput, seq prints a number list in order so practice lines make sense. You don't need extra software for this. Repeat a line until you stopAfter seq, yes repeats a line until you stop. Use head so the flood stops. You don't need extra software 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. 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. 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.