Topics: Red Hat / Linux, System Admin
TMUX
TMUX is short for Terminal Multiplexer. It is a way to run commands on multiple windows at the same time, or to split the terminal window in multiple panes.
Espcially, if you need to configure multiple nodes the same way, and thus have to run the same commands on different hosts, this tool might come in handy.
First, ensure it is installed.
Next, just start it, by running:# yum -y install tmux
This, in itself will not do much, except for displaying a bar at the bottom of the screen.# tmux
The key combination "CTRL + b" is the default prefix in TMUX. If you want to type any command to TMUX, then type "CTRL + b" first, and then use any of the following commands:
" | split pane horizontally |
% | split pane vertically |
arrow key | switch between panes |
c | create a new window |
n | move to the next window (which you can divide into panes again) |
p | move to the previous window |
To exit a window, simply type exit, or hit "CTRL + d".
To enable synchronization, e.g. after logging into 3 nodes in 3 panes within a window, run:
To undo this, go through it again:CTRL+b : set synchronize-panes on
CTRL+b : set synchronize-panes off
If you found this useful, here's more on the same topic(s) in our blog:
- Keystrokes used in top
- How to install and configure Samba on CentOS 7 for file sharing on Windows
- Searching large amounts of files
- Map a socket to a process
- Compare_report
UNIX Health Check delivers software to scan Linux and AIX systems for potential issues. Run our software on your system, and receive a report in just a few minutes. UNIX Health Check is an automated check list. It will report on perfomance, capacity, stability and security issues. It will alert on configurations that can be improved per best practices, or items that should be improved per audit guidelines. A report will be generated in the format you wish, and the report includes the issues discovered and information on how to solve the issues as well.
Interested in learning more?
Interested in learning more?