Skip to content

Instantly share code, notes, and snippets.

@hochun836
Created July 10, 2021 02:19
Show Gist options
  • Select an option

  • Save hochun836/e4fdbcb7eacf2c0f8c7bff69f43f64de to your computer and use it in GitHub Desktop.

Select an option

Save hochun836/e4fdbcb7eacf2c0f8c7bff69f43f64de to your computer and use it in GitHub Desktop.
# rvm
rvm list // list installed interpreters
rvm list known // list available interpreters
rvm install <version> // install ruby interpreter
rvm use <version> // switch to specified ruby interpreter
rvm remove <version> // remove ruby interpreter (alias: delete)
rvm get <version> // upgrade rvm: stable, master
ls -al ~/.rvm/
# ruby
ruby -h // -h <=> --help
ruby -v // print version number, then turn on verbose mode
# gem
gem -h // -h <=> --help
gem -v // -v <=> --version
gem install <package> // in gem, a package is a gem
gem list // list installed gems
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment