Przejdź do treści
Biblioteka skilli
DevOps i chmura · Automatyzacja

tmux

/tmux

Uruchamia zadania w tle, przechwytuje wyjście odłączonych procesów i zarządza sesjami tmux na serwerze bez ekranu.

Repozytorium
nix-config ↗
Licencja
MIT
Ostatnia zmiana repozytorium
26.10.2026

Ocena i bezpieczeństwo

100/ 100Klasa: dobry
Format25 / 25
Frontmatter z nazwą i opisem, poprawna nazwa, opis do 1024 znaków, nazwa zgodna z folderem.
Odkrywalność25 / 25
Opis mówi, kiedy użyć skilla, ma sensowną długość i jest w 3. osobie.
Treść35 / 35
Co najmniej 150 słów i do 500 linii, nagłówki, listy kroków, przykłady albo kod.
Higiena15 / 15
Bez zaślepek typu TODO, bez ścieżek Windows, z licencją.
Ryzykobrak sygnałów w skanie
Pliki w paczce
1
Skrypty
0
Komentarze HTML
0
Adresy URL w SKILL.md
0
Przestarzałość

Brak sygnałów. Repozytorium zmienione 26.10.2026, bez odwołań do wycofanych modeli i API.

Licencja

MIT, otwarta: można używać i zmieniać, z zachowaniem informacji o autorze.

Co robi i kiedy

Uruchamia zadania w tle, przechwytuje wyjście odłączonych procesów i zarządza sesjami tmux na serwerze bez ekranu.

Oryginalny opis (EN)

Manage background jobs, capture command output, and handle session multiplexing. Use when running long commands, capturing output from detached processes, or managing concurrent tasks in headless environments.

Jak działa

  1. Quick Reference
  2. Running Background Processes
  3. Capturing Output
  4. Sending Input
  5. Session Management
  6. Wait for Completion
  7. Common Patterns
  8. Tips
Sekcje z nagłówków SKILL.md, w oryginale · 133 linii, 464 słów
Podgląd SKILL.md
---
name: tmux
description: Manage background jobs, capture command output, and handle session multiplexing. Use when running long commands, capturing output from detached processes, or managing concurrent tasks in headless environments.
---

# tmux

Terminal multiplexer for background jobs, output capture, and session control.

## Quick Reference

| Command                               | Description                       |
| ------------------------------------- | --------------------------------- |
| `tmux new -d -s name 'cmd'`           | Run command in background session |
| `tmux capture-pane -t name -p`        | Capture session output            |
| `tmux send-keys -t name 'text' Enter` | Send input to session             |
| `tmux kill-session -t name`           | Kill session                      |
| `tmux ls`                             | List sessions                     |
| `tmux has -t name`                    | Check if session exists           |

## Running Background Processes

```bash
# Run command in new detached session
tmux new-session -d -s myserver 'python -m http.server 8080'

# With specific working directory
tmux new-session -d -s build -c /path/to/project 'make build'

# Keep session alive after command ends
tmux new-session -d -s task 'command; exec bash'

# Run only if session does not already exist
tmux has -t myserver || tmux new-session -d -s myserver 'command'
```

## Capturing Output

```bash
# Capture visible output
tmux capture-pane -t mysession -p

# Capture whole scrollback
tmux capture-pane -t mysession -p -S -

# Capture last N lines
tmux capture-pane -t mysession -p -S -100

# Save to file
tmux capture-pane -t mysession -p > output.txt

# Capture with escape sequences (colors)
tmux capture-pane -t mysession -p -e
```

## Sending Input

```bash
# Send text and press Enter
tmux send-keys -t mysession 'echo hello' Enter

# Send without Enter
tmux send-keys -t mysession 'some-text'

# Send Ctrl+C
tmux send-keys -t mysession C-c
```

## Session Management

```bash
# List sessions
tmux list-sessions
tmux ls

# Kill specific session
tmux kill-session -t myserver

# Kill all sessions
tmux kill-server

# Check whether session exists
tmux has -t mysession
```

## Wait for Completion

```bash
# Signal completion from command
tmux new-session -d -s job 'command; tmux wait-for -S job-done'

# Wait for signal
tmux wait-for job-done
```

## Common Patterns

### Development Servers

```bash
tmux new-session -d -s backend 'bun run backend'
tmux new-session -d -s frontend 'bun run frontend'
tmux new-session -d -s tests 'vitest --watch'
```

# Run and capture output

```bash
tmux new-session -d -s job 'command'
sleep 0.5
output=$(tmux capture-pane -t job -p)
echo "$output"
```

### Conditional session

```bash
tmux has -t myserver || tmux new-session -d -s myserver 'command'
```

### Clean up

```bash
tmux kill-session -t backend
tmux kill-session -t frontend
tmux kill-server  # Kill all
```

## Tips

- Use `tmux new-session -d` for background jobs
- Use `tmux capture-pane -p -S -` for whole scrollback
- Use `tmux has -t name` to check whether session exists
- Use `tmux kill-server` to clean up all sessions
- Use `-c /path` to set working directory
- Use `exec bash` to keep session alive after command

Wersje

RepozytoriumWynikLicencja
Ta strona · DaRacci/nix-config100MIT
julianobarbosa/claude-code-skills100MIT
G1Joshi/Agent-Skills100MIT
nicknisi/claude-plugins100MIT
hkuds/nanobot96MIT
rachebtms/Cirno96MIT

Migawka bazy z 13.11.2026 · wersja paczki b4b4a00dcdea (skrót SHA-256 całej paczki)

Pobrania w ostatnich 30 dniach: 0 · ranking

Zgłoś problem z tym skillem: szkodliwa treść, błędny opis albo prośba autora o usunięcie.

Podobne skille

  • 100tmux-aware
    Uruchamia usługę w panelu tmux i sprawdza wynik procesów w tle, gdy sesja tmux jest aktywna.
  • 100autodl-remote-tmux
    Uruchamia i monitoruje długie zdalne zadania w panelach tmux przez AutoDL Remote.
  • 100tmux-automation
    Uruchamia testy aplikacji CLI w izolowanych sesjach tmux lub byobu, wysyła klawisze, przechwytuje wynik i monitoruje przebieg przez ai-monitor.
  • 100session
    Zarządza sesjami i drzewami roboczymi Git oraz sesjami tmux: tworzy nowe sesje i porządkuje worktree.
  • 95effect-command-executor
    Uruchamia i zarządza procesami potomnymi w Effect: przechwytuje wyjście, składa polecenia w potoki i sprząta po zakończeniu.
  • 100tmux-orchestrator
    Steruje w tmux interaktywnymi procesami, takimi jak trening czy inferencja na GPU, i uruchamia je równolegle.

Uwagi i zgłoszenia

Wiadomość trafi do Bartosza Sokolińskiego. Adres e-mail jest potrzebny tylko do odpowiedzi. Szczegóły w polityce prywatności.