LFCS · Question #212
The system administrator is keeping local configuration file changes in RCS. What command will commit the file to RCS revision control AND keep a local, unlocked copy of the latest version of the…
The correct answer is D. ci u file. To commit a file to RCS revision control while retaining a local, unlocked copy of the latest version, the ci -u command is used.
Question
Options
- Aci file
- Brcs commit file
- Crcs o file
- Dci u file
How the community answered
(47 responses)- A2% (1)
- B6% (3)
- C2% (1)
- D89% (42)
Why each option
To commit a file to RCS revision control while retaining a local, unlocked copy of the latest version, the `ci -u` command is used.
The `ci file` command checks in the file but by default either removes the working copy or leaves it locked, which does not satisfy the requirement of keeping a local, unlocked copy.
`rcs commit` is not a valid RCS command for checking in files; `ci` is the correct command.
`rcs o` is not a recognized or standard RCS command for committing files or manipulating their lock status in this context.
The `ci` command checks in revisions to the RCS repository, and the `-u` option specifically instructs RCS to unlock the file and leave a new, unlocked working copy in the current directory after the check-in is complete.
Concept tested: RCS file check-in and lock management
Source: https://manpages.ubuntu.com/manpages/jammy/en/man1/ci.1.html
Topics
Community Discussion
No community discussion yet for this question.