😬
Golgothus' Lab
  • 🥃Welcome!
  • 🏴‍☠️CTF
    • TryHackMe Write-ups
      • Mr Robot
      • Burp Suite
      • Web Fundamentals
      • TMUX
      • Linux Fundamentals - Part 1
      • Linux Fundamentals - Part 2
      • Linux Priv Escalation
      • OWASP JuiceShop
      • OWASP Top 10
    • HackTheBox
      • Pilgrimage
      • Codify
      • CozyHosting
      • Sau
      • Analytics
      • Tracks - Beginner
        • Lame
  • ☁️Azure
    • AZ-104 Review
      • AZ-104 Notes
      • AZ-104: Prerequisites for Azure administrators
      • Windows virtual machine in Azure
      • Protect your virtual machine settings with Azure Automation State Configuration
      • Manage virtual machines with the Azure CLI
      • web application in the Azure App Service
      • Control access to Azure Storage with shared access signatures
      • Configure Azure Kubernetes Service
  • ❔Other Research
    • Research & Misc. Write-Ups
      • Registry Key Info
      • Windows Event Logging
      • Sysmon
      • Google Dorking
      • DPS Challenge
      • Discord Payload Recon
      • Kasm Install
Powered by GitBook
On this page
  • Session Management
  • Windows Management
  • Copy Mode
  • Pane Management
  • Byobu
  1. CTF
  2. TryHackMe Write-ups

TMUX

PreviousWeb FundamentalsNextLinux Fundamentals - Part 1

TMUX Cheatsheet can be found

For another excellent resource on learning tmux, check out IppSec's video:

All TMUX commands start with control + b

Session Management

To detach from a session control + b + d

To review all open sessions we run:

tmux ls

When you create a tmux session without any set name, it defaults to a number - 0

To attach to this session once it's detached ( tmux + ctrl + b + d) we can do:

tmux a -t 0

Windows Management

To create a new "Window" in TMUX, create your session, then type:

control + b + c

Copy Mode

To enter copy mode, we use:

tmux
control + b + [

This will allow us an interactive window to scroll in

Some useful commands to keep in mind while in copy mode:

  • ctrl + b + [ (enters copy mode)

  • ctrl + b + g (go to top)

  • ctrl + b + G (go to bottom)

  • ctrl + b + q (quit)

To select a window, make sure you are not in an attached session, to check run:

tmux ls

This will let you know if you are attached, to detach run ctrl + b + d, then we can attach to a new window by running:

ctrl + b + <window number>

Pane Management

Useful commands:

  • ctrl + b + % (split the panes vertically)

  • ctrl + b + " (split the panes horizontally)

We can also resize these panes by holding down the key combo and pressing the arrow keys, try it out now!

ctrl + b + w (lists all active windows, and allows for selection) ctrl + b + & (kills windows)

If a pane becomes unresponsive, run ctrl + b + x

To kill a pane via command, run:

exit

tmux new -s neat

Byobu

Useful commands:

  • ctrl + a + f2 = new window

  • ctrl + a + shift + f2 = horizontal split

  • ctrl + a + ctrl + f2 = vertical split

  • ctrl + a + ctrl + f6 = kill focused split

Download Byobu (another terminal multiplexer) through the following site,

🏴‍☠️
here
Link
here