Not able to run Petalinux in Ubuntu 20.04

you need make the file executeable. Run:

sudo chmod +x settings.sh

then try running it again:

./settings.sh

Alternatively you can run it without making it executebale by passing it to bash:

bash setting.sh