Penetratin’ Part 1: An Introduction to tmux
1 min readJul 26, 2023
As a penetration tester, tmux is one of the most valuable tool that you will have. Tmux is a terminal multiplexer, i.e. it allows you to have more than 1 terminals at a single time. Tmux is also available on most linux systems by default.
Basic commands to use tmux:
- To start a tmux session, use
tmux new -s test
- To view all available sessions, use
tmux ls
- To tell the machine that you will be inputting tmux commands, press CTRL + B. This is called prefix.
- To split the screen into left and right, use prefix + %
- To split the screen up and down, use prefix + “
- To navigate between screens, use prefix + <Arrow Keys>
- To open a new window, use prefix + c
- To switch to the first window, press prefix + <window-number>
- To close a console, you can just type
exit
- To kill a session, use
tmux kill-session -t test
- To enter copy mode, press prefix + [
- To start copying in copy mode, press <spacebar>. To stop copying, press <enter>
- To paste what you copied, press prefix + ]