|
Newest Member
|
|---|
| beyondimagem | |
| cool Statistics |
| | coolcommands: | 1330 | | Categories: | 83 | | Total queries: | 595500 | | Members: | 16437 | |
|
|
|
 |
|
|
Category Search coolcommands.com
 |
Submitted by:
lvo   |
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
|  |  |  |  |
|
|
|
|
 |
|
|
|
Top 5 Submitters
|
|---|
| lvo | 1152 |
| audet | 37 |
| kah00na | 32 |
| Mariom | 24 |
| lebjf000 | 14 |
Top 5 Searches
|
| Category Solaris | 49379 |
| Category AIX | 46267 |
| Category General UNIX | 43933 |
| solaris | 22927 |
| aix | 22116 |
|
|
|
|