SLEEP(1plan9)
π€ SLEEP(1plan9) π€
okay bestie, this is the Plan 9 manual, section 1 β you know, the general commands section? yeah. and today's main character is sleep. ngl it's a short one but it's lowkey iconic. let's get into it. π¦
β¨ NAME β¨
sleep β suspend execution for an interval
like. literally just. pause. that's the whole job. and it ate. π
πΈ SYNOPSIS πΈ
sleep time
π DESCRIPTION π
Sleep suspends execution for time seconds.
that's it. that's the whole paragraph. it pauses your little process for however many seconds you told it, and then it gets back up like nothing happened. no cap. π
heads up:timeis in seconds. it is a plain old number, so don't be out here writing5sor1mand expecting β¨magicβ¨. it's seconds. periodt.
π«Ά EXAMPLES π«Ά
okay so here's where it gets fun. two real ones:
Execute a command 100 seconds hence. π
{sleep 100; command}&
it's giving "set a vibe-timer and dip." the & sends the whole thing to the background so you're not just sitting there staring at your terminal for a hundred seconds like π.
Repeat a command every 30 seconds. π
while (){
command
sleep 30
}
infinite loop, command, nap for thirty, command, nap for thirty, forever and ever amen. the while (){ } with nothing in the parens means "run this forever," which is very main character energy of it. π§
π SOURCE π
/src/cmd/sleep.c
go read the source if you want, it's right there, go off. π
π SEE ALSO π
okay that's the whole page, and honestly? short, sweet, slayed. this was the Plan 9 manual, section 1, SLEEP(1plan9) β mwah, no notes, 10/10, would suspend execution again. β bye bestie, go take a nap (or make your computer take one). πππ
π¦ where this page comes from
- debian bookworm: 9base 1:6-13 Β· Lucent
- debian trixie: 9base 1:6-14 Β· Lucent
- ubuntu jammy: 9base 1:6-11 Β· Lucent
- ubuntu noble: 9base 1:6-14 Β· Lucent
- ubuntu questing: 9base 1:6-15
- ubuntu resolute: 9base 1:6-15build1 Β· Lucent
- ubuntu stonking: 9base 1:6-15build1 Β· Lucent
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms