News‎ > ‎

Getting started with tmux on the command line

posted Jan 30, 2016, 10:15 AM by Ron Cotton
Tmux is similar to GNU screen. Allowing users to split up terminal windows to separate sessions; instead of having multiple session connections to your client. Tmux integrates with the command-line experience, improving workflow.

Having a default tmux.conf file should be your first priority!  Once you start learning tmux, you'll want to change behaviors and test versus it's default behavior:

tmux show -g | cat > ~/.tmux.conf

Tmux is started in a session, which is like your environment (one environment could be "work" and another could be "play", for example...) and each session has windows and panes attached to the session.  You can have multiple sessions: and each individual session can be combined, or detached (closed), which closes all the associated windows and panes.  Tmux can be interfaced by the command line, and once started, you can still access it from the command line or use a prefix (bound default to CTRL-b) followed by a hotkey to control tmux.  The advantage of using tmux is multiple terminal sessions in a single term connection, and once used, moving between these window panes can be much quicker than switching between windows on your term client.

The next thing is cheat sheets and startup guides on how to use tmux, IMHO here's two great pages about tmux:

Neither explain everything, but both explain the basics well.

Comments