If Ruby is installed, then
ruby yourfile.rb
where yourfile.rb
is the file containing the ruby code.
Or
irb
to start the interactive Ruby environment, where you can type lines of code and see the results immediately.
Related Posts:
- How to run Ruby code from terminal?
- %i or %d to print integer in C using printf()?
- How do I pause my shell script for a second before continuing?
- How to execute a program or call a system command?
- What is the meaning of *nix?
- Cannot read property ‘push’ of undefined when combining arrays
- “Couldn’t find a file descriptor referring to the console” on Ubuntu bash on Windows
- Why use conio.h?
- Get underlined text with Markdown
- Why does Ruby on Rails use http://0.0.0.0:3000 instead of http://localhost:3000?
- What does the Pydoc module do?
- Why is the apt-get function not working in the terminal on Mac OS X v10.9 (Mavericks)?
- Parsing a JSON string in Ruby
- Tell Ruby Program to Wait some amount of time
- Rails 5 ActionController::InvalidAuthenticityToken error
- How to clear the interpreter console?
- what does ? ? mean in ruby
- How to update Ruby Version 2.0.0 to the latest version in Mac OSX Yosemite?
- How to print colored text to the terminal
- How to clear the console?
- Reading \r (carriage return) vs \n (newline) from console with getc?
- What’s the difference between console.dir and console.log?
- Getting a substring in Ruby by x number of chars
- How to check whether a string contains a substring in Ruby
- restart console on Minecraft Server
- cp: missing destination file operand after
- mvn command not found in OSX Mavrerick
- Ruby: How to install a specific version of a ruby gem?
- class << self idiom in Ruby
- How to print colored text to the terminal
- ruby operator “=~” [duplicate]
- What does << mean in Ruby?
- curl: (6) Could not resolve host: google.com; Name or service not known
- Console.log not working at all
- What does ||= (or-equals) mean in Ruby?
- Cannot load such file — bcrypt_ext
- How do I remove Permission denied @ rb_sysopen – Gem install error?
- When to generate a new Application Key in Laravel?
- adb command not found
- How to fix request failed on channel 0
- How to use vim in the terminal?
- -bash: export: `=’: not a valid identifier
- PlaySound in C++ Console application?
- warning: constant ::Fixnum is deprecated When generating new model
- Rails 4 RoutingError: No Route Matches
- How to sum array of numbers in Ruby?
- Ruby array to string conversion
- gcloud command not found – while installing Google Cloud SDK
- How to check if a value exists in an array in Ruby
- psql: FATAL: role “postgres” does not exist
- Multi-Line Comments in Ruby?
- How to uninstall ruby installed by ruby-install
- How to clear console in Java – Eclipse
- node.js: cannot find module ‘request’
- How to use the console within Sublime Text
- Mac install and open mysql using terminal
- Removing all installed Gems and starting over
- Ruby `send` vs `call` method
- Display current path in terminal only
- How do I add a newline using printf?
- Run script on mac prompt “Permission denied”
- bcrypt LoadError: Cannot load such file
- Rails: I installed Ruby, now “bundle install” doesn’t work
- How to do a newline in output
- Ruby String to Date Conversion
- Finding text inside a folder using terminal
- Determining type of an object in ruby
- What does @@variable mean in Ruby?
- Difference between rake db:migrate db:reset and db:schema:load
- Java console program
- gdb debugging in Terminal OS X (10.8.5) with zsh
- How to Uninstall RVM? [duplicate]
- TypeError: no implicit conversion of Symbol into Integer
- Equivalent of “continue” in Ruby
- What does the Ruby method ‘to_sym’ do?
- Difference between map and collect in Ruby?
- How to search in commit messages using command line?
- Text progress bar in terminal with block characters
- Rails button_to vs. HTML Button Tag
- Array to Hash Ruby
- How to stop (and restart) the Rails Server?
- Getting error: dyld: Symbol not found: _clock_gettime
- Uninstall old versions of Ruby gems
- How to navigate to to different directories in the terminal (mac)?
- How to understand strptime vs. strftime
- How can I delete one element from an array by value
- How do I update zsh to the latest version?
- How to break out from a ruby block?
- ERROR: While executing gem … (Gem::FilePermissionError)
- No such file or directory @ rb_sysopen ruby
- How to add to an existing hash in Ruby
- How to open Console window in Eclipse?
- What is the jmpq command doing in this example
- How to convert a string to lower or upper case in Ruby
- Open Sublime Text from Terminal in macOS
- What is the canonical way to trim a string in Ruby without creating a new string?
- No implicit conversion of String into Integer (TypeError)?
- Why do consoles sometimes hang forever when SSH connection breaks?
- How to check if I’m in screen session?
- How can I find the path to an executable in OSX