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

Written 30 Aug 2026. This is a how-to, not a product card. Buy links are not tagged yet.

Shrink one leftover-box file

After SSH works, shrink one leftover-box file with gzip so a leftover-box copy is smaller. You do not need a zip app for this.

Pack leftover-box files into one leftover-box archive packed a leftover-box folder. Tonight you only shrink one leftover-box file. gzip writes a leftover-box .gz next to it. Gzip means leftover-box shrink for one leftover-box file. You are still only practicing in leftover-box home. The leftover box does not need a zip app, a desktop, or a NAS for this one job.

Skip until SSH already works

SSH from the couch should already get you a leftover-box prompt. If you need a leftover-box folder packed first, that is pack leftover-box files into one leftover-box archive. If you only need leftover-box file size, date, and permissions, that is see leftover-box file size, date, and permissions. If you only need a leftover-box copy on the box, that is copy a leftover-box file without leaving the box. Skip this whole note if you only need a house share other computers browse. That is a folder the house can open. Skip if you need a USB copy of the house folder. That is a backup of the leftover-box folder.

What this is

gzip means leftover-box shrink: one leftover-box file into a smaller leftover-box .gz. You type gzip, then a leftover-box path. Night one always adds -k so the leftover-box original stays. Without -k, leftover-box gzip replaces the leftover-box original with the leftover-box .gz. It is not leftover-box pack for a leftover-box folder. That is pack leftover-box files into one leftover-box archive. Optional leftover-box gzip on a leftover-box archive is leftover-box tar -z on that same leftover-box tar note. It is not leftover-box file size, date, and permissions. That is see leftover-box file size, date, and permissions. It is not a leftover-box copy on the box. That is copy a leftover-box file without leaving the box. It is not a copy from your laptop. That is copy a file to the leftover box from your laptop. It is not a download. That is download a file onto the leftover box. It is not a fingerprint. That is check a leftover-box file fingerprint. It is not a careful leftover-box delete. That is delete a leftover-box file carefully. It is not a USB leftover-box backup. That is a backup of the leftover-box folder. It is not a house share other computers browse. That is a folder the house can open.

Shrink a practice file in leftover-box home

SSH in. Make sure leftover-box home is where you are sitting:

pwd

You want a path that ends in your login name. If not:

cd ~

A two-word leftover-box file can get bigger after leftover-box gzip, so make a slightly longer leftover-box practice file. yes repeats one leftover-box line. head -n 40 keeps forty leftover-box lines:

yes 'hello leftover box' | head -n 40 > ~/shrink-me.txt

Look at leftover-box size before leftover-box shrink:

ls -lh ~/shrink-me.txt

Shrink it, and keep the leftover-box original:

gzip -k ~/shrink-me.txt

-k means keep. Night one always keeps the leftover-box original. Compare leftover-box sizes:

ls -lh ~/shrink-me.txt ~/shrink-me.txt.gz

You want a leftover-box .gz that is smaller than leftover-box shrink-me.txt. Optional leftover-box shrink facts:

gzip -l ~/shrink-me.txt.gz

You want leftover-box compressed size, leftover-box uncompressed size, leftover-box ratio, and leftover-box name. Unpack into a leftover-box throwaway folder so you do not overwrite leftover-box home:

mkdir -p ~/unpack-gz

gzip -cd ~/shrink-me.txt.gz > ~/unpack-gz/shrink-me.txt

ls -lh ~/unpack-gz/shrink-me.txt

-c means print. -d means unpack. Together they print the leftover-box original without deleting leftover-box .gz. Redirect into the leftover-box throwaway folder. Do not unpack into /etc.

If leftover-box gzip says already has .gz suffix, you tried to shrink a leftover-box .gz. Leave leftover-box .gz files alone. If leftover-box gzip says No such file or directory, you are not in leftover-box home. pwd, then cd ~, then try leftover-box ~/shrink-me.txt again.

Useful extras, still leftover-box home only

Need leftover-box file size, date, and permissions on the leftover-box .gz?

stat ~/shrink-me.txt.gz

Need leftover-box gzip to talk while it works?

gzip -kv ~/shrink-me.txt

Skip leftover-box gzip without leftover-box -k on a leftover-box file you still need. That leftover-box command replaces the leftover-box original with leftover-box .gz.

Skip leftover-box gunzip as tonight's leftover-box name. Leftover-box gzip -cd into a leftover-box throwaway folder is the same leftover-box job, and leftover-box .gz stays.

Skip leftover-box zip, unzip, 7z, bzip2, xz, and zstd as tonight's leftover-box lesson. Skip leftover-box tar -z here. That leftover-box pack gzip is pack leftover-box files into one leftover-box archive.

