Multiple choice technology operating systems

Which of the following syntax creates a softlink?

  1. $ ln -s /etc/test test
  2. $ ln -softlink /etc/test test
  3. $ ln /etc/test test
  4. $ ln -slink /etc/test test
Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

The ln -s command creates a symbolic link, also known as a soft link. The -s flag specifies that the link should be symbolic rather than hard. Option A shows the correct syntax with the source path first (/etc/test), then the link name (test). Option C without -s would create a hard link instead.