Multiple choice technology programming languages

Which file test can be done to see if a file has the sticky bit set on it?

  1. -s

  2. -l

  3. -S

  4. -k

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

In Perl file tests, -k checks if the sticky bit is set on a file. The -s test checks if file is non-empty (size), -l checks if it's a symbolic link, and -S checks if it's a socket. The sticky bit is a special permission bit.