Multiple choice technology programming languages

Which file test can be done to see if a file is a symbolic link?

  1. -s

  2. -l

  3. -S

  4. -k

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

In Perl, file test operator -l checks if a file is a symbolic link. The -s operator tests for non-zero file size, -S tests for socket file, and -k tests for sticky bit. Symbolic links are references to other files in the filesystem.