# πŸ“ [Windows] 1. 터미널 관리 & 파일 μœ ν‹Έλ¦¬ν‹° [⬅️ 메인 README둜 λŒμ•„κ°€κΈ°](../README.md) | [🍎 macOS / 🐧 Linux κ°€μ΄λ“œ 보기](./UNIX-01-TERMINAL-FILE.md) --- ## ⚑ λΉ λ₯Έ 원클릭 μ„€μΉ˜ (PowerShell / CMD) ### 1.1. tmux (WindowsλŠ” psmux μ„€μΉ˜) * **CMD μ°½μ—μ„œ μ‹€ν–‰:** ```cmd powershell -ExecutionPolicy Bypass -c "[Net.ServicePointManager]::SecurityProtocol=[Net.SecurityProtocolType]::Tls12; $t=\"$env:TEMP\install-tmux.ps1\"; iwr -useb 'https://gl.isitsoft.kr/publicproj/install-sh/-/raw/main/install-tmux.ps1' -OutFile $t; & $t" ``` * **PowerShell μ°½μ—μ„œ μ‹€ν–‰:** ```powershell $t="$env:TEMP\install-tmux.ps1"; iwr -useb 'https://gl.isitsoft.kr/publicproj/install-sh/-/raw/main/install-tmux.ps1' -OutFile $t; powershell -ExecutionPolicy Bypass -File $t ``` ### 1.2. rmux * **CMD μ°½μ—μ„œ μ‹€ν–‰:** ```cmd powershell -ExecutionPolicy Bypass -c "[Net.ServicePointManager]::SecurityProtocol=[Net.SecurityProtocolType]::Tls12; $t=\"$env:TEMP\install-rmux.ps1\"; iwr -useb 'https://gl.isitsoft.kr/publicproj/install-sh/-/raw/main/install-rmux.ps1' -OutFile $t; & $t" ``` * **PowerShell μ°½μ—μ„œ μ‹€ν–‰:** ```powershell $t="$env:TEMP\install-rmux.ps1"; iwr -useb 'https://gl.isitsoft.kr/publicproj/install-sh/-/raw/main/install-rmux.ps1' -OutFile $t; powershell -ExecutionPolicy Bypass -File $t ``` ### 1.3. Helix * **CMD μ°½μ—μ„œ μ‹€ν–‰:** ```cmd powershell -ExecutionPolicy Bypass -c "[Net.ServicePointManager]::SecurityProtocol=[Net.SecurityProtocolType]::Tls12; $t=\"$env:TEMP\install-helix.ps1\"; iwr -useb 'https://gl.isitsoft.kr/publicproj/install-sh/-/raw/main/install-helix.ps1' -OutFile $t; & $t" ``` * **PowerShell μ°½μ—μ„œ μ‹€ν–‰:** ```powershell $t="$env:TEMP\install-helix.ps1"; iwr -useb 'https://gl.isitsoft.kr/publicproj/install-sh/-/raw/main/install-helix.ps1' -OutFile $t; powershell -ExecutionPolicy Bypass -File $t ``` ### 1.4. superfile * **CMD μ°½μ—μ„œ μ‹€ν–‰:** ```cmd powershell -ExecutionPolicy Bypass -c "[Net.ServicePointManager]::SecurityProtocol=[Net.SecurityProtocolType]::Tls12; $t=\"$env:TEMP\install-superfile.ps1\"; iwr -useb 'https://gl.isitsoft.kr/publicproj/install-sh/-/raw/main/install-superfile.ps1' -OutFile $t; & $t" ``` * **PowerShell μ°½μ—μ„œ μ‹€ν–‰:** ```powershell $t="$env:TEMP\install-superfile.ps1"; iwr -useb 'https://gl.isitsoft.kr/publicproj/install-sh/-/raw/main/install-superfile.ps1' -OutFile $t; powershell -ExecutionPolicy Bypass -File $t ``` ### 1.5. dua * **CMD μ°½μ—μ„œ μ‹€ν–‰:** ```cmd powershell -ExecutionPolicy Bypass -c "[Net.ServicePointManager]::SecurityProtocol=[Net.SecurityProtocolType]::Tls12; $t=\"$env:TEMP\install-dua.ps1\"; iwr -useb 'https://gl.isitsoft.kr/publicproj/install-sh/-/raw/main/install-dua.ps1' -OutFile $t; & $t" ``` * **PowerShell μ°½μ—μ„œ μ‹€ν–‰:** ```powershell $t="$env:TEMP\install-dua.ps1"; iwr -useb 'https://gl.isitsoft.kr/publicproj/install-sh/-/raw/main/install-dua.ps1' -OutFile $t; powershell -ExecutionPolicy Bypass -File $t ``` --- ## πŸ“– 도ꡬ별 상세 μ‚¬μš©λ²• 및 단좕킀 ### 1.1. [tmux (psmux)](https://github.com/psmux/psmux) Windows ν™˜κ²½μ—μ„œλŠ” Rust 기반 λ„€μ΄ν‹°λΈŒ 가상 터미널 λ©€ν‹°ν”Œλ ‰μ„œμΈ `psmux`(`tmux.exe` 별칭 포함)κ°€ `$HOME\.local\bin`에 μ„€μΉ˜λ˜κ³  PATH에 μžλ™ λ“±λ‘λ©λ‹ˆλ‹€. κΈ°μ‘΄ `.tmux.conf` μ„€μ • 파일과 높은 μˆ˜μ€€μœΌλ‘œ ν˜Έν™˜λ˜μ–΄ λ™μΌν•œ Vim μŠ€νƒ€μΌ 단좕킀λ₯Ό κ·ΈλŒ€λ‘œ μ‚¬μš©ν•  수 μžˆμŠ΅λ‹ˆλ‹€. ```powershell tmux # μƒˆ μ„Έμ…˜ 가동 (λ˜λŠ” psmux) tmux new -s # 이름 μ§€μ • μ„Έμ…˜ μ‹œμž‘ tmux attach -t # νŠΉμ • μ„Έμ…˜ λ‹€μ‹œ μ—°κ²° tmux ls # 가동 쀑인 μ„Έμ…˜ λͺ©λ‘ 보기 ``` | 단좕킀 | λ™μž‘ | | :--- | :--- | | `Ctrl-a` | Prefix key (κΈ°λ³Έ 단좕킀 Ctrl-bμ—μ„œ 변경됨) | | `Prefix \|` | ν™”λ©΄ μˆ˜ν‰(쒌우) λΆ„ν•  | | `Prefix -` | ν™”λ©΄ 수직(μœ„μ•„λž˜) λΆ„ν•  | | `Prefix h/j/k/l` | νŒ¨λ„ κ°„ 이동 (Vim μŠ€νƒ€μΌ) | | `Prefix r` | `.tmux.conf` μ„€μ • 파일 μ¦‰μ‹œ λ¦¬λ‘œλ“œ | | `Prefix Space` | ν™œμ„±ν™”λœ νŒ¨λ„ λ ˆμ΄μ•„μ›ƒ λ³€κ²½ | | `Prefix o` | ν™œμ„±ν™”λœ νŒ¨λ„ νšŒμ „ μ „ν™˜ | | `Prefix ,` | ν˜„μž¬ 창의 이름 λ³€κ²½ | | `Prefix &` | ν˜„μž¬ ν™œμ„±ν™”λœ μ°½ μ™„μ „νžˆ λ‹«κΈ° | --- ### 1.2. [rmux](https://rmux.io) tmux의 ν˜„λŒ€μ μΈ λŒ€μ•ˆμœΌλ‘œ μ„€κ³„λœ Rust 기반 터미널 λ©€ν‹°ν”Œλ ‰μ„œμž…λ‹ˆλ‹€. ```powershell rmux # μƒˆ μ„Έμ…˜ 가동 rmux attach # λ§ˆμ§€λ§‰ μ„Έμ…˜ λ‹€μ‹œ μ—°κ²° rmux list-sessions # μ„Έμ…˜ λͺ©λ‘ 보기 ``` | 단좕킀 | λ™μž‘ | | :--- | :--- | | `Ctrl-b` | Prefix key (κΈ°λ³Έκ°’) | | `Prefix %` | ν™”λ©΄ μˆ˜ν‰(쒌우) λΆ„ν•  | | `Prefix "` | ν™”λ©΄ 수직(μœ„μ•„λž˜) λΆ„ν•  | | `Prefix d` | ν˜„μž¬ μ„Έμ…˜μ—μ„œ μ΄νƒˆ (Detach) | | `Prefix o` | λ‹€μŒ νŒ¨λ„λ‘œ 포컀슀 이동 | | `Prefix x` | ν˜„μž¬ ν™œμ„±ν™”λœ νŒ¨λ„ μ™„μ „νžˆ λ‹«κΈ° | --- ### 1.3. [Helix](https://github.com/helix-editor/helix) 터미널 ν™˜κ²½μ—μ„œ ν˜„λŒ€μ μΈ μ‚¬μš©μ„±μ„ μ œκ³΅ν•˜λŠ” λͺ¨λ‹¬(Modal) ν…μŠ€νŠΈ μ—λ””ν„°μž…λ‹ˆλ‹€. `install-helix.ps1`은 `hx.exe`λ₯Ό `$env:USERPROFILE\.local\bin`에 λ°°ν¬ν•˜κ³  ν•„μˆ˜ λŸ°νƒ€μž„ νŒŒμΌλ“€μ„ `%APPDATA%\helix\runtime` κ²½λ‘œμ— μžλ™μœΌλ‘œ κ΅¬μ„±ν•©λ‹ˆλ‹€. ```powershell hx # μ‹€ν–‰ λͺ…λ Ήμ–΄ ``` | 단좕킀 | λ™μž‘ | | :--- | :--- | | `i` | Insert λͺ¨λ“œ μ§„μž… | | `Esc` | Normal λͺ¨λ“œ 볡귀 | | `d` / `y` / `p` | 선택 μ˜μ—­ μ‚­μ œ / 볡사(Yank) / λΆ™μ—¬λ„£κΈ°(Paste) | | `w` / `b` | λ‹€μŒ 단어 / 이전 λ‹¨μ–΄λ‘œ 이동 | | `u` / `U` | μž‘μ—… μ·¨μ†Œ (Undo) / λ‹€μ‹œ μ‹€ν–‰ (Redo) | | `Space f` | μ „μ—­ 파일 μ°ΎκΈ° (File picker) | | `Space /` | ν˜„μž¬ 버퍼 μ „μ—­ 검색 | | `:w` / `:q` | 파일 μ €μž₯ / 에디터 μ’…λ£Œ | --- ### 1.4. [superfile](https://github.com/yorukot/superfile) μˆ˜λ €ν•œ λ””μžμΈμ„ μ œκ³΅ν•˜λŠ” κ³ κΈ°λŠ₯ 터미널 λ“€μ–Ό νŒ¨λ„ 파일 κ΄€λ¦¬μžμž…λ‹ˆλ‹€. ```powershell spf # μ‹€ν–‰ λͺ…λ Ήμ–΄ (superfile이 μ•„λ‹Œ spfλ₯Ό μ‚¬μš©ν•©λ‹ˆλ‹€) ``` | 단좕킀 | λ™μž‘ | | :--- | :--- | | `q` | ν”„λ‘œκ·Έλž¨ μ’…λ£Œ | | `h` `j` `k` `l` | 쒌 / ν•˜ / 상 / 우 디렉토리 이동 | | `Enter` | 디렉토리 μ§„μž… 및 λŒ€μƒ 파일 μ—΄κΈ° | | `y` / `d` / `r` | 파일 볡사(Yank) / μ‚­μ œ(Delete) / 이름 λ³€κ²½(Rename) | | `/` | μ‹€μ‹œκ°„ λΉ λ₯Έ 검색 | | `Tab` | λ“€μ–Ό νŒ¨λ„ 포컀슀 μŠ€μ™‘ | > πŸ’‘ **μ€‘μš”:** Windows Terminal λ“±μ—μ„œ μ•„μ΄μ½˜μ΄ κΉ¨μ Έ 보일 경우 폰트λ₯Ό **Nerd Font** κ³„μ—΄λ‘œ μ„€μ •ν•΄ μ£Όμ„Έμš”. --- ### 1.5. [dua](https://github.com/byron/dua-cli) 병렬 μŠ€μΊ”μ„ μ§€μ›ν•˜λŠ” μ΄ˆκ³ μ† λ””μŠ€ν¬ μ‚¬μš©λŸ‰ 뢄석 μœ ν‹Έλ¦¬ν‹°μž…λ‹ˆλ‹€. ```powershell dua # ν˜„μž¬ μœ„μΉ˜ μ‚¬μš©λŸ‰ 검사 dua C:\path\to\dir # νŠΉμ • 디렉토리 μ§€μ • 검사 dua i # λŒ€ν™”ν˜•(Interactive) TUI λͺ¨λ“œ ꡬ동 ``` | 단좕킀 | λ™μž‘ | | :--- | :--- | | `↑` `↓` λ˜λŠ” `j` `k` | 디렉토리 트리 μœ„/μ•„λž˜ 이동 | | `?` | 단좕킀 도움말 νŒμ—… | | `d` | μ„ νƒν•œ 디렉토리/파일 μ¦‰μ‹œ 영ꡬ μ‚­μ œ | | `q` / `Esc` | ν”„λ‘œκ·Έλž¨ μ’…λ£Œ | --- [⬅️ 메인 README둜 λŒμ•„κ°€κΈ°](../README.md) | [λ‹€μŒ μΉ΄ν…Œκ³ λ¦¬: 2. μ‹œμŠ€ν…œ & μ»¨ν…Œμ΄λ„ˆ DevOps ➑️](./WIN-02-SYSTEM-DEVOPS.md)