Under Linux, if the shell command you want to execute takes a very long time, and: (1) Your network is unstable, you may be disconnected at any time, or (2) you must close the terminal software (for example, SECURECRT) after executing the shell command.
Here's how:
Nohup your shell Command &
(3) Enter the Exit command to exit the terminal:
(4) You can now close your terminal software, wait for enough time, let your shell command after the execution and then go up to see the results.
The Nohup command allows your shell command to ignore the sighup signal, which can be removed from the terminal and "&" allows your command to run in the background.
Running shell commands in the background in an off-terminal way has several advantages: as long as you have executed the command, your network outage will not have any effect on you, and you can shut down the terminal software.
Running the shell command from the terminal in the background under Linux