Description
💻 System Commands Week 8 Graded Assignment Solutions
Versions: v1_t12024 / v2_t12025 / v3_t12026 —
Complete solutions covering System Configuration, Archiving (tar/gzip), Cron Job Scheduling, and Advanced Text Processing with sed Regular Expressions.
This downloadable PDF bundle provides complete, detailed solutions for the two primary graded assignments in System Commands Week 8.
The assignments test mastery of system configuration, routine task automation, and sophisticated file editing.
Part 1: System Monitoring, Archiving, and Scheduling
Covers questions related to machine introspection, file packaging, and timed automation:
- Hardware Information: Identify commands (e.g.,
hwinfo,cat /proc/cpuinfo) used to check processor information on a Linux machine. - Cron Scheduling: Determine the execution frequency (e.g., once per day) and specific days (e.g., Monday–Friday) for a given cron job entry, based on its time fields.
- Prompt Customization: Identify the correct
PS1variable setting to configure the shell prompt string with components like date, command number, and hostname. - Archiving (
tar): Select the correcttarcommand options to create an archive, extract files, and understand archive properties. - Compression (
gzip): Compare the compression effectiveness ofgzipon files containing repetitive patterns versus random data. - File System Cleanup: Identify the correct
findcommands (-empty,-delete) to list and delete all empty files.
Part 2: Advanced Stream Editor (sed) Operations
Covers the theory and execution of the stream editor for text manipulation (approx. 11 questions):
sedActions and Flags: Match the function of varioussedaction characters (e.g.,p,d,a) and special flags (e.g.,n,g).- Line Selection and Deletion: Identify
sedcommands that delete lines based on address ranges (1,3d) or content patterns (/pattern/d). - Nested Piped Commands: Identify the
sedcommand equivalent to a complex piped operation involvingcat,head, andtail. - Substitution (
sCommand): Identify commands that perform case-insensitive deletion (s/pattern//ig), replace the last occurrence on a specific line ($), and use capture groups (\(...\),\1) to manipulate case in the output. - Insertion and Appending: Analyze commands that use the
aaction to insert new content before or after lines matching a pattern. - Regex Output Prediction: Predict the exact output of
sedwhen complex regular expressions and back-referencing are applied to a string.











Reviews
There are no reviews yet.