Objective 1.2XK0-005

1.2 Given a scenario, manage files and directories.

Objective 1.2 sits in System Management, which carries 32% of the Linux+ exam. The questions below are original, written from the official objective title above, and each explanation cites the CompTIA page it rests on.

Objective title verbatim from the official objectives. CompTIA exam page

A worked example

Shown solved, with the whole explanation open: this is what every question here carries.

1-2System ManagementModerate

A technician tries to hard link a configuration file onto a second mounted volume and the command fails. Why can that link not be created?

Inode numbers are not unique across filesystemsCorrect · your answerCorrect: inode numbers only identify objects within one filesystem.
The second volume was mounted read onlyA read-only mount would fail any write, not specifically linking.
Hard links require the sticky bit on the targetThe sticky bit affects deletion in shared directories, not link creation.
The file already has a symbolic link to itAn existing symbolic link places no restriction on further links.

Correct.

Concept

A hard link is a reference to the underlying object rather than a copy of the name, so the reference only means something inside one filesystem.

Why A

Hard links may not refer to files on different filesystems because inode numbers are not unique across filesystems, so the cross-volume link is refused.

#hard-links#filesystems

Now you: objective 1.2 questions

No account needed. The explanation opens when you answer.

Sample question 1 of 3

1-2System ManagementModerate

An engineer asks why the filesystem refuses a hard link to a directory when a symbolic link to the same directory works. What is the stated reason?

Sample question 2 of 3

1-2System ManagementEasy

What does a symbolic link actually contain?

Sample question 3 of 3

1-2System ManagementModerate

After a cleanup job removes an application's data file, a symbolic link to it remains in place. What is that leftover link called?

Full Linux+ question bank coming

We’re writing the complete bank from the official objectives right now. Leave your email and we’ll tell you when it ships, nothing else, ever.

Read the sources

These are the official pages the questions above cite. Reading them is studying the objective from the primary source, which is what the explanations point you toward anyway.

More objectives in System Management