How can i change Terminal Settings to automatically close terminal after Execution using shell script
You can exit the terminal by calling to two commands after each other, execute script and then exit

$&gt; myScript.sh &amp;&amp; exit