running compiled c++ programs in Fedora
Whenever I compile my programs and finally get no errors I see the a.out file and when I type a.out I get this error message:
-bash: a.out: command not found WHY? |
To execute a compiled file from a bash prompt you need to use the command
./a.out |
linux only uses the path environment to search for commands.
./ is a shortcut for the current working directory. |
All times are GMT -5. The time now is 03:11 AM. |