What does 'chmod +x' do?

QuestionsQuestions8 SkillsProLinux Text FormattingDec, 02 2025
0182

The command chmod +x is used to change the permissions of a file in Unix-like operating systems. Specifically, the +x option adds executable permissions to the file, allowing it to be run as a program or script.

For example, if you have a script named script.sh, running the command:

chmod +x script.sh

will make script.sh executable. After this, you can run the script by typing ./script.sh in the terminal.

0 Comments

no data
Be the first to share your comment!