nerdexam
CompTIA

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.

Shells, Scripting and Data Management

Question

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?

Options

  • Aci file
  • Brcs commit file
  • Crcs o file
  • Dci u file

How the community answered

(55 responses)
  • A
    2% (1)
  • B
    2% (1)
  • C
    5% (3)
  • D
    91% (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.

Aci file

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.

Brcs commit file

`rcs commit file` is not a standard RCS command for committing files; the correct command for checking in is `ci`.

Crcs o file

`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.

Dci u fileCorrect

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

#RCS#version control#ci command#configuration management

Community Discussion

No community discussion yet for this question.

Full LX0-104 Practice