This task takes me through practical steps in learning Linux bash scripting.
-
I used the cd command to change into the shell-scripting folder before creating the my_first_shell_script.sh file.

-
Using Vim, I created a file called my_first_shell_script.sh.

-
I used ls -latr to confirm that the file was successfully created.

-
I ran the script using ./my_first_shell_script.sh but got an error: "Permission denied!" because the file wasn't executable, as I noticed in the file listing.

-
I added executable permission to the file using chmod +x my_first_shell_script.sh.

-
I ran the shell script and noticed that only the folders were created.

Note: I couldn't create the users because I am running Vim and Terminal on macOS, and the useradd command is not supported. This is why it didn't run.
# This is a single-line comment in Bash
echo "Hello, you are learning Bash Scripting on DAREY.IO!" # This is also a comment, following a command# This is another way to create
# a multi-line comment. Each line
# is prefixed with a # symbol.
echo "Here is an actual code that gets executed"I was able to successfully complete the tasks, including creating directories, adding permissions to files, and working with variables in Linux shell scripting. However, due to the limitations of macOS, I couldn't use the useradd command to create users.

