Перейти к содержимому

Run Multiple Command Line Apps at once Using Tmux Terminal Multiplexer

Brian Schell

0:00 / 0:00

Run Multiple Command Line Apps at once Using Tmux Terminal Multiplexer

10 539 просмотров · 7 лет назад
Brian Schell
925 подписчиков
10 539 просмотров · 7 лет назад
We've covered a lot of apps already, and this is only video fifteen. One problem we often run into is that command line apps want to fill the entire screen, and that makes it difficult to run more than one app at a time. Today we look at a way to get multitasking! In this video, I demonstrate how to set up Tmux, the terminal multiplexer, on your local machine or remote server. We'll set up split panes, move between them, resize them, and detach and attach sessions easily. We'll also very briefly look at the .tmux.conf configuration file. It'll make your remote sessions a LOT more efficient and productive, and you only need to remember just a few keyboard commands. Discussed in the video: Install Tmux: sudo apt install tmux Creating Panes (or split): ctrl-b then % (down the middle) ctrl-b then " (Across) Manipulating Panes: Switch: Ctrl-b + arrow keys Resize: Ctrl-b + : (colon) then resize-pan -U 5 (or -D, -R, -L) Sessions: list sessions: Tmux ls Attach: tmux attach-session -t 1 (session number) Not mentioned in video: New named session: new -s "name of session" Attach to named session: tmux a -t "name of session" My referral code for Digital Ocean is: https://m.do.co/c/e3b2745ebe49 pick up the book at http://goingtext.com/book