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