Bird
0
0

Which command correctly creates a symbolic link named linkfile pointing to originalfile?

easy📝 Syntax Q12 of 15
Linux CLI - File and Directory Operations
Which command correctly creates a symbolic link named linkfile pointing to originalfile?
Aln -s originalfile linkfile
Bln linkfile originalfile
Cln -s linkfile originalfile
Dln originalfile linkfile
Step-by-Step Solution
Solution:
  1. Step 1: Recall symbolic link syntax

    The syntax for creating a symbolic link is ln -s <target> <link_name>.
  2. Step 2: Match command to syntax

    ln -s originalfile linkfile uses ln -s originalfile linkfile, which correctly creates a symbolic link named linkfile pointing to originalfile.
  3. Final Answer:

    ln -s originalfile linkfile -> Option A
  4. Quick Check:

    ln -s target link_name [OK]
Quick Trick: Use ln -s target link_name for symbolic links [OK]
Common Mistakes:
  • Swapping target and link name order
  • Omitting -s for symbolic links
  • Using ln -s with wrong argument order

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Linux CLI Quizzes