tmux is software application providing a command line interface and also allowing user to access multiple separate terminal sessions inside a single terminal window or remote terminal session. While you work with Amazon Web Services(or any other cloud computing platform like Google Cloud Platform or Microsoft Azure) it helps to create a separate session for each individual and then they can work on it.
While you are working with Amazon Web Services or any other remote computing service that provides Servers to you or to your company. You can create new EC2 instance on it or if company provide you the key of the instance you can easily create sessions and work on it.
(First of all install Git Bash, assuming that we are working with Ubuntu instance server in AWS)
1) Before creating a session ,you must have a key file downloaded and from AWS console instance See this and IP address copied from your AWS console . If you are working in a organization where they use AWS then they will provide you these two things.
2) Now move to that directory containing that key file,then right click and Open Git Bash.
ssh ubuntu@YOURIP -i eg
Enter IP of the instance in place of YOURIP and then enter yes
3) Now type,
tmux new-session -s EnteranySessionName
To come out of Session
Then press D
Now you are out of it.
4) Then you can list session here by
5) Now you have successfully started you tmux session
If you want to kill session, then
tmux kill-session -t shantanu
You are ready to go, these are the basics of tmux. For some more commands of tmux, you can refer this
Keep learning and keep contributing to the world.
This article is contributed by Shantanu Sharma. If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to firstname.lastname@example.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please write comments if you find anything incorrect, or you want to share more information about the topic discussed above.
- Working with Magic numbers in Linux
- Working with zcat, zmore and zless Command in Linux
- What is Bluejacking?
- init command in Linux with examples
- Advance File Permissions in Linux
- Link your GitHub Account with R Studio
- Virtual Machine for Malware Analysis
- How to Publish Your Android App on Google Play Store?
- at Command in Linux with Examples
- Difference Between Fedora and Kali Linux
- How to Hack WPA/WPA2 WiFi Using Kali Linux?
- Difference Between Arch Linux and Kali Linux
- How to Change the username or userID in Kali Linux?
- Kali Linux - Command Line Essentials