Advanced Linux & Shell Scripting
Q93 / 100

What is the purpose of the "/proc" virtual filesystem, and how might it be used to inspect a running process's open file descriptors?

Correct! Well done.

Incorrect.

The correct answer is A) "/proc" is a virtual filesystem exposing kernel and process info as files, with no data stored on disk; for PID 1234, "/proc/1234/fd/" contains symlinks for each open file descriptor, pointing to the actual files, sockets, or pipes referenced

A

Correct Answer

"/proc" is a virtual filesystem exposing kernel and process info as files, with no data stored on disk; for PID 1234, "/proc/1234/fd/" contains symlinks for each open file descriptor, pointing to the actual files, sockets, or pipes referenced

Explanation

"/proc" provides a live, kernel-generated view into system and process state; "ls -l /proc/<pid>/fd/" is a common technique to see what files, sockets, or pipes a process currently has open, useful for debugging file descriptor leaks.

Progress
93/100