Christopher Philip Hebert

Back to Home

Blog

Back to Blog
Previous Next

2025-01-06

nohup \
  sleep 5 \
>> output.log 2>&1 \
&

Replace sleep 5 with any long-running command. stdout and stderr will be redirected to output.log.

An incredibly important structure. More than a tool, this pattern emphasizes: let the computer work for you.

If you don't know what to tell the computer to do or how to tell it to do it, focus on figuring that out, and then tell the computer to do it for you.

Do not do something yourself unless doing so teaches or molds you in some valuable way.


A closely related concept: A CPU at less than 100%, memory or storage unfilled, bandwidth unsaturated is wasting.

All you need to justify running at full speed permanently is some product worth more than the cost of the energy bill.