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 to open a “-” dashed filename using terminal?
- How do I pause my shell script for a second before continuing?
- How to execute a program or call a system command?
- Git is not working after macOS Update (xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools)
- Get underlined text with Markdown
- Git is not working after macOS Update (xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools)
- 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?
- Use Device Login on Smart TV / Console
- What does export PS1=”\[\033[36m\]\u\[\033[m\]@\[\033[32m\]\h:\[\033[33;1m\]\w\[\033[m\]\$ ” mean in MacOS’ bash Terminal?
- Get underlined text with Markdown
- Cannot read property ‘push’ of undefined when combining arrays
- How do I execute a bash script in Terminal?
- Why does Ruby on Rails use http://0.0.0.0:3000 instead of http://localhost:3000?
- What does the “map” method do in Ruby?
- What does the Pydoc module do?
- Why is the apt-get function not working in the terminal on Mac OS X v10.9 (Mavericks)?
- Terminal error: zsh: permission denied: ./startup.sh
- How to write a switch statement in Ruby
- How to switch Python versions in Terminal?
- Node Version Manager install – nvm command not found
- How to clear the interpreter console?
- Parsing a JSON string in Ruby
- How to reload .bashrc settings without logging out and back in again?
- 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
- Ruby: Can I write multi-line string with no concatenation?
- SyntaxError: Unexpected Identifier in Chrome’s Javascript console
- mvn command not found in OSX Mavrerick
- How to update Ruby Version 2.0.0 to the latest version in Mac OSX Yosemite?
- Why use Ruby’s attr_accessor, attr_reader and attr_writer?
- How to print colored text to the terminal
- How to clear the console?
- Getting Keyboard Input
- What does %w(array) mean?
- How can I write to the console in PHP?
- keep getting “? Something is already running on port 3000” when I do npm start on react app
- Reading \r (carriage return) vs \n (newline) from console with getc?
- How to update Ruby with Homebrew?
- What’s the difference between console.dir and console.log?
- How to use “gets” and “gets.chomp” in Ruby
- Getting a substring in Ruby by x number of chars
- Change default title in mac terminal window
- How to check whether a string contains a substring in Ruby
- sudo: port: command not found
- restart console on Minecraft Server
- cp: missing destination file operand after
- How can I get the application’s path in a .NET console application?
- 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]
- List of ANSI color escape sequences
- What does << mean in Ruby?
- curl: (6) Could not resolve host: google.com; Name or service not known
- Unable to install gem – Failed to build gem native extension – cannot load such file — mkmf (LoadError)
- Console.log not working at all
- What is attr_accessor in Ruby?
- ActionController::UnknownFormat
- What does ||= (or-equals) mean in Ruby?
- How to read lines of a file in Ruby
- Array to Hash Ruby
- How to open the terminal in Atom?
- Can’t run C program: “a.out: command not found”
- Clear terminal in Python [duplicate]
- 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?
- How to edit a py file from terminal?
- adb command not found
- Ruby: undefined method `[]’ for nil:NilClass when trying to get Enumerator on an Array of Hashes
- Difference between “or” and || in Ruby?
- how to print a string to console in c++
- sudo command not found on Cygwin
- How to map with index in Ruby?
- How do I edit $PATH (.bash_profile) on OS X?
- How to keep the console window open in Visual C++?
- Difference between `not` and `!` in ruby
- How to fix request failed on channel 0
- How to use vim in the terminal?
- -bash: export: `=’: not a valid identifier
- How to use vim in the terminal?
- What does this mean in my website console: “JQMIGRATE: Migrate is installed, version 1.4.1 jquery-migrate.min.js?ver=1.4.1:2 “
- PlaySound in C++ Console application?
- warning: constant ::Fixnum is deprecated When generating new model
- OS X cp command in Terminal – No such file or directory
- Ruby equivalent for Python’s “try”?
- What does “+=” (plus equals) mean?
- 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