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