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
- Skip if SSH still fails. Finish SSH from the couch first.
- Skip leftover-box
timeoutof/, leftover-boxtimeoutof/etc, whole home, other disks, USB, and/srvas night one. Practice only in home. - Skip
timeout 0as night one. Night one istimeout 3. - Skip leftover-box
timeas tonight's job. Time reports leftover-box duration: see how long a leftover-box command took. Timeout stops. - Skip leftover-box
watchas tonight's job. Watch re-runs until Ctrl+C: see leftover-box change without typing again. Timeout stops. - Skip leftover-box lid sleep as tonight. That is don't let the leftover laptop sleep. Leftover-box
sleepthe wait is not leftover-box lid 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 ping as tonight's job. That 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 zip, tar, gzip, unzip, and leftover-box
duas tonight's job. - Skip leftover-box
timeout -k, leftover-box--preserve-status, and leftover-box--foregroundas night one. Night one istimeout 3then one leftover-box command. - Skip htop, top, Grafana, a monitoring box, and a NAS.
- Skip tmux, screen, nohup, ps, kill,
kill -9, jobs, and pkill as tonight. - Skip
rm -rf. Careful leftover-box delete only: delete a leftover-box file carefully. - Skip 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.
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.