Ticker

6/recent/ticker-posts

How to install tmux in Termux?

What is tmux?

I love working with the command line. I think there’s hardly any more productive and versatile tool for a software developer than the terminal. The additional hacker, wizard, neckbeard kind of feeling you get when using a terminal comes for free, what’s not to love?

What is tmux?

Over the years I’ve tried to streamline and customize my command line experience to be more convenient, more fun to use or just to look rad. One of the most important tools to drive my daily command line experience is tmux. Tmux is a terminal multiplexer, It enables a number of terminals to be created, accessed, and controlled from a single screen. tmux may be detached from a screen and continue running in the background, then later reattached.


What is tmux?

First of all Install the Termux app from google Plays tore or from F-droid. Also install hackers Keyboard app for better control over Termux.

After installing the app run the following commands below:

  • pkg update
  • pkg upgrade
  • pkg install tmux
  • tmux

If you want to use this command than first you need to type CTRL + b after than the Command.

Command Description
% Vertical Split
" Horizontal split
z Full screen mode for current pan
o Go to next pane
X Kill pane

Eg : To split a screen in vertical orientation your need to first type CTRL + b after than " % " percentage symbol.

------------------------------------------------------------------------------------------------

This are the command commonly use there are more advance thing which I will covering in the part 2. Here are some of the extra command which will be useful


Note : For this command you don't need to type CTRL + b .     

           
Command Description
tmux Start tmux
tmux new -s "name" Start tmux with "name"
tmux ls Show the list of session
tmux kill-session -t "name Kill the session "name"
tmux kill-server Stop the program


To get all the command list type CTRL + b and then "?" question mark.

Conclusion; In this tutorial, you learned how to use Tmux. Now you can start creating multiple Tmux windows in a single session, split windows by creating new panes, navigate between windows, detach and resume sessions, and personalize your Tmux instance using the .tmux.conf file.

Post a Comment

0 Comments