Let's take example of a command "example-command".
- I open terminal
- I write
example-command
in terminal, andexample-command
executes. - Now if I close terminal,
example-command
gets killed too. - I now try with "
example-command &
", but the same behaviour.
How do I execute a command so that when I close the terminal, the command doesn't get terminated?