To run a shell script you first give it permissions: chmod u+x nameofthescript Then you run it. Assuming you're in the directory where the script is: ./nameofthescript If it needs to run with root privileges: sudo ./nameofthescript