When you are working on your computer, you probably need to work with several applications. For example, when I am writing an article, I need to open up applications like Firefox, Hotshots, GIMP, Autokey etc. The standard way is to open the applications one at a time. A more productive way is to open these applications simultaneously with a single command (or mouse click). In this quick tutorial, I will show you how the following can be done: open multiple applications simultaneously in Linux.
Note: This tutorial is done on Ubuntu, but it will work on any Linux distro, and even on Mac.
The way to do this is very simple. All we need to do is to create a bash script that opens these applications simultaneously. This can be easily achieved with the command “
&
”1. Open gedit (or any other text editor).
2. Paste the following commands:
#!/bin/bash application1 & application 2 & application3Replace “application1″, “application2″ etc. with the name of the application that you want to launch.
For example, to launch Firefox, GIMP and Hotshots simultaneously, the commands would look like this:
#!/bin/bash firefox & gimp & hotshots |
4. Next, give the file an executable permission.
chmod +x blogging-apps
|
Integrating with Synapse
If you are using Synapse to launch applications, you will find that this trick won’t work. Selecting the file will open it in Gedit (or your default text editor) instead of running the command. To overcome this, you can move the script to the “/usr/bin/” directory. All the files in this folder are treated as commands rather than text file.sudo cp blogging-apps /usr/bin/blogging-apps |
Enjoy!