coolcommands.com - the search engine for unix sysadmins :: unix commands and scripts
Sunday May 27, 2012


 Home
 Search
 Advanced Search
 Category Search
 Affiliates
 Acknowledgements
 Cool Links

Username

Password

Remember me
Forgot your password?
Create an account

Who's Online
We have 22 guests online

Newest Member

beyondimagem

Hit Counter
9133536 Visitors

cool Statistics
coolcommands:1330
Categories:83
Total queries:595500
Members:16437





Category Search coolcommands.com
Select Category:


coolcommand

rcs - revision control system
Description

RCS - revision control system

Allows you to keep every version of your file or script with logs and to restore any previous version easily.

Avoids having to find .old, .orig, and .bak files all over your filesystems!

The first time you want to put a file under RCS control, create a directory called RCS:

# mkdir RCS

This is where the version controlled file will be kept.

To checkin a file:

# ci -u filename

Enter a description of the change made and terminate with a dot (.) o on a blank line:

If this is the first time you checkin a file, you will see a message like this:

# ci -u test.sh
RCS/test.sh,v <-- test.sh
enter description, terminated with single '.' or end of file:
NOTE: This is NOT the log message!
>> Script test.sh to demo RCS.
>> .
initial revision: 1.1
done
#

To checkout a file for modification:

# co -l test.sh
RCS/test.sh,v --> test.sh
revision 1.1 (locked)
done
#

Make your changes and then checkin your file. If no changes were made, the following message will be displayed:

# ci -u test.sh
RCS/test.sh,v <-- test.sh
file is unchanged; reverting to previous revision 1.1
done
#

To see history of changes on a RCS controlled file:

# rlog test.sh

To unlock a file that someone else has a lock on (as root):

# rcs -u test.sh
RCS file: RCS/test.sh,v
1.1 unlocked
done
#
Example

ci, co, rlog, rcs, ci -u file, co -l file, rcs -u file, rlog file

Return to search results

Random coolcommands

coolcommand: how to tar and zip a complete directory
Example: tar cf - foo | gzip > foo.tar.gz
[show me the details]
coolcommand: How to find if you're running a 32 or 64 bit kernel in Linux
Example: uname -m
[show me the details]
coolcommand: format - how to label a disk in Sun Solaris
Example: format; label; quit
[show me the details]
coolcommand: how to find which disks are in a volume group in AIX
Example: lsvg -p rootvg
[show me the details]

coolcommands.com - the search engine for UNIX sysadmins :: unix commands and scripts



FREE
myPMS

Password
Management
System

by

LVOware.com




Top 5 Submitters

lvo1152
audet37
kah00na32
Mariom24
lebjf00014

Top 5 Searches

Category Solaris49379
Category AIX46267
Category General UNIX43933
solaris22927
aix22116

Terms of Use
Privacy
Contact


 
coolcommands.com © 2012. All Right Reserved.
Programming by PRATTICO Consulting . Hosting by Apricusum