Written 30 Aug 2026. This is a how-to, not a product card.
Shrink one file
After SSH works, shrink one file with gzip so a copy is smaller. You don't need a zip app for this.
A copy is smaller if you shrink the file first. Tonight you shrink one file: gzip. Gzip shrinks one file. Use -k so the original stays. You are still only practicing in home on the computer. It does not need a zip app for this one job.
Skip until SSH already works
SSH from the couch should already get you a prompt. If a folder packed is what you want, that is pack files into one archive. If a zip a laptop can open is what you want, that is pack files into a zip a laptop can open. Skip shrinking /etc or a disk.
What this is
gzip shrinks one file. You type gzip -k ~/shrink-me.txt. -k keeps the original. A .gz file appears next to it. gzip -l lists size. gzip -cd unpacks to the screen or a redirect. It is not tar. Tar packs a folder. It is not zip. Zip is a different archive a laptop often opens.
Shrink a practice file 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 practice file:
yes 'hello' | head -n 40 > ~/shrink-me.txt
ls -lh ~/shrink-me.txt
Shrink it, keep the original:
gzip -k ~/shrink-me.txt
ls -lh ~/shrink-me.txt ~/shrink-me.txt.gz
List the shrink:
gzip -l ~/shrink-me.txt.gz
Unpack into a throwaway folder:
mkdir -p ~/unpack-gz
gzip -cd ~/shrink-me.txt.gz > ~/unpack-gz/shrink-me.txt
ls -lh ~/unpack-gz/shrink-me.txt
That is enough for tonight. Practice only in home.
Debian and Ubuntu usually already have gzip. Don't make apt the job. If gzip is missing:
sudo apt install gzip
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 ~/shrink-me.txt ~/shrink-me.txt.gz
Then the unpack copy:
rm -i ~/unpack-gz/shrink-me.txt
Useful extras, still home only
Optional facts:
stat ~/shrink-me.txt.gz
Optional: verbose keep:
gzip -kv ~/shrink-me.txt
Skip shrinking /etc, whole disks, or files you care about. Tonight: a practice file in home.
What this is not
This is not tar. That is pack files into one archive. It is not zip. That is pack files into a zip a laptop can open. It is not xargs. That is run one command per line. It is not a fingerprint. That is check a file fingerprint. 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 a folder packed? Pack files into one archive. Need one command per line? Run one command per line. Need a fingerprint? Check a file fingerprint. 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 shrinking
/etc, whole disks, or files you care about. Tonight: a practice file in home. - Skip tar, zip, and xargs as tonight's job. Those pages already exist.
- Skip gzip without
-kon a file you still want. Keep the original. - 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: gzip. Ubuntu: gzip. GNU gzip. Official pages only. For the login, see SSH from the couch. For a folder packed, see pack files into one archive.