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

Perl's file test operator -l checks if a file is a symbolic link. The -s test checks if a file has non-zero size, -S checks for socket files, and -k checks for sticky bit. File test operators are single-character prefixes preceded by a hyphen.