A command is a file that can be executed simply by typing the file name. Most commands are in the /bin and /usr/bin directories although they may be located anywhere in the directory structure.
A command is found by looking in the directories defined by the path environment variable and searching this structure.
Commands can be created by users. The only criteria is that the file (representing the command) be executable.