Ubuntu Run scripts and Schedule Using tmux

If you are looking to create microservices, schedule tasks, or you plan on running scripts in ubuntu, you will need a tool that will allow for such things.

Tmux is a tool that allows multiple sessions that can be “detached” from and thus continue running even when no terminal windows are open.

First lets start with Tmux. There is a great detailed explanation of Tmux at the link provided. Thank you for your wealth of general knowledge Wikipedia.

Pleasantries aside, To install tmux simply open a terminal session and type

sudo apt install tmux

Flow through and finish the installation. Press Y for yes when necessary and when the installation completes, you are done installing tmux. Tmux is a safe reliable tool.

Play around

If you are new to tmux play around with it a bit. You can use the commands below to do a decent number of things that is more than enough for further parts in this series.

Commands

Start a new session type >> tmux

Keep a session running and leave tmux type >> ctrl + b then d

Kill a session you are in >> ctrl + b then type >> kill-session

Rename a session >> ctrl + b then $

Next

To continue learning about running scripts in ubuntu please check out:

Part 2 – Creating a script that can run in the background >> Coming Soon

Do you have more useful commands for tmux?

Feel free to add them here

1 Reply to “Ubuntu Run scripts and Schedule Using tmux”

Leave a Reply