Okay .. I am a linux newb but I have to learn it for a college class I am taking. Here is my problem. At school, on their computers, I create the .c file and then run gcc on it and create the executable file (for this example, we'll call it 'example'). Then from the command line, you just type 'example' and it runs.
On my computer at home (RH9), I write the program in vi, compile it (no splint errors) and the executable is created without a problem. but when i type in 'example' to run the program, i get an error which says something like:
bash:example:no command found ... or something like that.
Can someone help me, is it a bash setting that I have to change?
also, Same problem happens when I downloaded firefox .. you should just type in firefox in the terminal (in the right directory of course) and it should run, but I get a bash:firefox:no command found ...
On my computer at home (RH9), I write the program in vi, compile it (no splint errors) and the executable is created without a problem. but when i type in 'example' to run the program, i get an error which says something like:
bash:example:no command found ... or something like that.
Can someone help me, is it a bash setting that I have to change?
also, Same problem happens when I downloaded firefox .. you should just type in firefox in the terminal (in the right directory of course) and it should run, but I get a bash:firefox:no command found ...