How to remove executable permission?

To remove executable permission from a file in Linux, you can use the chmod command with the -x option.

Syntax:

chmod -x filename

Example:

If you want to remove the executable permission from a script named script.sh, you would use:

chmod -x script.sh

After running this command, the file will no longer be executable. If you have any more questions, feel free to ask!

0 Comments

no data
Be the first to share your comment!