To determine the total number of shells available in a system through shell scripting, you can employ the following command: cat /etc/shells | wc -l. This command reads the /etc/shells file and uses the wc command to count the lines, which correspond to the available shells. Executing this command in your terminal will provide you with the desired information regarding the total number of shells available.