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:
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.
Objectives:
- Learn how to do some basic bash scripting. Become comfortable and competent with the steps needed to write, run, comment, and test scripts.
Complete the following problems
References, a video, a PowerPoint and some notes are available at my website https://www.aholdengouveia.name/IntroLinux/shellscripting.html
How to turn in Scripts
- Testing must be submitted along with your code. You should submit a copy of the code and a screenshot or the results of your test 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.
- 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.
- For submission you need to submit a copy of your code (actual text NO screenshots of code allowed) and your successful test run of your code for every script.
Scripts
- Write a script that will echo out the phrase “Hello World” and then your name in plain text
- Write a script that will show each of the 3 types of echo (opaque, semi-opaque and cleartext (from the PowerPoint))\\
Make sure to make 2 separate scripts. Don't solve in just one.
Deliverables
One file that includes all the requested information with your name, the date, and the lab title, make sure to follow the requested pattern for scripts. You need 2 separate scripts for this lab.