The man page for the caffeinate
command has the following for the two flags:
-d Create an assertion to prevent the display from sleeping.
-i Create an assertion to prevent the system from idle sleeping.
I don't understand the difference between the display sleeping and the system entering idle sleeping. I've tried googling this and found the following pages, but none of them seem to address the difference between display sleep and system idle sleep.
Difference between sleep, hibernate, etc
How can I tell the difference between display sleep vs. computer sleep on my MacBook Air (Late 2010)?
Use caffeinate to prevent sleep on lid close on battery
https://mackeeper.com/blog/mac-sleep-modes-explained
What exactly is the difference between the display sleeping and the system idle sleeping?