You want to create a symbolic link in your home directory that will link the manual file to the /usr/test/lts/learning directory. Which of the following commands should you use?
  1. ln /usr/test/lts/learning ~/learning
  2. ln -s ~/learning /usr/test/lts/learning
  3. ln -s /usr/test/lts/learning ~/learning
  4. ln ~/learning /usr/test/lts/learning
Explanation
Answer - C - You should use the ln -s /usr/test/lts/learning ~/learning command to create a symbolic link in your home directory that will link the manual file to the /usr/test/lts/learning directory.

Key Takeaway: The -s option creates a symbolic link with the ln command. The ln command lets a file on your disk be accessed with more than one file name by hard-linking a new file name to it. When you hard-link a file, you create a new file name and connect it with the original file. Hard-linking can let two users share the same file or provide a more convenient way of referencing files buried deep in a series of directories.
Was this helpful? Upvote!
Login to contribute your own answer or details

Top questions

Related questions

Most popular on PracticeQuiz