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.

See leftover-box file size, date, and permissions

After 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.

Download a file onto the leftover box put a practice file in leftover-box home. Check a leftover-box file fingerprint proved the leftover-box bytes. Tonight you only need one more look: how big that leftover-box file is, when it last changed, and who can read it. stat prints those leftover-box facts. You are still only looking. The leftover box 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 leftover-box prompt. Prefer a practice file from download a file onto the leftover box (~/example.html). If you only need names in a folder, that is see what's in a leftover-box folder. If you only need what kind of leftover-box file this is, that is see what kind of leftover-box file this is. If you only need a line count, that is see how long a leftover-box file is. If you only need a fingerprint, that is check a leftover-box file fingerprint. If you want to change leftover-box permissions, that is make a leftover-box file runnable. Skip this whole note if you only need a house share other computers browse. That is a folder the house can open.

What this is

stat means "print leftover-box facts about this file." You type stat, then a path in leftover-box home. The leftover box prints a short block: File, Size, Access (permission letters), then Access/Modify/Change dates. Size is how many bytes the leftover-box file takes — how big it is. Modify is when the leftover-box file last changed. Permissions are the letters like -rw-r--r--. They say who can read, write, or run. It is not a folder list. That is see what's in a leftover-box folder. It is not a kind-of-file guess. That is see what kind of leftover-box file this is. It is not a fingerprint. That is check a leftover-box file fingerprint. It is not a line count. That is see how long a leftover-box file is. It is not changing leftover-box permissions. That is make a leftover-box file runnable. It is not dumping leftover-box text. That is read a leftover-box file without opening the editor.

Look at one 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. Prefer the practice page from curl:

ls -lh ~/example.html

If that file is missing, make a tiny leftover-box practice file instead:

printf 'hello leftover box\n' > ~/check-me.txt

Now ask for leftover-box facts:

stat ~/example.html

Or, if you made the tiny file:

stat ~/check-me.txt

You want a block that starts with File:, then Size:, then an Access: line with permission letters like -rw-r--r--, then Access/Modify/Change dates. On night one, Size, Modify, and the permission letters are the three leftover-box facts you need. GNU leftover-box stat (Debian/Ubuntu) prints that multi-line block. A real GNU sample from a 19-byte practice file looks like:

File: /home/you/check-me.txt

Size: 19 Blocks: … IO Block: 4096 regular file

Access: (0644/-rw-r--r--) Uid: …

Modify: 2026-08-30 …

You may also see Device, Inode, Birth, and a Change date. Ignore those tonight. They are leftover-box internals, not night-one facts.

Useful extras, still looking only

Want only the leftover-box size?

stat -c '%n %s bytes' ~/example.html

Want only the leftover-box modify time — when the leftover-box file last changed?

stat -c '%y' ~/example.html

Want the leftover-box permission letters plus who owns the leftover-box file?

stat -c '%A %U %G' ~/example.html

-c means print only these leftover-box facts. %n is the name. %s is the size in bytes. %y is the modify time. %A is the permission letters. %U is the owner name. %G is the group name. That is GNU leftover-box stat on Debian and Ubuntu.

Skip macOS stat -f as tonight's leftover-box lesson. That is the laptop. The leftover box is GNU stat.

Skip lsattr, getfacl, and find -ls as night one. Tonight you only print leftover-box facts about one leftover-box file in home.

Skip chmod as tonight's lesson. You are looking, not changing leftover-box permissions. Changing them is make a leftover-box file runnable.

If the leftover box says command not found for stat, 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 file manager.

When you are done looking, throw away the leftover-box practice file if you made it:

rm ~/check-me.txt

Keep ~/example.html if you still want it from curl, or delete that one the same way. Careful delete only. That is delete a leftover-box file carefully.

What this is not

This is not a folder list. That is see what's in a leftover-box folder. It is not a kind-of-file guess. That is see what kind of leftover-box file this is. It is not a fingerprint. That is check a leftover-box file fingerprint. It is not a line count. That is see how long a leftover-box file is. It is not changing leftover-box permissions. That is make a leftover-box file runnable. It is not dumping leftover-box text. That is read a leftover-box file without opening the editor. It is not wrapping leftover-box long lines. That is wrap leftover-box long lines. It is not leftover-box line numbers. That is number leftover-box lines. It is not the leftover-box whole disk. That is see if the leftover box still has room. It is not leftover-box folder sizes. That is see which leftover-box folders are eating the disk. It is not packing leftover-box files into one leftover-box archive. That is pack leftover-box files into one leftover-box archive. 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 inspect leftover-box files from a coffee shop. That is keep the leftover box on the house network.

What next

Need the practice file first? Download a file onto the leftover box. Need a leftover-box fingerprint of those bytes? Check a leftover-box file fingerprint. Need names in a leftover-box folder? See what's in a leftover-box folder. Need what kind of leftover-box file this is? See what kind of leftover-box file this is. Need a leftover-box line count? See how long a leftover-box file is. Need to change leftover-box permissions? Make a leftover-box file runnable. Need the throwaway gone for real? Delete a leftover-box file carefully. Need leftover-box files packed into one leftover-box archive so you can copy one leftover-box file instead of a leftover-box folder? Pack leftover-box files into one leftover-box archive. 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: stat. Ubuntu: stat. GNU coreutils: stat invocation. Official pages only. For the login, see SSH from the couch. For a download first, see download a file onto the leftover box. For a fingerprint first, see check a leftover-box file fingerprint. For leftover-box names in a folder, see see what's in a leftover-box folder.

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. 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. 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. 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 what's in a leftover-box folderAfter SSH works, list the leftover-box folder you are sitting in with ls. You do not need a file manager app for this. See what kind of leftover-box file this isAfter SSH works, ask what kind of leftover-box file this is with file before you dump it. You do not need a file viewer app for this. See how long a leftover-box file isAfter SSH works, count leftover-box lines with wc so you know if a dump will flood the window. You do not need a file manager app for this. Make a leftover-box file runnableAfter SSH works, change leftover-box file permissions with chmod so a practice script can run. You do not need a permissions GUI 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. 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.