{"id":395,"date":"2026-05-01T01:24:19","date_gmt":"2026-05-01T01:24:19","guid":{"rendered":"https:\/\/sites.wp.odu.edu\/nicolascook\/?p=395"},"modified":"2026-05-01T02:23:58","modified_gmt":"2026-05-01T02:23:58","slug":"lab-8-shell-script","status":"publish","type":"post","link":"https:\/\/sites.wp.odu.edu\/nicolascook\/2026\/05\/01\/lab-8-shell-script\/","title":{"rendered":"Lab 8 &#8211; Shell Script"},"content":{"rendered":"\n<p>This lab introduced me to shell scripting in Linux and how scripts can automate tasks using conditional statements. I created and edited a <em>.sh <\/em>script using a text editor, made it executable with <em>chmod +x<\/em>, and ran it from the terminal to observe the output. The script used conditional logic to make decisions based on input or conditions, which helped me understand how programs can behave dynamically instead of running fixed commands. A challenge was correctly writing the syntax for conditionals and ensuring the script executed without errors. Overall, it strengthened my understanding of automation in Linux and how shell scripting is used in cybersecurity and system administration.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This lab introduced me to shell scripting in Linux and how scripts can automate tasks using conditional statements. I created and edited a .sh script using a text editor, made it executable with chmod +x, and ran it from the terminal to observe the output. The script used conditional logic to make decisions based on&#8230; <\/p>\n<div class=\"link-more\"><a href=\"https:\/\/sites.wp.odu.edu\/nicolascook\/2026\/05\/01\/lab-8-shell-script\/\">Read More<\/a><\/div>\n","protected":false},"author":30558,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":"","wds_primary_category":0},"categories":[1],"tags":[],"_links":{"self":[{"href":"https:\/\/sites.wp.odu.edu\/nicolascook\/wp-json\/wp\/v2\/posts\/395"}],"collection":[{"href":"https:\/\/sites.wp.odu.edu\/nicolascook\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/sites.wp.odu.edu\/nicolascook\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/sites.wp.odu.edu\/nicolascook\/wp-json\/wp\/v2\/users\/30558"}],"replies":[{"embeddable":true,"href":"https:\/\/sites.wp.odu.edu\/nicolascook\/wp-json\/wp\/v2\/comments?post=395"}],"version-history":[{"count":2,"href":"https:\/\/sites.wp.odu.edu\/nicolascook\/wp-json\/wp\/v2\/posts\/395\/revisions"}],"predecessor-version":[{"id":450,"href":"https:\/\/sites.wp.odu.edu\/nicolascook\/wp-json\/wp\/v2\/posts\/395\/revisions\/450"}],"wp:attachment":[{"href":"https:\/\/sites.wp.odu.edu\/nicolascook\/wp-json\/wp\/v2\/media?parent=395"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/sites.wp.odu.edu\/nicolascook\/wp-json\/wp\/v2\/categories?post=395"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/sites.wp.odu.edu\/nicolascook\/wp-json\/wp\/v2\/tags?post=395"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}