Some useful commands in Linux administration when making a website.
This is a cheatsheet of useful commands in Linux administration when making a website in Rails. I am using these commands over and over again so I thought it might help someone.
Linux
Detailed list of files:
ls -l ps -e mkdir demo fuser -k 3005/tcp rm demo/ -r -f -v crontab cron_job.txt crontab -l crontab -e sshfs ‘-oworkaround-rename’ username@ssh.domain.com: /home/username/remote/ MySQL
Connect to mysql local server:
mysql -u username -p mysql -u username -h mysql.domain.com -p CREATE DATABASE demo_development;
CREATE DATABASE demo_test;
CREATE DATABASE demo_production; Rails
Create a rails app:
rails demo script/plugin install git://github.com/pullmonkey/open_flash_chart.git script/plugin install git://github.com/pullmonkey/open_flash_chart.git –force script/server -p 3005 script/console development script/console production rake db:migrate rake db:migrate VERSION-22 rake db:migrate RAILS_ENV-production gem install RedCloth gem install -v-2.0.2 rails Git
Checkout a repo (svn meaning):
git clone git://github.com/pullmonkey/open_flash_chart.git git diff git pull git checkout git branch mybranch git config –global user.name "toto"
git config –global user.email "toto@example.com" Posted in Linux | 2 comments | atom
home
about
archives
