Every program or command is a sequence of instructions stored as a file.
You run it on the shell or by any other means such as double clicking it from user interface.
When it is run, the content of the program is read from file and loaded into the memory and then instructions are executed by operating system.
All the commands that we have been using ls, cat were programs.
Taking you to the next exercise in seconds...