Western Governors University

D796: Unix and Linux

A guide to WGU's D796, the graduate course on Unix and Linux commands, files, shell configuration and shell scripting for automation.

Updated October 2026 · 5 min read

D796 is a hands-on course in WGU's Master of Science, Computer Science programs.

WGU describes it as a comprehensive introduction to Unix and Linux focused on skills used in system administration and development: common commands, shell navigation, file and directory management, shell configuration and shell scripts that automate routine tasks. It has no prerequisites.

Students who have only used graphical systems find the command line unforgiving at first, since a missing quote or space changes the result. With practice, the reward is speed and repeatability. The guide lists three competency units.

Course at a Glance

ItemDetails
UniversityWestern Governors University (WGU)
Course codeD796
LevelGraduate (3 competency units in the guide)
ProgramsM.S. Computer Science: AI and Machine Learning, and Human-Computer Interaction
Subject areaUnix and Linux shell, files and scripting
Typical workCommand-line tasks and shell scripts with documentation

What D796 Covers

Competency (summarized)What it means in practice
Apply Unix commands for common tasksUse commands to inspect, search, copy and process
Navigate and manage files and directoriesPaths, permissions, links and organization
Manage and configure the shell environmentVariables, startup files, aliases and the path
Create shell scripts to automate routine tasksWrite reusable scripts with arguments, tests and loops

Key Concepts Explained

Pipes and Redirection

Unix tools do one job each and are combined with pipes. Redirection sends output to files or reads input from them. This composability is the heart of the system.

Example: To list the five most common words in a file: cat words.txt | sort | uniq -c | sort -nr | head -5. Each stage transforms the output of the last.

Permissions

Each file has read, write and execute permissions for its owner, group and others. A script will not run unless it is executable, and wrong permissions are a frequent cause of "permission denied".

Example: chmod 750 backup.sh gives the owner full rights, the group read and execute, and others none. Listing the file with ls -l confirms the result.

Shell Scripting

A script starts with an interpreter line, uses variables, tests with if, loops with for or while, and takes arguments. Good scripts check inputs, quote variables and report errors with meaningful exit codes.

Example: A backup script receives a folder name, checks that it exists, copies it to a dated archive and prints a message. If the folder is missing, it prints an error and exits with a non-zero code.

Typical Assignments and How to Approach Them

Task elementWhat it testsHow to approach it
Command tasksFluency with toolsShow the command and its output, and say what each option does
File managementStructure and permissionsDemonstrate with listings before and after
Environment configurationShell customizationEdit the right startup file and show that the change loads
Automation scriptScriptingComment the script, test normal and error cases and show the output

Testing a Script Properly

A script that works once on your machine may fail elsewhere. Test it with a short checklist and keep the evidence for your write-up.

TestWhat to check
Normal inputExpected output and exit code 0
Missing argumentClear usage message and non-zero exit
Spaces in namesVariables quoted, no splitting
Repeat runNo damage or duplicate work
Different directoryUses full or relative paths correctly

Readiness Checklist Before You Submit

Command-line tasks are easy to get almost right, so verify the details.

CheckWhat to confirm
Commands shown with outputEvidence that each command ran and what it did
Paths and permissions correctListings confirm the result
Environment changes loadYou show the shell picks up the change
Script testedNormal, error and repeat cases are shown
Script commentedEach section explains its purpose

Where Students Get Stuck

Study Tips for D796

How We Help with D796

Send the task, rubric and any draft script. A writer with Linux experience can prepare a commented model script for study, explain commands and options, or review your script for quoting, permission and error-handling problems. Our master's assignment help guide explains the process.

GradeEssays is independent of Western Governors University. Model work is for study and reference; your submission must be your own under WGU's academic integrity policy, and no result is promised. Orders are written from scratch with free revisions within the scope of your original request, and a full refund if late.

Make Sense of Your D796 Task

Share the task, rubric and draft script. A writer prepares a commented example you can learn from.

Start My D796 Help

Free revisions · Full refund if late · Written from scratch for your order

Frequently Asked Questions

Does D796 have prerequisites?

WGU's description states there are no prerequisites.

Which programs include D796?

WGU's guides list it in the M.S. Computer Science plans for AI and Machine Learning, and Human-Computer Interaction.

How many competency units is D796?

Three, according to the guides.

Which shell do I need?

Follow your course instructions. Bash is common, and the environment is usually specified in the task.

How do I make a script run?

Add an interpreter line, make the file executable with chmod, and run it with its path.

How is D796 different from D281?

D281 is the undergraduate Linux foundations course; D796 is graduate level and emphasizes shell configuration and scripting.