This question already has an answer here:
I am going to have multiple machines that I am going to connect to via SSH so I am going to have multiple Terminal windows up, though what I want to do is to execute a command so that all the machines execute it, but currently what I will have to do is execute it in each individual Terminal window, is there any way that I can execute a command in one Terminal which will execute a specified command in all specified Terminal sessions for greater efficiency as I don't want to have to enter it into every individual Terminal window? I am going to be using
gnome-terminal if that makes any difference.
I am running Ubuntu GNOME 15.10 with GNOME 3.18 and the other machines should be running the same.