Which of the following syntax creates a softlink?
-
$ ln -s /etc/test test
-
$ ln -softlink /etc/test test
-
$ ln /etc/test test
-
$ ln -slink /etc/test test
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.