I have written an c++ program ,but cant run it because the executable bit is not on yes. So I wanted to change it ,but it only changes it for a second and then swiches back.
Asked
Active
Viewed 521 times
1
gcc
or something before running it. If you then need to make it executable, runchmod +X /PATH/TO/FILE
to make it executable (Another way is to open the file's properties window, and click yes to 'Allow executing the file as a program'). Then you should be able to run in it terminal by running/PATH/TO/FILE
. – Wilf Nov 03 '13 at 14:36sudo chmod +x
(a little X by the way). – Wilf Nov 03 '13 at 21:12