To create at executable chmod 755 FILENAME To write script in Ruby add #!/usr/bin/env ruby to top of file