Running programs in the background

tux-logoA problem faced by people especially those new to Linux is that they launch programs from the terminal and then open up another terminal to start a new program. Before they know it, the entire desktop gets cluttered with terminal windows. An alternative to the above problem is the use of the '&' symbol passed as a command line argument. See the examples given below,

Method 1 : Run a command –


Method 2 : Run a command in the background –

mozilla & 

Both the above commands will run the Mozilla Web Browser but the second command will free up your terminal or command window once Mozilla launches successfully. But if you want to debug your program or view the output it throws, use Method 1


About synapse
Programming, motorcycles and photography. Want to do more, but only have time for so much!

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: