I have been creating some C programs and I have saved them to my Home directory while editing. I have compiled them with gcc and then run the executable file with ./
and they work fine. However, when the programs are ready, I take the executables to another directory in another partition of my hard drive where I store my personal files, but when I try to run them from this new location, the terminal prompts the message "Permission denied".
Is there any way that I can run the programs from any location I store them, other than the Home directory?
Thanks in advance for your help.