Actually [ is both a shell built-in and a command. The same as echo. Usually built-ins have precedence over commands. You can verify this using
whereas if you want to find all the available versions:
and to find all the related stuff (e.g. man pages):
the [ command is provided by the coreutils package. If you check the man page, as suggested above, you will see the [ command has the following synopsis:
where the last argument is a (mandatory) closing square bracket.