Files
install-sh/README.md
T

124 lines
3.5 KiB
Markdown

# install-sh
터미널 UI 도구 설치 스크립트 모음
## 지원 도구
- [bottom](https://github.com/ClementTsang/bottom) - 호스트 모니터링
- [lazygit](https://github.com/jesseduffield/lazygit) - Git 터미널 UI
- [ctop](https://github.com/bcicen/ctop) - 컨테이너 모니터링
## 설치
### MacOS / Linux
**bottom:**
```bash
curl -fsSL "https://gl.isitsoft.kr/publicproj/install-sh/-/raw/main/install-bottom.sh?ref_type=heads" | bash
```
**lazygit:**
```bash
curl -fsSL "https://gl.isitsoft.kr/publicproj/install-sh/-/raw/main/install-lazygit.sh?ref_type=heads" | bash
```
**ctop:**
```bash
curl -fsSL "https://gl.isitsoft.kr/publicproj/install-sh/-/raw/main/install-ctop.sh?ref_type=heads" | bash
```
### Windows
**PowerShell**:
bottom:
```powershell
powershell -ExecutionPolicy Bypass -c "$t=\"$env:TEMP\install-bottom.ps1\"; iwr -useb 'https://gl.isitsoft.kr/publicproj/install-sh/-/raw/main/install-bottom.ps1' -OutFile $t; & $t"
```
lazygit:
```powershell
powershell -ExecutionPolicy Bypass -c "$t=\"$env:TEMP\install-lazygit.ps1\"; iwr -useb 'https://gl.isitsoft.kr/publicproj/install-sh/-/raw/main/install-lazygit.ps1' -OutFile $t; & $t"
```
ctop:
```powershell
powershell -ExecutionPolicy Bypass -c "$t=\"$env:TEMP\install-ctop.ps1\"; iwr -useb 'https://gl.isitsoft.kr/publicproj/install-sh/-/raw/main/install-ctop.ps1' -OutFile $t; & $t"
```
## 도구별 사용법
### bottom
호스트 모니터링 터미널 UI 도구입니다.
- **CPU, 메모리, 디스크, 네트워크** 실시간 모니터링
- **프로세스 관리** (CPU/메모리 사용률별 정렬, 검색, 종료)
- **온도 센서 모니터링**
- **GPU 모니터링** (NVIDIA/AMD 지원)
```bash
btm
```
| 단축키 | 동작 |
| ----------- | -------------------- |
| `q` / `Esc` | 종료 |
| `F1` ~ `F5` | 탭 전환 |
| `↑` `↓` | 프로세스 선택 |
| `k` | 선택한 프로세스 종료 |
| `/` | 검색 |
### lazygit
Git을 위한 터미널 UI 도구입니다.
- **편리한 단축키**로 모든 git 작업 수행
- **커밋, 브랜치, stash, rebase** 시각적 관리
- **diff 뷰**로 변경사항 확인
- **merge conflict** 해결 도구
```bash
lazygit
```
| 단축키 | 동작 |
| --------------- | ------------------ |
| `q` | 종료 |
| `↓` `↑` `→` `←` | 화면 간 이동 |
| `Space` | 파일 Stage/Unstage |
| `c` | 커밋 작성 |
| `P` `p` | Push / Pull |
| `?` | 도움말 |
### ctop
Docker/Podman 컨테이너 모니터링 터미널 UI 도구입니다.
- **실시간 컨테이너 메트릭** (CPU, 메모리, 네트워크, I/O)
- **컨테이너별 상태** 표시 및 필터링
- **컨테이너 로그** 바로 보기
- **정지/시작/재시작** 등 컨테이너 관리
```bash
ctop
```
| 단축키 | 동작 |
| ----------- | -------------------- |
| `q` / `Esc` | 종료 |
| `↑` `↓` | 컨테이너 선택 |
| `l` | 컨테이너 로그 보기 |
| `a` | 모든 컨테이너 표시 |
| `f` | 필터 |
| `S` | 정지 |
| `R` | 재시작 |
> **macOS Apple Silicon 참고**: ctop은 native arm64 빌드를 제공하지 않습니다. Rosetta 2를 통해 amd64 바이너리로 실행됩니다.
---
*GitLab: https://gitlab.com/publicproj/install-sh*