Ask questions, find answers and collaborate at work with Stack Overflow for Teams. Explore Teams Collectives™ on Stack Overflow Find centralized, trusted content and collaborate around the technologies you use most. Learn more about Collectives
この記事の要点 コマンド一撃でtmuxのウィンドウを大量に分割してコマンドの同時実行を助けるxpanes(イクスペインズ)というコマンドを作りました。一斉に複数のホストにpingを送ったり、sshでログインして同時操作したり、一斉に複数のファイルをtail -fしたりするのに使えます。 操作ログの保存機能、標準入力を受け取ってコマンドを作成する機能などなど、機能も充実していて便利です。tmuxを知らない方でも単純な例だけであれば覚えることは少ないので、ぜひお試しを。 下記のアニメを見ていただければ、どんな感じのものを作成したのかお分かりいただけると思います。 Github: https://github.com/greymd/tmux-xpanes 背景 tmuxを使っている方は、どのような用途でtmuxを役立てることが多いでしょうか?開発の効率を上げるため1、あるいは複数のウィンドウ2や
Project #5: Using tmux Properly February 4, 2017 Background I've been using terminal multiplexers for a few years, but never properly. In the beginning, it was just me and the (plain) terminal. Then I started using Byobu, because it was company-standard at my first job. Later I installed tmux on my personal computer because it seemed more popular. And every time I work on a remote server, I use Sc
tmux 1.8 から copy-pipe という tmux のコマンドが追加されました。このコマンド、tmux 上で選択したテキストを、指定した外部コマンドに送ることができます。 このため、直前に書いたtmux 上で pbcopy/pbpaste が動かない問題 - 理系学生日記の内容を前提とすれば、ペーストボードとの連携は大変シンプルに記述できます。copypipe に、reattach-to-user-namespace でラップした pbcopy を指定するだけですね。 bind-key -t emacs-copy C-w copy-pipe "reattach-to-user-namespace pbcopy" ぼくは emacs バインドを使用しているので、ペーストに関係がある部分としては、以下のような内容を設定しています。 set-window-option -g mode-
インフラ担当の池田(@mikeda)です。 tmuxを使い初めて1年くらいになりました。 今日はtmuxの、普段のオペレーションでよく使ってる機能を紹介します。 複数サーバで同時オペレーション tmuxにはキー入力を全てのpaneで同期する機能があります。 この機能を使って複数paneでそれぞれ別のサーバにsshログインすると、 複数サーバに同じコマンドを打ったり、 内容が同じ設定ファイルであればviで同時編集したりができます。 同期する/しないはコマンドでも切り替えられますが、 set-window-option synchronize-panes on set-window-option synchronize-panes off tmux.confにショートカットを設定しておくと便利です。 bind e setw synchronize-panes on bind E setw sy
I want to use a script to open a tmux session with 6 windows, each in a different directory. I started with a script I found and tried this first: tmux new-session -s xyz -n etc -d 'cd /etc' tmux new-window -t xyz:1 -n var 'cd /var/log' But I soon found out that this will not work as I expected — the window will be closed after the shell command completes. So my next idea was to start a new shell
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く