The really useful Linux tool, that I use daily.

Andy K
2 min readOct 22, 2022

--

Well, using Linux shell is pretty much my daily work basis. And it’s kinda hard to imagine how difficult would work be without it… But it also does not mean, that linux terminal is really user-friendly by it’s design.

I mean, OK — this is text interface, how this can even be user-firendly?

How? I have one answer — tmux.

BTW. If you’re being familliar with this one, you can just stop reading
here, as you probably not find anything useful inside.
Thank you in advance. :)

Just to clarify — tmux is an acronym of “terminal multiplexer”. And it basically has one important function — allow to create and switch between created terminal sessions. That’s it. Other cool thing — user can arrange the terminal windows just as wanted, using tilling pattern, and cards system. And all of this is entirely dependant on keyboard shortcuts.

This is how it looks like.

But I must take a point here.

When I first time tried working with it — first impression was bad. I can even remember that “it sucks” was one of my first opinions about it. Don’t be afraid, but remember that begining can be tough.

After few irritating sessions at first place, right now I have a powerful tool that drastically increases my work performance. Perfect :)

  • Manual in one window, and editing of some config file next to it — you’ve got it.
  • - Performing a “watch” command, ssh and help to it at once — no problem.

This is just wonderful. So how to do that? Installation is pretty simple:

apt install tmux - Debian
yum install tmux - RHEL
brew install tmux - MacOS

How to use it?

Ctrl + B — allow to send commands. Command must be pressed after releasing this combination.

Panes
% — Horizontal divison
— Vertical division
x — Closing current pane (must be confirmed)
strzałki — przełączanie między poszczególnymi kafelkami

Windows
c — Open a new window
0–9 —Select window with given identifier
& — Close current window

Other
t — show current time

Those are the most basic ones, that in my opinion you have to know in order to start doing anything. Just don’t forget to see what is inside the documentation, as there are more interesting functions to discover.

Thank you for your time :)

--

--

Andy K
Andy K

Written by Andy K

DevOps in work. Linux and Cloud enthusiast everywhere.

Responses (1)