Bring a file under RCS control: RCS is a software tool for UNIX systems which lets people manage multiple revisions of files. RCS saves all old revisions and does it in a space efficient way. Old revisions can be retrieved according to the revision numbers, symbolic names, date, authors, and states. RCS logs all changes automatically. It stores the author, the data and time of check-in, and a log message summarizing the change. 1. If you haven't done this, first, Create a subdirectory called RCS under the directory where you will be working on your files. % mkdir RCS 2. Create the initial version of your file. For example, helloworld.c 3. Check in the initial version using the ci commnad. For example, % ci helloworld.c ci will prompt you for a comment to be entered. type something like " hello world program, first edition". 4. If you want to set your own version number, use -r option, such as, % ci -r1.1 helloworld.c 5. If you want to modify your program later, you can check it out for modification, use % co -l helloworld.c for latest version. % co -l -r1.1 helloworld.c for specified version. 6. After you have done the modification, you should check back in the file using ci again. % ci helloworld.c 7. Repeat step 5 to 6 whenever you want to modify your program next time. 8. Here is a useful link for learning using RCS: http://www.csc.calpoly.edu/~dbutler/tutorials/winter96/rcs/tutorial.html \n"); /* wait for a message to come back from the server */ if (recv(sd, dir, DIRSIZE, 0) == -1) { perror("recv"); exit(1); } printf("After recv."); /* spew-out the results and bail out of here! */ printf("%s\n", dir); close(sd); } nux/SunOS)