Skip to main content

TMUX-Terminal multiplexer for Linux

TMUX

Tmux is a terminal multiplexer, it creates multiple terminals on the same tab enable you to see multiple running objects on the same tab

when tmux is started it creates a new session with the single window and displays it on the terminal screen. A session is a collection of terminals on single screen

You can install tmux:

Method 1

$ sudo apt-get install tmux 

Method 2

$ wget https://github.com/libevent/libevent/releases/download/release-2.1.8-stable/libevent-2.1.8-stable.tar.gz
$ tar xzvf libevent-2.1.8-stable.tar.gz
$ cd libevent-2.1.8-stable
$ sudo ./configure --prefix=/usr/local && make
$ wget https://github.com/tmux/tmux/releases/download/2.3/tmux-2.3.tar.gz
$ tar xzvf tmux-2.3.tar.gz
$ cd tmux-2.3
$ LDFLAGS="-L/usr/local/lib -Wl, -rpath=/usr/local/lib" && ./configure --prefix=/usr/local
$ sudo make && sudo make install
$ export PATH=$PATH:/usr/local/bin

After the installation is finished, then type tmux on terminal.

TMUX CHEAT SHEET

1) To create a new Session

$ tmux new-session -s working

2) Create a session that shares with existing session

$ tmux new-session -s workingpython -t working

3) Attach a Session

$ tmux attach -t workingpython

4) Keyboard to just detach the session so hit C-a d

5) Keyboard shortcuts to switch between the sessions

a) Previous Session  C-a (

b) Next Session C-a )

c) List Session C-a s

6) Create a window C-a c

7) Switch between window C-a 1   Switch between window 1,2,3,4,5,6,7,8,9,0

8) Switch next window C-a n

9) Switch previous window C-a p

10) Create a pane in existing window by splitting vertically C-a "

11) Create a pane in existing window by splitting horizontally C-a %

12) Switch between pane in existing window C-a left  (left, right, up, down)






Comments

Popular posts from this blog

StandAlone Apache Storm Installation in Ubuntu 14.04 LTS

Deploying Apache Storm  1) If Java 7 is not present, please install it. 2) Zookeeper Installation Download zookeeper-3.4.6 from Apache site       $ tar -xvf zookeeper-3.4.6.tar.gz       $ cd zookeeper-3.4.6/       $ cp conf/zoo_sample.cfg conf/zoo.cfg       $ bin/zkServer.sh start 3) Storm Cluster Installation Download the storm tarball from official Apache Mirror.  Untar it.       $ tar xzvf apache-storm-0.9.2-incubating.tar.gz Move to new directory.       $ sudo cp -R apache-storm-0.9.2-incubating /usr/lib/ Go to /usr/lib/apache-storm-0.9.2-incubating/ and configure storm.yaml present in conf folder, add the followuing line, this folder must have write permissions too. storm.zookeeper.servers:     - "localhost" storm.zookeeper.port: 2181 nimbus.host: "localhost" storm.local.dir: "/var/stormtmp"    ...

Replace GRUB With BURG to Beautify Boot Menu, Install in Ubuntu via PPA

Burg is boot loader forked of GRUB loader. It uses a new object format which allows it to be built in a wider range of OS, including Linux/Windows/OSX/Solaris/FreeBSD, etc. It also has a highly configurable menu system which works in both text and graphic mode. Additional features like stream support and multiple input/output device are also planned for BURG. BURG features superior theming and has a highly configurable menu system which works at boot time in both text and graphical mode. Since BURG is derived from GRUB, its configuration is similar in most respects. The main configuration file is /boot/burg/burg.cfg  and is usually generated automatically. You can create one by yourself or use  grub-customizer  to modify BRUG entries and other stuff. You can even design theme for BURG checkout this  link  for more details about BURG. All below images are from Noobslab Available for Ubuntu 14.04/14.10/12.04/Linux Mint 17/13 To install Burg with...

Google2Ubuntu speech recognition tool for linux Ubuntu 13.10

Google2Ubuntu is a tool that lets you control your computer using voice commands via the Google speech recognition API. Install Google2Ubuntu Google2Ubuntu is available in a PPA for all supported Ubuntu versions. Add the PPA and install it using the following commands: sudo add-apt-repository ppa:benoitfra/google2ubuntu sudo apt-get update sudo apt-get install google2ubuntu I tested the application under Ubuntu 13.10 and 14.04 so I'm not sure if it works properly with older Ubuntu versions. How to configure and use Google2Ubuntu 1. Once installed, you need to set up a keyboard shortcut for triggering Google2Ubuntu. When you use this keyboard shortcut, the Google2Ubuntu speech recognition will be activated, listening for your command (a sound and a notification will be displayed, telling you when to speak). Let's add the keyboard shortcut: - in Unity/GNOME , open System Settings > Keyboard > Shortcuts , then click on Custom Shortcuts on the ...