LX0-104 · 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 file
The correct answer is D. ci u file. To commit a file to RCS revision control while simultaneously keeping an unlocked, local 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
(55 responses)- A2% (1)
- B2% (1)
- C5% (3)
- D91% (50)
Why each option
To commit a file to RCS revision control while simultaneously keeping an unlocked, local copy of the latest version, the `ci -u` command is used.
The `ci file` command commits changes but by default removes the working file, unless the `-u` or `-l` option is specified to keep a local copy.
`rcs commit file` is not a standard RCS command for committing files; the correct command for checking in is `ci`.
`rcs o file` is not a standard RCS command. The `rcs` command is generally used for administrative tasks on the RCS control file itself, not for committing working files.
The `ci` command is used to check in (commit) changes to an RCS repository. The `-u` option specifically instructs `ci` to update the working file after the commit by retrieving a new, unlocked version from the repository, allowing the user to continue working with the file.
Concept tested: RCS commit and working file management
Source: https://www.gnu.org/software/rcs/manual/html_node/Invoking-ci.html
Topics
Community Discussion
No community discussion yet for this question.