Written 30 Aug 2026. This is a how-to, not a product card.
Run one command per line
After SSH works, run one command once per line with xargs so a list drives many short jobs. You don't need a scripting app for this.
A list of names can drive many short jobs. Tonight you run one command per line: xargs. Xargs reads lines, then runs a command with those words. Use echo, not delete. You are still only practicing in home on the computer. It does not need a scripting app for this one job.
Skip until SSH already works
SSH from the couch should already get you a prompt. If a pipe as the lesson is what you want, that is send output into another command. If echo as the lesson is what you want, that is put a short line into a file. Skip xargs into rm tonight.
What this is
xargs runs one command per line (or per batch of words). You make a tiny list, then type xargs -a ~/names.txt echo. Echo prints the words. -n 1 means one word per run. -I{} puts each line where you write {}. Tonight you use echo. It is not rm. Don't mix delete into this drill.
Practice xargs in home
SSH in. Make sure home is where you sit:
pwd
You want a path that ends in your login name. If not:
cd ~
Make a tiny list:
printf 'alpha\nbeta\ngamma\n' > ~/names.txt
cat ~/names.txt
Run echo with those words:
xargs -a ~/names.txt echo
You want alpha beta gamma on one line. Same idea with a pipe:
cat ~/names.txt | xargs echo
That is enough for tonight. Practice only in home.
Debian and Ubuntu usually already have xargs. Don't make apt the job. If xargs is missing:
sudo apt install findutils
Then stop. That install is not the lesson.
When you are done, throw the practice files away. Careful delete only. That is delete a file carefully. Skip rm -rf.
rm -i ~/names.txt
Useful extras, still home only
Optional: one word per run:
xargs -a ~/names.txt -n 1 echo
Optional: put the line in the middle:
xargs -a ~/names.txt -I{} echo hello-{}
Optional: type words, then Ctrl+D:
xargs echo
Optional: show the command:
xargs -a ~/names.txt -t echo
Optional facts:
stat ~/names.txt
Skip xargs into rm. Xargs runs commands. Rm deletes. Don't mix those jobs.
What this is not
This is not pipe as the lesson. That is send output into another command. It is not echo as the lesson. That is put a short line into a file. It is not gzip. That is shrink one file. It is not a careful delete. That is delete a file carefully. It is not opening SSH to the internet. That is keep the computer on the house network. Don't forward port 22.
What next
Need encode for paste? Encode a file so you can paste it. Need a pipe as the lesson? Send output into another command. Need shrink? Shrink one file. Keep SSH on the house network: keep the computer on the house network. Don't forward port 22.
Skip
- Skip if SSH still fails. Finish SSH from the couch first.
- Skip xargs into
rm. Xargs runs commands. Don't mix delete into this drill. - Skip pipe, echo, gzip, and tar as tonight's job. Those pages already exist.
- Skip files under
/etc, SSH folders, or paths you don't own. Practice only in home. - Skip
rm -rf. Careful delete only: delete a file carefully. - Skip opening SSH to the internet so you can do this from a coffee shop. That is keep the computer on the house network. Don't forward port 22.
Sources
Debian: xargs. Ubuntu: xargs. GNU findutils: invoking xargs. Official pages only. For the login, see SSH from the couch. For a pipe, see send output into another command.