-
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.
- Loading branch information
Eduardo Ivan Pichler
committed
Aug 22, 2024
1 parent
fae62dd
commit 041d3c6
Showing
1 changed file
with
52 additions
and
0 deletions.
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 |
---|---|---|
@@ -0,0 +1,52 @@ | ||
--- | ||
title: "tmux" | ||
weight: 1 | ||
# bookFlatSection: true | ||
# bookToc: false | ||
# bookHidden: true | ||
# bookCollapseSection: true | ||
# bookComments: false | ||
# bookSearchExclude: false | ||
--- | ||
# tmux | ||
|
||
Terminal Multiplexer. | ||
|
||
## Managing sessions | ||
| Command | | | ||
|-------------------------------------|-----------------------------------------------------| | ||
| `tmux new -s session_name` | Create a new session with the name `session_name` | | ||
| `C-b d` | Detach from the current session | | ||
| `tmux ls` | List all sessions | | ||
| `tmux attach -t session_name` | Attach to a session with the name `session_name` | | ||
| `tmux kill-session -t session_name` | Kill a session with the name `session_name` | | ||
| `tmux kill-server` | Kill all the server and all tmux sessions | | ||
|
||
## Managing windows | ||
| Command | | | ||
|-------------------------------------------------|---------------------------------------------------| | ||
| `tmux new-window -n window_name` | Create a new window with the name `window_name` | | ||
| `C-b c` | Create a new window | | ||
| `C-b w` | List all windows | | ||
| `C-b 0` | Switch to window 0 | | ||
| `C-b n` | Switch to the next window | | ||
| `C-b p` | Switch to the previous window | | ||
| `tmux select-window -t window_name` | Select a window with the name `window_name` | | ||
| `C-b ,` or `tmux rename-window new_window_name` | Rename the current window to `new_window_name` | | ||
| `tmux kill-window -t window_name` | Kill a window with the name `window_name` | | ||
|
||
## Managing panes | ||
| Shortcut | | | ||
|----------|------------------------------------------------------------| | ||
| `C-b %` | Split the current pane vertically | | ||
| `C-b "` | Split the current pane horizontally | | ||
| `C-b q` | Show pane numbers. Type the number to switch to the pane. | | ||
| `C-b o` | Switch to the next pane | | ||
| `C-b x` | Kill the current pane | | ||
| `C-b z` | Toggle pane zoom | | ||
| `C-b {` | Move the current pane to the left | | ||
| `C-b }` | Move the current pane to the right | | ||
| `C-b !` | Break the current pane into a new window | | ||
|
||
|
||
## |