For Activity 1 :
To execute : bash ./q1.sh
For Activity 2 :
To execute : bash ./q2.sh
Assumption : My file will access the /etc/shells file to find all the shells present in the system. Im assuming the location of the shells file is not changed and that it can be accessed.