🎴 Flashcard Mode

Perl Programming Fundamentals

Card1 / 20
Mastered0
Review0
QuestionClick to flip

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

AnswerClick to flip back
A
-k
💡 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.

Change Mode