Step 1: Understanding Pathnames and Directory Separation:
An operating system organizes files in a hierarchical tree directory structure. To access a specific file or folder, a pathname is used to define its location in the directory tree.
Step 2: Comparing Path Separators Across Operating Systems:
Different operating systems use different characters to separate directories (components) in pathnames:
- Microsoft Windows: Traditionally uses the backslash (\textbackslash) as the directory path separator (e.g., C:\textbackslash Users\textbackslash Desktop).
- Unix and Linux: Use the forward slash (/) as the directory path separator (e.g., /usr/bin/local).
Step 3: Conclusion:
In Linux, directories and components are separated using the
forward slash (/), making option (D) correct.