Skip leftover-box photos and leftover-box already-shrunk leftover-box files as the leftover-box lesson. Leftover-box text shrinks. Leftover-box JPEG often does not.

Skip leftover-box gzip -r. That leftover-box flag walks leftover-box folders. Night one shrinks one leftover-box file in leftover-box home.

If the leftover box says command not found for leftover-box gzip, install it, then try again:

sudo apt install gzip

Debian and Ubuntu Server usually already have it. That install is not a reason to buy a zip app.

When you are done shrinking, throw away the leftover-box practice files. Careful delete only. That is delete a leftover-box file carefully:

rm -i ~/shrink-me.txt ~/shrink-me.txt.gz

rm -i ~/unpack-gz/shrink-me.txt

Delete leftover-box practice folders the same careful way after they are empty. Skip rm -rf.

What this is not

This is not leftover-box pack for a leftover-box folder. That is pack leftover-box files into one leftover-box archive. It is not leftover-box file size, date, and permissions. That is see leftover-box file size, date, and permissions. It is not a leftover-box copy on the box. That is copy a leftover-box file without leaving the box. It is not a copy from your laptop. That is copy a file to the leftover box from your laptop. It is not a download. That is download a file onto the leftover box. It is not a fingerprint. That is check a leftover-box file fingerprint. It is not a leftover-box folder list. That is see what's in a leftover-box folder. It is not a careful leftover-box delete. That is delete a leftover-box file carefully. It is not a USB leftover-box backup. That is a backup of the leftover-box folder. It is not a house share other computers browse. That is a folder the house can open. It is not opening SSH to the internet so you can shrink leftover-box files from a coffee shop. That is keep the leftover box on the house network.

What next

Need a leftover-box folder packed first? Pack leftover-box files into one leftover-box archive. Need leftover-box file size, date, and permissions? See leftover-box file size, date, and permissions. Need a leftover-box fingerprint? Check a leftover-box file fingerprint. Need a leftover-box download first? Download a file onto the leftover box. Need a leftover-box copy on the box? Copy a leftover-box file without leaving the box. Need one leftover-box file from the laptop instead? Copy a file to the leftover box from your laptop. Need the throwaway gone for real? Delete a leftover-box file carefully. Need a USB leftover-box backup of the house folder? A backup of the leftover-box folder. Need a leftover-box list to drive many leftover-box runs? Run one leftover-box command per leftover-box line. Need leftover-box encode for paste? Encode a leftover-box file so you can paste it. When key login is boring on every computer you use, turn off leftover-box password login once the key works. Keep SSH on the house network: keep the leftover box on the house network. Do not forward port 22.

Skip

Sources

Debian: gzip. Ubuntu: gzip. GNU gzip manual. Official pages only. For the login, see SSH from the couch. For leftover-box pack, see pack leftover-box files into one leftover-box archive. For leftover-box file size, date, and permissions, see see leftover-box file size, date, and permissions.

Also on this topic

SSH from the couchType commands on the leftover box from your laptop, on the house network. Password login first. Do not open this to the internet. Pack leftover-box files into one leftover-box archiveAfter SSH works, pack leftover-box files into one leftover-box archive with tar so you can copy one leftover-box file instead of a leftover-box folder. You do not need a zip app for this. See leftover-box file size, date, and permissionsAfter SSH works, look at one leftover-box file with stat so you can see its size, last-change date, and permissions without opening it. You do not need a file manager app for this. Check a leftover-box file fingerprintAfter SSH works, check a leftover-box file with sha256sum so you know the file you pulled still matches the fingerprint you expected. You do not need a download manager for this. Download a file onto the leftover boxAfter SSH works, pull one file from a web address with curl so the leftover box has the file without a USB stick. You do not need a browser on the leftover box for this. Copy a file to the leftover box from your laptopAfter SSH works, use scp to move one file without a USB stick. A short leftover name makes the typing shorter. You do not need a NAS for this. Copy a leftover-box file without leaving the boxAfter SSH works, copy a leftover-box file with cp so you can edit a spare without wrecking the original. You do not need a NAS for this. Delete a leftover-box file carefullyAfter SSH works, delete one leftover-box file with rm -i. Ask first. Skip rm -rf. You do not need a NAS for this. Run one leftover-box command per leftover-box lineAfter SSH works, run one leftover-box command once per leftover-box line with xargs so a leftover-box list drives many short leftover-box jobs. You do not need a scripting app for this. Turn off leftover-box password login once the key worksAfter the laptop key login is boring, tell SSH to stop accepting the leftover-box password. The key is how you get in. A keyboard on the leftover box is the backup now. Keep the leftover box on the house networkSSH and Pi-hole belong on the house network. Skip this if you never opened the router settings. Do not forward port 22.