Multiple choice technology programming languages

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

  1. -s

  2. -l

  3. -S

  4. -k

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

In Unix and Linux file test operators, -S is specifically used to determine if a file is a socket. This is a duplicate of a previous question testing the same command-line flag.