test

Name

test -- check file types and compare values

Description

The specification for "test" is as specified in the SUS but with the following differences as listed below.

Differences

-G FILE

FILE exists and is owned by the effective group ID

-k FILE

FILE exists and has its sticky bit set

-L FILE

FILE exists and is a symbolic link

-O FILE

FILE exists and is owned by the effective user ID

-S

FILE exists and is a socket