Courseiva
System Management →easyMultiple Choice

XK0-006 System Management Practice Question

Which command creates a symbolic link named 'link.txt' that points to 'original.txt'?

Answer choices

Why each option matters

Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.

Correct answer & explanation

✓

ln -s original.txt link.txt

ln -s target link_name creates a symbolic link.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • ✗

    symlink original.txt link.txt

    Why it's wrong here

    No symlink command exists on Linux; the utility is ln with the -s flag. This invocation would simply fail as an unknown command. It tempts because the verb describes the intended action, but Linux exposes the operation through ln, not a standalone binary.

  • ✓

    ln -s original.txt link.txt

    Why this is correct

    The -s flag instructs ln to create a symbolic link rather than a hard link, and argument order matters: the target original.txt precedes the new link name link.txt. This satisfies the requirement for a symlink pointing to original.txt.

  • ✗

    ln original.txt link.txt

    Why it's wrong here

    Without -s, ln creates a hard link, which shares the same inode as original.txt rather than pointing to its path. Symbolic links need the -s flag. Hard links tempt because they also produce a second name for the file, but they cannot span filesystems or target directories.

  • ✗

    ln -s link.txt original.txt

    Why it's wrong here

    The arguments are reversed: ln -s takes the target first, then the link name, so this creates original.txt pointing at link.txt. The stem requires link.txt as the link. It tempts because -s is the correct flag, but operand order determines which name becomes the symlink.

About these practice questions

Courseiva writes every XK0-006 question from scratch — 781 in total, each with an explanation and a wrong-answer breakdown. None are copied from real exams or dumps. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

JA

Written by Johnson Ajibi, MSc IT Security

Senior Network & Security Engineer · founder of Courseiva

This XK0-006 practice question is part of Courseiva's free CompTIA certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the XK0-006 exam.