title: Make statement executable
body: <p>I am new to writing scripts. I know how to make a script executable in terminal using chmod u+x . However I am looking for a way to make to make statements in the said script be run when that script is executed. For example my scrip1 file contains a statement, " sudo yum update" How do I write that statement in the script1 file so that when the script1 file is executed, the above statement is run.</p>