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.

Stop a leftover-box command after a few seconds

After SSH works, stop a leftover-box command after a few seconds with timeout so it does not hang. You do not need a monitoring app for this.

See leftover-box change without typing again re-ran a leftover-box command until you pressed Ctrl+C. Tonight is a time limit: leftover-box timeout. You are still only practicing in home. The leftover box does not need a monitoring app, htop, Grafana, or a NAS for this one job.

Skip until SSH already works

SSH from the couch should already get you a prompt. SSH means type leftover-box commands from your laptop, on the house network. If you only need leftover-box watch (re-run until Ctrl+C), that is see leftover-box change without typing again. If the leftover laptop lid is putting the leftover box to sleep, that is don't let the leftover laptop sleep. That is leftover-box lid sleep, not leftover-box timeout, and not leftover-box sleep the wait. Skip this whole note if you only need which leftover-box program uses CPU. That is see what is keeping the leftover box busy. Skip leftover-box systemd leftover-box timers. That is see what the leftover box already runs on a schedule.

What this is

timeout means give one leftover-box command a time limit, then stop it. You type timeout, then 3, then the leftover-box command. 3 means three seconds. When the leftover-box time is up, leftover-box timeout stops that leftover-box command. You do not wait forever. You do not sit on Ctrl+C. Ctrl+C still means hold Control, tap C, if you want to stop early. That is stop, not leftover-box delete. Night one is timeout 3 then one leftover-box command in home. It is not leftover-box watch. Watch re-runs until Ctrl+C. That is see leftover-box change without typing again. Timeout stops. It is not leftover-box lid sleep on a leftover laptop. That is don't let the leftover laptop sleep. Leftover-box sleep in the practice below is a wait, not leftover-box lid sleep. It is not which leftover-box program uses CPU. That is see what is keeping the leftover box busy. It is not leftover-box systemd leftover-box timers. That is see what the leftover box already runs on a schedule. It is not leftover-box ping as the leftover-box job. That is check that the leftover box can reach the house router. It is not leftover-box curl as the leftover-box job. That is download a file onto the leftover box.

Practice leftover-box timeout in home

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

pwd

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

cd ~

Give leftover-box sleep a three-second limit. Leftover-box sleep here is a wait, not leftover-box lid sleep. Lid sleep is don't let the leftover laptop sleep.

timeout 3 sleep 10

Then:

echo leftover box stopped waiting

The leftover box should print the echo after about three seconds, not ten. Leftover-box timeout stopped leftover-box sleep when the leftover-box time was up. Practice only in home.

Skip leftover-box timeout of /, leftover-box timeout of /etc, whole home, other disks, USB, and /srv as night one. Practice only in home.

Skip timeout 0 as night one. Night one is timeout 3.

Debian and Ubuntu leftover-box usually already have leftover-box timeout (it comes with coreutils). If leftover-box timeout says command not found, install it, then try again:

sudo apt install coreutils

That install is not a reason to buy a monitoring app.

No leftover-box files are required for this practice. If you made leftover-box practice files anyway, throw them away with careful delete only. That is delete a leftover-box file carefully. Skip rm -rf.

Useful extras, still home only

Optional extra after see leftover-box change without typing again: leftover-box watch can stop after five seconds instead of Ctrl+C:

timeout 5 watch -n 1 date

Do not make leftover-box watch the leftover-box job tonight. Watch is see leftover-box change without typing again.

Optional: leftover-box ping can stop after three seconds, house network only:

timeout 3 ping -c 20 127.0.0.1

Do not make leftover-box ping the leftover-box job tonight. Ping is check that the leftover box can reach the house router.

Skip leftover-box curl as tonight's job. That is download a file onto the leftover box.

Skip leftover-box lid sleep as tonight. That is don't let the leftover laptop sleep.

Skip leftover-box CPU hunt as tonight. That is see what is keeping the leftover box busy.

Skip leftover-box systemd leftover-box timers as tonight. That is see what the leftover box already runs on a schedule.

Skip leftover-box zip, tar, gzip, unzip, and leftover-box du as tonight's job. Those leftover-box pages already exist.

Skip htop, top, Grafana, a monitoring box, and a NAS. Skip tmux, screen, nohup, ps, kill, kill -9, jobs, and pkill as tonight.

Skip leftover-box timeout -k, leftover-box --preserve-status, and leftover-box --foreground as night one. Night one is timeout 3 then one leftover-box command.

Skip leftover-box files under /etc, SSH folders, other disks, USB sticks, and /srv as tonight's lesson. Practice only in home.

What this is not

This is not leftover-box watch. Watch re-runs until Ctrl+C. That is see leftover-box change without typing again. Timeout stops. It is not leftover-box lid sleep on a leftover laptop. That is don't let the leftover laptop sleep. Leftover-box sleep the wait is not leftover-box lid sleep. It is not which leftover-box program uses CPU. That is see what is keeping the leftover box busy. It is not leftover-box systemd leftover-box timers. That is see what the leftover box already runs on a schedule. It is not leftover-box ping as the leftover-box job. That is check that the leftover box can reach the house router. It is not leftover-box curl as the leftover-box job. That is download a file onto the leftover box. It is not a careful leftover-box delete. That is delete a leftover-box file carefully. It is not a monitoring app, htop, Grafana, or a NAS. It is not opening SSH to the internet so you can stop leftover-box commands from a coffee shop. That is keep the leftover box on the house network. Do not forward port 22.

What next

Need leftover-box time so you see how long a leftover-box command took? See how long a leftover-box command took. Need leftover-box watch so a leftover-box command re-runs until Ctrl+C? See leftover-box change without typing again. Need leftover-box lid sleep on a leftover laptop, not leftover-box sleep the wait? Don't let the leftover laptop sleep. Need which leftover-box program uses CPU? See what is keeping the leftover box busy. Need leftover-box practice files gone for real? Delete a leftover-box file carefully. 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: timeout. Ubuntu: timeout. Official pages only. For the login, see SSH from the couch. For leftover-box watch, see see leftover-box change without typing again. For leftover-box lid sleep, see don't let the leftover laptop sleep.

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. See leftover-box change without typing againAfter SSH works, re-run a leftover-box command every few seconds with watch so leftover-box size (or leftover-box clock) updates by itself. You do not need a monitoring app for this. See how long a leftover-box command tookAfter SSH works, see how long a leftover-box command took with time so you know if it was a few seconds. You do not need a monitoring app for this. Don't let the leftover laptop sleepClose the lid. The leftover laptop has to stay awake so SSH and Pi-hole keep working. A leftover desktop can skip this note. See what is keeping the leftover box busyThe leftover box feels slow. Check which program is using the CPU before you buy a new mini PC. See what the leftover box already runs on a scheduleBefore you add a weekly backup or buy a monitoring box, look at the leftover box alarm clocks. Check that the leftover box can reach the house routerBefore you blame the switch or buy a new cable, ping the router from the leftover box. 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.