Practice Exam 1, Problem 5: The Commands¶
Midterm 1 practice exam, problem 5 of 5 · Length: 8:18 · Exercises: 10c_echo (Week 4) · 11c_cat (Week 5) · 12c_wc (Week 5) · Answer key: Solutions (PDF)
Worked on pages 17 to 20: (a) adding -n to echo; (b) why a cat_fd without a loop fails one test, and how many calls each version makes; (c) wc's output, error message and exit status for three files. The answer key's handwriting is written onto the exam page as each step is worked.
Download the video (MP4, 30 MB) · Captions (WebVTT) · All five problems