CVS is a version control system. Using it, you can record the history of your (source) files.
Place the following two lines either in .bashrc or .profile file
CVSROOT=~/cvsroot
export CVSROOT
For remote servers - ssh or rsh
CVS_RSH=ssh
export CVS_RSH
cvs -d ~/cvsroot/ init
cd ~/project
cvs import -m "Initial version of project - Project" /project project start
cd ~/project
mkdir module
mkdir module/config
mkdir module/src
cvs import -m "Adding new module - module" /project module start
Then, use cvs add to add files (and new directories)
cd module/src
cvs add module.c module.h
cvs commit -m "Initial version." module.c module.h
cvs co project
If the cvs server has been configured to access it with an account, then
cvs -z3 -d:ext:username@hostname:/project co project
cvs commit -m "message" filename(s)
cvs update
cvs diff filename
cvs add filename or cvs add directoryname
cvs commit
Note: cvs add -kb filename - To add binary file(s)
cvs status filename
cvs log filename
rm filename
cvs delete filename
cvs commit -m "message" filename
cvs status filename
Last modified: 21/January/2009