Make a script in Terminal
1. Create a file: nano xxxxxxxx 2. Put in your commands that you what to run 3. Save the file (Ctl + O, Return, Ctl + X) 4. Make the file Executable: chmod 0760 xxxxxxxxxx (or chmod 700 xxxxxxxxx) 5. Run the script: ./xxxxxxxxxxxxx