CAFFEINATE(1)
β¨ CAFFEINATE(1) β¨
okay bestie, welcome to the General Commands Manual page for caffeinate π this one is short, sweet, and absolutely iconic β it's basically a little babysitter for your desktop's nap schedule π΄π«
πΈ NAME πΈ
caffeinate β inhibit desktop idleness while a command runs
like... it keeps your computer awake while something else is doing its thing. no naps allowed, periodt π
π SYNOPSIS π
caffeinate COMMAND [ARGUMENT...]
you give it a COMMAND, you give it some ARGUMENT...s, and it does the rest. that's it, that's the whole vibe π¦
π«Ά DESCRIPTION π«Ά
So here's the tea, bestie β caffeinate runs whatever command you hand it, and while that command is running, it stops your desktop from going idle. Which means β no cap β it stops the screensaver, the screen lock, and automatic suspend from activating. Even if you're literally not touching the machine at all. the machine just sits there, wide awake, thriving β¨
ngl, most of the time it's way more convenient to just use the fully-automatic caffeine(1) β she's the main character, she handles it all by herself πββοΈ but caffeinate is your girl when it's impractical or just straight-up impossible to run a program in full-screen mode, or when you need to stop automatic suspend from kicking in during a long-running unattended command, like a system update π₯οΈπ₯ (imagine your update getting interrupted mid-way... couldn't be us π)
β οΈ Important heads-up for the cron girlies: when you're usingcaffeinatewithcron(1)or any other task scheduler, you gotta make sure theDISPLAYenvironment variable is correctly set for the task. For lots of setups,DISPLAY=:0(or whatever your current value ofDISPLAYhappens to be) will work; and for cron specifically, you just prepend this setting to the command. easy π
π SEE ALSO π
go check 'em out, they're part of the same lil friend group π
π AUTHORS π
Reuben Thomas <rrt@sc3d.org> β thank you for this gift, king π
okay so that's the whole page π₯° this one came from the General Commands Manual, it's dated January 2015, and honestly? a timeless bop. now go keep your screen awake and slay π β¨π¦
π¦ where this page comes from
- ubuntu resolute: caffeine 2.9.14-1 Β· GPL-3.0-or-later
- ubuntu stonking: caffeine 2.9.14-1 Β· GPL-3.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms