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

Written 30 Aug 2026. This is a how-to, not a product card.

See how big one folder is

After SSH works, check how big one folder is with du so you know before you copy or delete. You don't need a file manager for this.

See folders as a tree showed nested folders. Unpack a zip you already have unpacked a zip. Pack files into one archive packed a folder. See what's in a folder listed names. Tonight you check size: how big one folder you already know is. After you unpack a zip, nested folders are hard to size by eye. du tells you how big one folder is. You are still only looking on the computer. It does not need a file manager, a desktop, or a NAS for this one job.

Skip until SSH already works

SSH from the couch should already get you a prompt. If you need nested folders as a drawing, that is see folders as a tree. If you need how much room the whole disk still has, that is see if the computer still has room. If you need which folders eat the disk, that is see which folders are eating the disk. 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 house folder.

What this is

du means disk usage for a path you name. You type du, then a folder in home. Tonight: du -sh ~/some-folder. -s means summary: one number for the whole folder, not a line per nested path. -h means human sizes, like 12K or 4.0M, instead of raw bytes. It is not how full the whole disk is. That is see if the computer still has room (df). It is not ranking every big folder on the computer. That is see which folders are eating the disk. It is not one file's size, date, and permissions. That is see file size, date, and permissions. It is not a nested drawing. That is see folders as a tree. It is not a name list. That is see what's in a folder. It is not a search by name. That is find a file by name. It is not a delete. That is delete a file carefully.

Size a practice folder 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 ~

If you still have ~/tree-me from see folders as a tree, you can size that folder. Otherwise make a tiny practice tree in home only:

mkdir -p ~/size-me/a/b

echo hi > ~/size-me/a/b/hi.txt

Ask how big the whole folder is:

du -sh ~/size-me

Or, if you kept the tree practice folder:

du -sh ~/tree-me

You want one small human size, often a few kilobytes. A nearly empty folder still takes a little room because the computer stores the folder itself.

Optional: see each child sitting right under that folder, without listing every nested file:

du -h -d 1 ~/size-me

-d 1 means one level deep. You get the folder you named, plus each child under it. Files further down are rolled into those children.

Skip du /, du /etc, and sudo du of the whole disk for this practice. Whole-disk room left is see if the computer still has room. Ranking the biggest folders is see which folders are eating the disk.

If du says No such file or directory, you are not in home or the practice folder is missing. pwd, then cd ~, then try again.

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

rm -i ~/size-me/a/b/hi.txt

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

Useful extras, still home only

Want a size for each item sitting right in that folder?

du -sh ~/size-me/*

That is still a summary per child, not a dump of every file.

Skip du -a as tonight's lesson. That flag lists every file. Tonight: one folder you already know.

Skip other disks, USB sticks, and /srv as tonight's lesson. Practice only in home.

If it says command not found for du, install coreutils, then try again:

sudo apt install coreutils

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

What this is not

This is not how full the whole disk is. That is see if the computer still has room. It is not ranking every big folder on the computer. That is see which folders are eating the disk. It is not one file's size, date, and permissions. That is see file size, date, and permissions. It is not a nested drawing. That is see folders as a tree. It is not a name list. That is see what's in a folder. It is not a search by name. That is find a file by name. It is not a careful delete. That is delete a file carefully. It is not a USB backup. That is a backup of the house 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 size folders from a coffee shop. That is keep the computer on the house network. Don't forward port 22.

What next

Need a zip a laptop can open? Pack files into a zip a laptop can open. Need size (or clock) to update by itself? See change without typing again. Need nested folders as a drawing? See folders as a tree. Need how much room the whole disk still has? See if the computer still has room. Need which folders eat the disk? See which folders are eating the disk. Need the throwaway gone for real? Delete a file carefully. Keep SSH on the house network: keep the computer on the house network. Don't forward port 22.

Skip

Sources

Debian: du. Ubuntu: du. Official pages only. For the login, see SSH from the couch. For nested folders as a drawing, see see folders as a tree. For whole-disk room, see see if the computer still has room. For ranking biggest folders, see see which folders are eating the disk.

Also on this topic

SSH from the couchType commands on the computer from your laptop, on the house network. Password login first. Don't open this to the internet. See folders as a treeAfter SSH works, show nested folders with tree so you can see what is inside without clicking around. You don't need a file manager for this. Pack files into a zip a laptop can openAfter SSH works, pack files into a zip with zip so a Windows laptop can open them. You don't need a zip desktop app for this. See change without typing againAfter SSH works, re-run a command with watch so you see change without typing again. You don't need a monitoring app for this. Unpack a zip you already haveAfter SSH works, unpack a zip with unzip so files come out of a zip. You don't need a zip desktop app for this. Pack files into one archiveAfter SSH works, pack files into one archive with tar so you can copy one file instead of a folder. You don't need a zip app for this. See what's in a folderAfter SSH works, list the folder you are sitting in with ls. You don't need a file manager for this. Find a file by nameAfter SSH works, search for a file by name with find so you don't have to open every folder. You don't need a file manager for this. See file size, date, and permissionsAfter SSH works, see file size, date, and permissions with stat. You don't need extra software for this. See if the computer still has roomBefore you buy a bigger drive, check free space with df. See which folders are eating the diskBefore you buy a bigger drive or a NAS, ask which folders are taking the room. Delete a file carefullyAfter SSH works, delete one file with rm -i. Ask first. Skip rm -rf. You don't need a NAS for this. Turn off password login once the key worksAfter the laptop key login is boring, tell SSH to stop accepting the password. The key is how you get in. A keyboard on the computer is the backup now. Keep the computer on the house networkSSH and Pi-hole belong on the house network. Skip this if you never opened the router settings. Don't forward port 22.