first. I am sorry.i used redhat only a few times.
I want to know why my program could't run?
when I use the command of a.out ,it showed "bash:command not find",why?
thank you!
if you run a program like a.out (without a path name), shell will search for the program in a list of paths in PATH env variable. [code:1]echo $PATH[/code:1] would show where the shell is searching for programs.
Add [code:1]export PATH=".:$PATH"[/code:1] in your ~/.bashrc file (so shell will search for programs in the current directory first), or run the program with a path name (which is, the "./" part )