Ruby Intro/Commands (I) Flashcards
1
Q
at the command line, check to see which version of Ruby you have
A
ruby -v
2
Q
at the command line, check to see which version of gems you have
A
gem -v
3
Q
enter irb at the command line
A
irb
4
Q
exit irb, go back to the command line
A
exit
5
Q
create a new ruby file
A
touch _______.rb
(name of file)
6
Q
run the code in a ruby file
A
ruby _______.rb
(name of file)
7
Q
escape from a long-running program/frozen program/infinite loop
A
control-c
8
Q
install a gem
A
gem install _________
(name of gem)