mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2025-05-06 14:58:31 +00:00
Fix terminal commands
Header syntax has been corrected
This commit is contained in:
parent
0f00fb2b7a
commit
e8e9f08c54
@ -14,40 +14,40 @@ from a screen and continue running in the background, then later reattached.
|
|||||||
|
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
# We’ll start off with managing tmux from a terminal:
|
|
||||||
|
|
||||||
tmux
|
tmux [command] # Run a command
|
||||||
|
# 'tmux' with no commands will create a new session
|
||||||
|
|
||||||
new # Create a new session
|
new # Create a new session
|
||||||
-s "Session" # Create named session
|
-s "Session" # Create named session
|
||||||
-n "Window" # Create named Window
|
-n "Window" # Create named Window
|
||||||
-c "/dir" # Start in target directory
|
-c "/dir" # Start in target directory
|
||||||
|
|
||||||
attach # Attach last/available session
|
attach # Attach last/available session
|
||||||
-t "#" # Attach target session
|
-t "#" # Attach target session
|
||||||
-d # Detach the session from other instances
|
-d # Detach the session from other instances
|
||||||
|
|
||||||
ls # List open sessions
|
ls # List open sessions
|
||||||
-a # List all open sessions
|
-a # List all open sessions
|
||||||
|
|
||||||
lsw # List windows
|
lsw # List windows
|
||||||
-a # List all windows
|
-a # List all windows
|
||||||
-s # List all windows in session
|
-s # List all windows in session
|
||||||
|
|
||||||
lsp # List panes
|
lsp # List panes
|
||||||
-a # List all panes
|
-a # List all panes
|
||||||
-s # List all panes in session
|
-s # List all panes in session
|
||||||
-t # List app panes in target
|
-t # List app panes in target
|
||||||
|
|
||||||
kill-window # Kill current window
|
kill-window # Kill current window
|
||||||
-t "#" # Kill target window
|
-t "#" # Kill target window
|
||||||
-a # Kill all windows
|
-a # Kill all windows
|
||||||
-a -t "#" # Kill all windows but the target
|
-a -t "#" # Kill all windows but the target
|
||||||
|
|
||||||
kill-session # Kill current session
|
kill-session # Kill current session
|
||||||
-t "#" # Kill target session
|
-t "#" # Kill target session
|
||||||
-a # Kill all sessions
|
-a # Kill all sessions
|
||||||
-a -t "#" # Kill all sessions but the target
|
-a -t "#" # Kill all sessions but the target
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user