Ruby Intro/Commands (I) Flashcards

1
Q

at the command line, check to see which version of Ruby you have

A

ruby -v

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

at the command line, check to see which version of gems you have

A

gem -v

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

enter irb at the command line

A

irb

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

exit irb, go back to the command line

A

exit

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

create a new ruby file

A

touch _______.rb

(name of file)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

run the code in a ruby file

A

ruby _______.rb

(name of file)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

escape from a long-running program/frozen program/infinite loop

A

control-c

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

install a gem

A

gem install _________

(name of gem)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly