how to execute a terminal in the background in a bash script code example Example: how to run .sh file in background linux $ nohup ./my-shell-script.sh &