Hi,
I am new to Linux.I installed Suse 11.0 on my laptop.And I installed Latest gcc c comiler using YAST.Now i am able to compile my programs but Iam not able to run it.
when I type the object file and enter on terminal it says bash command not found.
Please help me in this regard.
The executable file you compiled probably isn’t in a directory that is in your environment PATH. So you’ll have to either give the full pathname to the executable, or if your currently in the directory that contains the executable you can give it the relative path to the executable which would be ./<filename>
By default, Linux doesn’t include current working directory ***./ ***in the PATH as do other OS’s (unless by coincidence your CWD happens to be in the environment PATH).
You can change the PATH environment to include the current working directory, but unless you know your OS really well I wouldn’t recommend it for security reasons.