Skip to content

Commit

Permalink
Add Prevent Mac from sleeping with terminal as a macOS TIL
Browse files Browse the repository at this point in the history
  • Loading branch information
rkJun committed Jul 15, 2022
1 parent ea42f94 commit b11a5b4
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 1 deletion.
9 changes: 8 additions & 1 deletion README.md
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)
18 changes: 18 additions & 0 deletions macOS/prevent-mac-from-sleeping-with-terminal.md
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

0 comments on commit b11a5b4

Please sign in to comment.