test

Name

test -- check file types and compare values

Description

test is as specified in the SUS but with differences as listed below.

LSB Deprecated Differences

The behaviors specified in this section are expected to disappear from a future version of the LSB; applications should only use the non-LSB-deprecated behaviors.

-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.