A very useful tool.
Create new session:
tmux new -s radu-root
tmux new -s radu-sqlplus
tmux new -s radu-work
To dissconect from a session you are already in, I use Ctrl+b followed by pressing the d key.
To re-attach to a session and continue where you left you need to figure out which session you want to attach to first. List the currently running sessions by using
# tmux ls
import: 1 windows (created Wed Feb 15 08:49:22 2023) [210x45] (attached)
To re-attach the session called import:
# tmux attach -t import
Command prefix
An important concept is the command prefix which is basically a prefix that should be typed so what follows after is understood as a tmux command and not a command for the shell. By default, the prefix combination is ctrl+b. The default value can be customized if needed.
Working with panes
It is possible to split the screen into several panes:

In order to split vertically, one can use the combination PREFIX+%.
To split horizontally, the combination PREFIX+” would do the trick.

To kill a pane, there are different options:
- Type exit in the relevant pane
- Type PREFIX+x. This option will require confirmation:



Leave a Reply