Penetratin’ Part 1: An Introduction to tmux

froginacup
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:

  1. To start a tmux session, use tmux new -s test
  2. To view all available sessions, use tmux ls
  3. To tell the machine that you will be inputting tmux commands, press CTRL + B. This is called prefix.
  4. To split the screen into left and right, use prefix + %
  5. To split the screen up and down, use prefix + “
  6. To navigate between screens, use prefix + <Arrow Keys>
  7. To open a new window, use prefix + c
  8. To switch to the first window, press prefix + <window-number>
  9. To close a console, you can just type exit
  10. To kill a session, use tmux kill-session -t test
  11. To enter copy mode, press prefix + [
  12. To start copying in copy mode, press <spacebar>. To stop copying, press <enter>
  13. To paste what you copied, press prefix + ]

--

--

No responses yet