$ ruby -e 'puts("Hello, world!")' $ ruby -e '"Hello, world!".display' $ ruby -e 'hello = "Hello, world!"; p hello'
$ nano hello.rb #!/usr/bin/env ruby puts("Hello, world!") $ chmod u+x hello.rb $ ./hello.rb