I'm new to Ubuntu and command line scripts and wondering how to write a script that runs / automates a series of steps. For example, a script that does the below steps. I could save it as "doeverything.sh" and put it in my user root.
- sudo -s in & enter password
- cd into /x/y/z directory
- run ./script1.sh
- wait until done
- run ./script2.sh
- wait until done
- npm start