How to use bash to run a file listet with simple commands

you can make a shell script with those commands, and then chmod +x <>, and then just run it by


you can also just run it with a shell, for example:

bash example.txt
sh example.txt

Its very simple to write a bash script

Mockup sh file:

sudo command1
sudo command2 
sudo commandn

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.