Friday, March 3, 2017

Top 10 Most useful cvs commands in linux/unix

This article is in continuation of my earlier article Top 10 basic networking Commands in Unix  and 10 tips of working fast in unix  to read more see here 10 tips of using find command in linux.

Here is my list of most useful commands in Linux , its important that we know this and use it regularly while working with files folders which is in CVS.

Checking out code
cvs co –A folder or filename ( -A means head , this will checkout from head)
cvs co -rtag1 folder or filename (-r means tag or branch, this will checkout from tag "tag1")
cvs co -rbranch1 folder of filename ( checking out from cvs branch)

Adding new file in CVS
CVS add filename (adss  file provided by filename into CVS)
Cvs commit –m “subject” filename (commit recently added or already added file into CVS)

Updating file from CVS
Cvs update filename (update file name from where it has downloaded e.g. head or branch)
cvs update -A filename ( update file from head)
cvs update -A (update file from head)

Checking status of file
cvs status filename (shows status of filename from where it has downloaded etc)
cvs status (shows cvs status of file

Review a file's history tags
cvs log | less  (This is most useful cvs command it helps to find out all the tag and cvs          branches a file has present)

CVS Help
cvs –help  (Important to know this command provides all information related to cvs commands)

Difference between two CVS tags
cvs diff -rtag1 -rtag2 
(Shows difference between two CVS tags tag1 and tag2 for a particular CVS module , you can run this command by going into that module or from CVS root directory by providing module name e.g. cvs diff –rtag1 –rtag2 project/currentproject )

I hope this short tutorial and list of cvs commands will be useful for you guys. This list is by no means complete so please share how are you using cvs in unix or Linux.

If you are using MySQL as your database you may find my MySQL command tutorial series useful.
Further Learning
Linux Command Line Interface (CLI) Fundamentals
Linux System Administration Fundamentals
How Linux Works: What Every SuperUser Should Know

Related UNIX Command Tutorials
  • 10 examples of find command in UNIX (examples)
  • 10 examples of grep command in UNIX (examples)
  • 10 examples of date command in Linux (examples)
  • How to get IP address from hostname and vice-versa in Linux (command)
  • 10 examples of xargs command in Linux (examples)
  • 10 examples of tar command in UNIX (examples)
  • 10 examples of Vim in UNIX (examples)
  • How to create, update and delete soft link in UNIX (command)
  • How to delete empty files and directory in UNIX (solution)
  • UNIX command to find the size of file and directory? (command)
  • 5 examples of sort command in Linux (examples)
  • 5 examples of kill command in Linux (examples)
  • 10 examples of chmod command in UNIX (examples)
  • 10 tips to work fast in UNIX? (tips)

Thanks for reading this article so far. If you like this article then please share with your friends and colleagues. If you have any questions or feedback then please drop a note.


Anonymous said...

How to see the list of files in CVS?

Anonymous said...

is there anybody still using CVS in 2014?

Anonymous said...

we even do in 2015 and pretenting to have a state of the art system as in 1995 ;-0

Post a Comment