Command Prompts Flashcards
How to determine current Ruby Installed?
ruby -v
How to determine current Rails Installed?
rails –help
How to select the version of Ruby to use?
rvm use …version number
How do you create a local GIT for your app?
git init
How do you add files to local GIT?
git add . (the dot means the current open directory).
What does the (-m) mean in the following command code?
git commit -m “Rails Beginning App Created Status”
The (-m) means that we are adding a message to our git commit.
How do you see what the current status of GIT is?
git log
What does the following code result in?
rake routes
displays all of the url’s and methods available for use in the application.
pwd
print working directory
hostname
my computer’s network name
mkdir
make a new directory
cd
change directory
ls
list directory
rmdir
remove directory
popd
pop directory
cp
copy a file or directory