-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Prevent Mac from sleeping with terminal as a macOS TIL
- Loading branch information
Showing
2 changed files
with
26 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,8 @@ | ||
# til | ||
# TIL | ||
|
||
> Today I Learned | ||
|
||
### MacOS | ||
|
||
- [터미널에서 맥이 잠들지 않게 하기](macOS/prevent-mac-from-sleeping-with-terminal.md) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# 터미널에서 맥이 잠들지 않게 하기 | ||
|
||
- 실행방법 : 터미널에서 아래 명령을 실행한다. | ||
- `caffeinate` 만 실행해도 되지만 모니터 꺼짐도 방지하기 위해 `-d` 옵션을 추가한다. | ||
```shell | ||
$ caffeinate -d | ||
``` | ||
|
||
- 시간 단위 지정은 -t 옵션 (3600초 - 1시간, 21600초 - 6시) | ||
``` | ||
caffeinate -t 3600 | ||
``` | ||
|
||
- 상세 옵션은 `man caffeinate` 에서 확인 가능 | ||
|
||
# References | ||
- https://ss64.com/osx/caffeinate.html | ||
- https://seorenn.tistory.com/61 |