Written 31 Aug 2026. This is a how-to, not a product card.
Mix lines
After yes, shuf mixes lines at random so a practice list is not in file order. You don't need extra software for this.
Repeat a line until you stop repeated a line. Tonight you mix lines: shuf. Shuf means shuffle lines. Start with seq 1 5 | shuf so five numbers show mixed. Seq prints numbers in order. Shuf mixes that order.
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 a number list in order is what you want, that is print a number list. Tonight uses seq only as input to shuf. If a repeating line is what you want, that is repeat a line until you stop. If lines in A-to-Z order are what you want, that is put lines in order.
What this is
shuf mixes lines at random. You type seq 1 5 | shuf. Seq prints numbers in order. The pipe sends that print into shuf. Shuf mixes the order. Stick with that safe peek. You don't need extra software for this.
It is not seq as the job. Seq prints a number list in order. It is not sort. Sort orders lines. Shuf mixes lines. It is not yes. Yes repeats a line.
Practice shuf 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 ~
Mix five numbers with a safe peek:
seq 1 5 | shuf
You want five numbers, mixed order, then the prompt back. The pipe sends seq into shuf. That is enough for tonight. Practice only in home on the computer.
Debian and Ubuntu usually already have shuf (coreutils). Don't make apt the job.
If shuf 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 range without seq:
shuf -i 1-5
That peek mixes numbers from 1 to 5 without typing seq. You can stay on seq 1 5 | shuf. Don't make the flag required.
Optional extra: pick one mixed line:
seq 1 5 | shuf -n 1
That peek keeps only one mixed line. Don't make pick one required.
Skip huge ranges as this job. Example seq 1 100000 | shuf is still a huge mix. Tonight: five numbers.
Skip shuf piped into rm. Shuf mixes 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 sort, yes, seq as the job, 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 seq as the job. Seq prints a number list in order. That is print a number list. It is not sort. Sort orders. Shuf mixes. That is put lines in order. It is not tac. Tac reverses last line first. That is reverse lines.
What next
Need last line first? Reverse lines. Need a number list in order? Print a number list.
Skip
- Skip if SSH still fails. Finish SSH from the couch first.
- Skip huge ranges as this job. Tonight: five numbers.
- Skip
shufpiped intorm. Shuf mixes lines. Don't mix delete into this drill. - Skip
seqandsortas this job. Tonight uses seq only as input to shuf. - Skip apt as this job. The coreutils aside is not the lesson.
- Skip
rm -rf. Careful delete only: delete a file carefully. - Skip files under
/etcand whole/. Practice only in home. - Skip opening SSH to the internet. That is keep the computer on the house network. Don't forward port 22.
Sources
Debian: shuf(1). Ubuntu: shuf(1). Official pages only. For a repeating line, see repeat a line until you stop. For a number list in order, see print a number list. For lines in order, see put lines in order. For the login, see SSH from the couch.