Monday, July 8, 2013

Linux commands

Removing a directory that is not empty:
rm -Rf directory-name

Sublime Text:
http://www.dilipprajapati.com/2012/12/22/sublime-text-2-as-default-editor-in-ubuntu-12-04/

Rails, RVM:
https://rvm.io/integration/gnome-terminal
http://ryanbigg.com/2010/12/ubuntu-ruby-rvm-rails-and-you/
http://stackoverflow.com/questions/9056008/installed-ruby-1-9-3-with-rvm-but-command-line-doesnt-show-ruby-v/9056395#9056395

Is MongoDB running:
http://stackoverflow.com/questions/5091624/is-mongodb-running
check with either:
   ps -edaf | grep mongo   # "ps" flags may differ on your OS
or
   service mongodb status
Useful rvm commands to manage ruby versions using rvm:
http://stackoverflow.com/questions/8868555/how-do-i-uninstall-ruby-and-gems-using-rvm
Basically taken from http://beginrescueend.com/rvm/:
To list the available ruby versions to install type:
rvm list known
To then install from the list of known, type:
rvm install VERSION_NUMBER
To then use the ruby version you have installed:
rvm use VERSION_NUMBER
You can make a certain ruby version your default system version:
rvm use VERSION_NUMBER --default
To remove the ruby version, keeping the gemsets:
rvm uninstall VERSION_NUMBER
To remove ruby et al:
rvm remove VERSION_NUMBER
To learn about your ruby environment and where they are installed/aliased:
rvm info

No comments:

Post a Comment

Followers

Blog Archive