1. You don't have you PATH set correctly. Most times folks have a PATH variable that has
somewhere in it, usually at the beginning.
The current working directory is ./
The default output from gcc myfile is ./a.out
Code:
gcc -o myfile -Wall myfile.c
will create an executable file named myfile in the current directory. If you put a
Code:
gcc -o /path/to/somewhere/myfile -Wall myfile.c
then myfile ends up in /path/to/somewhere