250
Views

You may have noticed that when you run an application from the Linux terminal, it binds or locks to the window that it was opened from. There is a quick way to open the process detached or separate from the terminal.

Running the command.

I will use owncloud in this example.

owncloud

You will notice that the application starts and is running (the blue cloud) but the terminal window is locked to the window. Interrupting the terminal will close the application.

run-app

To start the application as an independent process, you will want to add an “&” to the end of the command. You will notice that the example shows a process id listed after the command and then a waiting prompt for additional commands.

owncloud &

Here is the output.

starting-app

Conclusion

This may seem like a simple concept but if you want to write a bash script that will start an app or call one for a brief moment, this will become a valuable concept.

 

Article Tags:
Article Categories:
Tech
SDATIC

Web developer and former photographer by trade...gamer and all around tech enthusiast in his free time. Christoph started sdatic.com as a way to organize his ideas, research, notes and interests. He also found it enjoyable to connect and share with others who parallel his interests. Everything you see here is a resource that he found useful or interesting and he hopes that you will too.

Leave a Reply

Your email address will not be published. Required fields are marked *