Which command creates a symbolic link named linkname pointing to target?

Prepare for the Red Hat Certified Systems Admin Exam EX200. Enhance your skills with interactive quizzes, flashcards, and detailed explanations. Ace your certification exam today!

Multiple Choice

Which command creates a symbolic link named linkname pointing to target?

Explanation:
Symbolic links are created with the -s option of the ln command. It creates a separate pathname that points to the target. The correct syntax is ln -s target linkname, where target is what you want to point to and linkname is the name of the link being created. Without -s, ln makes a hard link, which shares the same inode as the target and isn’t a symbolic link. The other options either omit -s (which would produce a hard link) or use a behavior that isn’t about creating a symbolic link.

Symbolic links are created with the -s option of the ln command. It creates a separate pathname that points to the target. The correct syntax is ln -s target linkname, where target is what you want to point to and linkname is the name of the link being created. Without -s, ln makes a hard link, which shares the same inode as the target and isn’t a symbolic link. The other options either omit -s (which would produce a hard link) or use a behavior that isn’t about creating a symbolic link.

Subscribe

Get the latest from Passetra

You can unsubscribe at any time. Read our privacy policy