I was messing around in terminal on Red Hat Linux, and when I typed the asterisk (
*) followed by return, and it executed one of the programs in my directory. Why?
My best guess is that Unix treated it as a wildcard so it executed the first alphabetic program.
one_of_my_programs.program can be executed by simply typing the name of the file, the wildcard operator represents all the possible files. Since a program is first alphabetically, Unix executes it. Is this a correct judgement?