In Linux you have created a shell script in a file called sc

In Linux, you have created a shell script in a file called script1, but when you try to run it using the command ./script1, you get the error Permission denied. Explain why the error occurred and how you would fix this. Provide specific commands.

Solution

This error is occurred because you don\'t have permission to use this file, in order to get the access you can change your path if you running a C program.

You can set it to.

To give the file \"script1\" execute permission (if the file-system allows you with the RW rights):

and if you need execute permission then do this

In Linux, you have created a shell script in a file called script1, but when you try to run it using the command ./script1, you get the error Permission denied.

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site