CS Fundamentals / Stage 1 · Execution
Trace processes, memory, permissions and filesystems
"Already know" meets prerequisites. "Not relevant" removes the topic from your total but leaves what builds on it waiting.
Self-check
- A service on your WSL machine fails to write its log file. Find the process, show who it runs as, which files it holds open and why the write is refused, then fix the permission without making the file world-writable.
- Evidence to include: Record the commands (ps, ls -l, /proc/<pid>/fd, id) with their output, the owner and mode before and after, and why the fix is no wider than needed.
Try it without the material first, then compare. Save your answer in your notes below. Report a problem with this self-check
Learning activities
2 activities- Not doneLinux file permissions explained (opens another site)
Reads permission strings and octal modes, and what read, write and execute mean on a directory as well as a file.
7 min - Not doneproc(5) — Linux manual page (opens another site)
The reference for /proc: read the description and the index of /proc/[pid] entries that show a process's state and open files.
10 min