Using tmux for session management
1. Command: tmux new -s gobuster
- Creates a new tmux session with the name "gobuster"
- Starts the session and attaches to it
2. Command: tmux ls
- Lists all the active tmux sessions
3. Command: tmux attach -t 1
- Attaches to an existing tmux session with target ID or name "1"
4. Option: -t (target)
- Used with "attach" and "rename-session" commands to specify the target session by ID or name
5. Command: tmux rename-session -t 1 gobuster
- Renames the tmux session with target ID or name "1" to "gobuster"
6. Command: tmux kill-session -t gobuster
- Terminates the tmux session with the name "gobuster"
7. Ctrl+B D
- Detaches from the current tmux session, allowing you to continue working in the background
8. Ctrl+B %
- Splits the current window into two horizontally, creating two separate terminal panes
9. Ctrl+B "
- Splits the current window into two vertically, creating two separate terminal panes
10. Ctrl+B Arrow Key (Left, Right, Up, Down)
- Moves between different terminals or panes within the tmux session
11. Ctrl+B X
- Closes the current terminal pane
12. Ctrl+B C
- Creates a new window within the tmux session
13. Ctrl+B Z
- Zooms in on the current terminal pane, making it full-screen
14. Ctrl+B ,
- Renames the current terminal pane
Note: tmux is a terminal multiplexer that allows users to manage multiple terminal sessions within a single window. The provided commands and shortcuts are useful for navigating, creating, renaming, splitting, and closing terminal panes/windows within a tmux session.
No comments :
Post a Comment