Sunday, May 31, 2009

Linux commands

Apache2

sudo /etc/init.d/apache2 start *start server
----------------------------------- restart *restart server
------------------------------------ stop *stop server

PS: Apache config file is in apache2.conf , not httpd.conf

MySql

mysql -u root -p * log into mySql


Subversion

guest01@guest01-desktop:/var$ sudo svn import www file:///var/lib/svn/repos1 \-m "test import" *add files to repository , need to cd to the folder

svn list file:///var/lib/svn/repos1/ *list file inside the repository

sudo svn checkout file:///var/lib/svn/repos1 *checkout file from the repository(make a copy of the files )

guest01@guest01-desktop:/var/lib/svn/repos1/repos1$ svn diff * see the differences between the current version and working copy
Index: index.html
===================================================================
--- index.html (revision 1)
+++ index.html (working copy)
@@ -1 +1 @@
-It works!
+Higashi no edenHi there!
Keep updating...

No comments: