Tmux: a terminal multiplexer

Tmux is a really useful tool.

You can install:

apt-get install tmux

Then create a new config file:

touch ~/.tmux.conf

A script for launch Tmux (file name testing.app):

source-file ~/.tmux.conf

new-session -s testing -n editor -d

clock-mode

split-window

send-keys -t testing:0 'tail -f /var/log/nginx/access.log' C-m

split-window send-keys -t testing:0 'tail -f /var/log/nginx/error.log' C-m

selectp -t 0

split-window -h

send-keys -t testing:0 'htop' C-m

Executing the script:

tmux -file testing.app attach

An you can see:

Tmux Screenshot

Published on in Systems