PDF Version Available

This document is also available in PDF format: shellscripting.pdf

The PDF version includes bookmarks for easy navigation and is optimized for printing.

Accessibility Notice

This document is also available in HTML format at:

Link: https://aholdengouveia.name/IntroLinux/labs/shellscripting.html

The HTML version provides enhanced accessibility features including keyboard navigation, screen reader support, responsive design, dark mode support, and high contrast options.

Learning Outcomes

By the end of this lab, you will be able to:

Lab Instructions

This lab has 2 scripts. Each one must be a separate script.

Script 1: Hello World

Write a script that will echo out the phrase “Hello World” and then your name in plain text

Script 2: The 3 Types of Echo

Write a script that will show each of the 3 types of echo (opaque, semi-opaque and cleartext from the PowerPoint)

Deliverables

One file that includes all the requested information with your name, the date, and the lab title.

How to turn in your scripts

Follow the format in the sample submission Link: https://www.aholdengouveia.name/IntroLinux/labs/CIS%20117%20shell%20sample.docx

  1. Submit a copy of your code as actual text. NO screenshots of code are allowed.
  2. Submit a screenshot or the results of your test run, so that I can see a successful run of your code. Every script should be tested. A script that doesn't run is worth 0 points. Your screenshots must show your prompt with your username, or a note with your name and the term.
  3. Comments should be done on EVERY line of code, (this is very bad practice in the real world, never do this for a job) so that I can see that you understand the code that you are submitting. Every line should have an explanation of what that line does. Comments are worth 5 points per script.

Resources

References, a video, a PowerPoint and some notes are available at my website Link: https://www.aholdengouveia.name/IntroLinux/shellscripting.html

My FAQ Linux playlist on YouTube, with demos of many of the commands and scripts in this class Link: https://www.youtube.com/playlist?list=PLQOmuLC45eoQlIMH7oCNL6yFP7kWQubBo