I keep on receiving a "bash permission denied" notification every time I try to execute a program on VS Code

62 views Asked by At

No matter what program I try to execute, VS code won't allow me to. It was working great before.

I tried $ ./name of my programs (I tried with various, of course) and I receive a bash: permission denied error every time. Now it is also replying with wrong errors when I try to execute anything.

1

There are 1 answers

0
Volk On

Your question must be more detailed. But I try to suppoze: you didn't compile your program. If your code don't have any mistakes you can compile your program using code below:

cc name_file.c

or

gcc name_file.c

After that.. you will see new file in the folder where located name_file.c compiled file, like this:

a.out

And you should launch it:

$./a.out