Pawan Bahuguna

Let's Learn and Share
Menu
  • Home
  • Free Books
  • RHEL 7 Books
  • Practice Papers
  • Contact
  • Privacy

Preparing for RHCSA or RHCE Certification? >>> Check RHEL 7 : RHCSA & RHCE Practice Papers

YES, Show Me Sample Papers.
Home
Linux
Executing the Same Command on Multiple Unix-Linux Terminals
Linux

Executing the Same Command on Multiple Unix-Linux Terminals

Pawan Bahuguna

Many times it happens when we have to run one single command on different Unix/Linux server simultaneously. Running same on command on different servers at the same time not only saves time but also helps in comparing data between servers instantly. In this tutorial will see “how to execute the same command on multiple Unix-Linux terminals” simultaneously.

 

Run Same command on Multiple Unix Linux Terminals

 

We can run a single or multiple commands on different Unix boxes with the help of a small bash script. But, what if our SSH client gives us the capability to run the command on multiple Linux/Unix terminal.

So, one of the SSH client or enhanced terminal for Windows which has this multi-execution facility is MobaXterm, which comes with many other features and functionality, which we will discuss in another article.

 

Steps to Execute the Command on Multiple Unix-Linux Terminals

 

Below are the simple to follow steps to run the command on multiple Linux-Unix terminals.

Advertisements

1. Download MobaXterm and install it. The free version of MobaXterm can give you many features including multi-execute, multi-paste, etc.

 

2. Take SSH session of multiple servers in MobaXterm. For this tutorial, I have only taken 2 terminal. The terminal will be organized in tabbed form.

 

3. Once your different terminals are open, just click on “MultiExec” as shown in below screenshot. Once you click that button, the screen will be split into 2 parts if you have 2 terminal opened and so on.

 

Multiple execution Option in MobaXterm

 

4. Now you can run your command on any one terminal and it will automatically run on all the terminals like below.

 

Multi Execution Mode Linux Mobaxterm

 

5. Once you are done, you can click on “Exit Multi-execution mode” to exit this mode. At any time, if you don’t want to run the command on any particular or many terminals, you can use “Disable this terminal from MultiExec mode” option available at the bottom left of each terminal.

 

Do check below video which will show you live how to run the command on multiple Unix Linux terminals.

 

SUBSCRIBE NOW

 

Hope you like this tutorial and if you do, don’t forget to share this article with your peers. Do let me know what are your thoughts on this article through your comments and also, let me know what other ssh programs you are using for windows which allows you to run or execute the command on multiple Linux terminals.

Incoming search terms:

  • https://www pawanbahuguna com/execute-command-multiple-unix-linux-terminal/
  • mobaxterm multiple sessions
  • ssh script to run command on multiple servers

Show your love by Sharing:

  • Click to share on Facebook (Opens in new window)
  • Click to share on Twitter (Opens in new window)
  • Click to share on WhatsApp (Opens in new window)
  • Click to share on Reddit (Opens in new window)
  • Click to share on Tumblr (Opens in new window)
  • Click to share on Pinterest (Opens in new window)
  • Click to share on LinkedIn (Opens in new window)
  • More
  • Click to share on Telegram (Opens in new window)
  • Click to print (Opens in new window)
  • Click to email a link to a friend (Opens in new window)
  • Click to share on Skype (Opens in new window)
  • Click to share on Pocket (Opens in new window)
Share
Pinterest
Linkedin
Tweet
Google+
Stumble
Email
Prev Article
Next Article

Related Articles

I RAN rm -rf on Root Filesystem
We keep on listening that there are dangerous commands in …

I RAN “rm -rf” on Root Filesystem (rm -rf /)

Password less ssh
Sometimes, as a Linux/Unix system admin, you require to login …

2 Simple Steps to do Passwordless SSH

Tags:Fun With Linux How To Kali Linux Linux Linux Basics Tips Tutorial

Leave a Reply

Cancel reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

 

Find a domain starting at $0.48

powered by Namecheap

Like Our Book

Like Our Book

Lets Connect

  • Popular
  • Recent

Free Newsletter

Subscribe NOW!

We don’t spam! Read our privacy policy for more info.

Check your inbox or spam folder to confirm your subscription.

Pawan Bahuguna

Let's Learn and Share
Copyright © 2023 Pawan Bahuguna
Home | Privacy Policy | Contact