how to run a process after closing the terminal

i want to execute a shell script even if the terminal is closed. how to do?

man nohup

<message too short>

execute it as background process

script&

Executing the process from the background using the ampersand (&) at the end of the command and closing the terminal/shell will result in the command getting interrupted/exiting.

nohup will work and so will screen. Have a look at the screen command.

man screen

You will need the screen package installed first.