OSlings Practice 45k-47k, Problem 2: The Shell¶
OSlings Practice 45k-47k, problem 2 of 3 · Length: 5:11 · Exercise: 46k_shell (Week 12) · Problems: 45k-47k (PDF) · Answer key: Solutions (PDF)
Two parts, worked on the set's pages 3 and 4: (a) for four lines passed to exec, the value of cmd, the value of arg, and what exec does with the line; (b) which of "mkdir docs", "pwd" and "" crash the kernel when both words are taken with unwrap(), why, and how the exec shown avoids each crash. The answer key's handwriting is written onto the page as each step is worked.
Download the video (MP4, 8 MB) · Captions (WebVTT) · All three problems