跳到主內容

【Mac】保持不休眠語法

終端機執行 caffeinate,直到中斷(Ctrl + c)之前不會休眠

caffeinate

 

#-t 秒數 保持喚醒時間
caffeinate -t 3600