Ubuntu – How to open an application using the command line and then close the terminal without closing the opened application

command linegnome-terminalterminalUbuntuzsh

If I open an application from the command line, say Firefox, the application runs as long as the terminal stays open. Closing the terminal's tab will close the application.

Is there a way to open an application from the terminal such that the application will stay open even after closing the terminal?

Best Answer

You can open in the background with the addition of an &; disown:

$ firefox &; disown

(Thanks for the correction, I missed the zsh part)

Related Question