make a file executable in linux code example Example 1: make shell script executable chmod +x filename.sh Example 2: linux make executable chmod 755 file.sh