0 How to create scripts in terminal Follow three simple steps to automate your terminal. Create a script Set the permissions Execute the script Create a script test.sh $vi test.sh ls -la echo 'Hello Bash!' Set the permissions $sudo chmod 777 test.sh Execute the script $./test.sh mac 28 bash 18 automate 2 Please enable JavaScript to view the comments powered by Disqus.