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 test operator -k checks if the sticky bit is set on a file. The -s operator tests for non-zero file size, -l tests for symbolic link, and -S tests for socket file. Sticky bit is a permission bit that restricts deletion to the file owner even on writable directories.