I'm trying to write a shell script so that when I reinstall my Ubuntu again. I could just run script and retain all the packages. And I'm planning to pass password in form of argument.
My question here is how can i enter into
sudo domain without manually entering password. As I'm also planning to design a UI where it can't access the terminal there.