Tmux is the best tools for Linuxer
yum install libevent-devel ncurses-devel zsh tmux -y- create your account
useradd test- vim /etc/passwd
# before
test:x:1001:1001::/home/test:/bin/bash
# after
test:x:1001:1001::/home/test:/bin/zsh- create group team
groupadd team- vim /etc/group
# before
team:x:1002:
# after
team:x:1002:root,test- upload tm.conf to /etc/
-
upload tm to /usr/local/bin/
-
change tm permission
chmod 777 /usr/loacl/bin/tm-
upload .zshrc to your $HOME
-
source
source $HOME/.zshrc- then, to get greate experience, we suggest you reboot your machine
rebootby the way, if you do not want to reboot your machine, we suggest you can relogin your terminal
- after reboot/relogin you will look at the effect
test@openEuler ~ % - eg.
account1(root)
tm abcaccount2(test)
tm abcaccount1(root) use tmux(tm abc), account2(test) also use tmux(tm abc),
when account1 is working by operating on his terminal,
account2 will look at account1's operating on her terminal.
- common shortcut keys
# general operation
# create new desktop
ctrl - s c
# quit desktop (save status)
ctrl - s d
# close desktop (not save status)
ctrl - s x
# left/right desktop change
alt - j/k
# previous(last) desktop
ctrl - s p
# next desktop
ctrl - s n
# in one desktop split screen
# left/right split screen
ctrl - s %
# up/down split window
ctrl - s "
# could lookup, by press key 'v' and K(up)J(down)H(left)L(right) to choose your need,
# by press key 'yy' to copy them
ctrl - s {
# use this shortcuts, you can also move your mouse to choose you need
# by press key 'p' paste
ctrl - s }
# full screen this split window
ctrl - s z
# rename screen window's name
ctrl - s ,
As you can see, Tmux is the best tools for Linuxer.
Tmux is just the beginning of Linuxer, never end