Команда во все панели tmux
Выполнить команду в каждой панели текущей сессии
tmux list-panes -s -F '#{session_name}:#{window_index}.#{pane_index}' | xargs -I{} tmux send-keys -t {} 'uptime' Enter
more tmux
all 17 commands →
Скриптовая отсоединённая сессия
tmux new-session -d -s work && tmux send-keys -t work 'tail -f /var/log/app.log' Enter
Захват буфера панели
tmux capture-pane -p -S -3000 -t work > /tmp/pane.log
Создать именованную сессию
tmux new-session -s work
Подключиться к сессии
tmux attach-session -t work
Список сессий
tmux ls