How to run a .sh file using nohup in Linux?

To run a shell file using the nohup command, you can follow these steps:

  1. Open a terminal or SSH session.
  2. Change directory
  3. nohup command
  4. Run the shell script named “filename.sh” in the background using nohup.
  5. The shell script will continue to run in the background even after closing the terminal or SSH session.

Please note that you need to replace “filename.sh” with the actual name of the shell file you want to run. Additionally, the “&” symbol is used to run the command in the background so you can continue using the terminal or SSH session.

Leave a Reply 0

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