How to add executable permission?

To add executable permission to a file in Linux, you can use the chmod command with the +x option.

Syntax:

chmod +x filename

Example:

If you want to add executable permission to a script named script.sh, you would use:

chmod +x script.sh

After running this command, the file will be executable, allowing you to run it by typing ./script.sh. If you need further assistance, just let me know!

0 Comments

no data
Be the first to share your comment!