Caffeinate your mac Nov. 11, 2023 #MacOS #Tools #TIL Today I learned a one-liner to keep a Mac from sleeping. It's pretty useful for presenting and overly aggressive IT policies. Pop open the terminal and then type in: Bashcaffeinate -disu Ctrl + c to exit.