Written 1 Sep 2026. This is a how-to, not a product card.
Reverse lines
After shuf, tac reverses lines so a practice list can be last line first. You don't need extra system software for this.
Mix lines mixed lines at random. Tonight you print a file last line first: tac. Tac reverses line order. Start with seq 1 5 | tac so a short number list is a safe peek.
You are still only practicing in home on the computer. The computer does not need extra system 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 letter first on each line is what you want, that is reverse characters. If mixed lines are what you want, that is mix lines. If a number list in order is what you want, that is print a number list.
What this is
tac reverses line order. Last line prints first. You type seq 1 5 | tac. Seq prints 1 through 5 once. Tac prints those lines last-first. Stick with that safe peek. You don't need extra system software for this.
It is not rev. Rev reverses characters on each line. It is not shuf. Shuf mixes lines at random. It is not seq as the job. Seq prints a number list once.
Practice tac in home
SSH into the computer.
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 a short number list, last line first:
seq 1 5 | tac
You want 5, then 4, then 3, then 2, then 1. Then the prompt back. That is enough for tonight. Practice only in home on the computer.
Debian and Ubuntu usually already have tac (coreutils). Don't make apt the job.
If tac 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: reverse a short word list:
printf 'pear\napple\nbanana\n' | tac
That peek prints banana, then apple, then pear. Don't make that line required. You can stay on seq 1 5 | tac.
Optional extra: tac, then head the first two lines:
seq 1 5 | tac | head -n 2
That peek shows only 5 then 4. Don't make head the job.
Skip huge dumps as this job. Skip tac piped into rm. Tac reverses lines. 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 rev. Rev reverses characters on each line. Tac reverses line order. That is reverse characters. It is not shuf. That is mix lines. It is not seq as the job. That is print a number list.
What next
Need last letter first on each line? Reverse characters. Need mixed lines? Mix lines.
Skip
- Skip if SSH still fails. Finish SSH from the couch first.
- Skip huge dumps as this job. Tonight: a short number list.
- Skip
tacpiped intorm. Tac reverses lines. Don't mix delete into this drill. - Skip
rev,shuf, andseqas this job. Those notes already exist. - Skip apt as this job. The coreutils aside is not the lesson.
- Skip htop, Grafana, a NAS, files under
/etc, and whole/. - Skip
rm -rf. Careful delete only: delete a file carefully. - Skip opening SSH to the internet. That is keep the computer on the house network. Don't forward port 22.
Sources
Debian: tac(1). Ubuntu: tac(1). Official pages only. For reverse characters, see reverse characters. For mixed lines, see mix lines. For a number list, see print a number list. For the login, see SSH from the couch.