In today #Linux #shell adventures, did you know that [ is an executable ELF binary provided by coreutils? There's a /usr/bin/[ program in the $PATH on most Linux systems.

Check it out:

which [

Reply to this note

Please Login to reply.

Discussion

It is thought to be part of the shell script code like

if [ -f file ]

... have you have ever wondered, why a bracket has an option ? :)