Muck It Up With Tmux
Using and Configuring Tmux
To start tmux, just run
tmux new-session if you're feeling verbose. Then you'll have a session with one window and your usual login shell. To add a second window, run
Ctrl-b c. (Same thing if you want a third, fourth, and so on.)
If you'd like to split your window into panes, each with its own shell, run
Ctrl-b " to split the window into two panes. That will split your
tmux session horizontally. If you prefer vertically, you can use
Ctrl-b %. To move between panes use
Now, all of the windows that are running in
tmux are in one session. If you start a second instance of tmux in another xterm or virtual console on the same machine, you've got a second session. You can see all of the sessions that are running by using
Ctrl-s. This will give a menu of all sessions and show how many windows are running in each session.
Joe 'Zonker' Brockmeier is a freelance writer and editor with more than 10 years covering IT. Formerly the openSUSE Community Manager for Novell, Brockmeier has written for Linux Magazine, Sys Admin, Linux Pro Magazine, IBM developerWorks, Linux.com, CIO.com, Linux Weekly News, ZDNet, and many other publications. You can reach Zonker at email@example.com and follow him on Twitter.
Read "Get Hands-on With Tmux" at ServerWatch
Solid state disks (SSDs) made a splash in consumer technology, and now the technology has its eyes on the enterprise storage market. Download this eBook to see what SSDs can do for your infrastructure and review the pros and cons of this potentially game-changing storage technology.
- 1Linux Top 3: CoreOS, Oracle Enterprise Linux 7 and Ubuntu 14.10
- 2Linux Top 3: Raspberry Pi B+, CentOS 7 and RHEL 5.11
- 3Linux Top 3: CoreOS Goes Stable, Oracle Clones RHEL 7 and Tails Updates
- 4Linux Top 3: Slackware Turns 21, Debian Squeezes and Linux 3.16 Nears
- 5Linux Top 3: Distrowatch, Deepin 2014 and the NSA