EECS 1012 Lecture Notes - Lecture 8: Working Directory
EECS 1012 Lecture 8 Notes
Introduction
Acyclic-Graph Directories
• The acyclic-graph directory is a generalization of a tree-structure directory, expanded to
include links between separate branch structures on the tree.
• The links appear in the directory structure as though they were ordinary file or directory
entries.
• In actuality, they serve as pseudonyms for the original file name.
• The link provides an alternative path to a directory or file.
• In this diagram there are two links, shown in heavy print.
• There is a link between the directory CURRENT, belonging to user im woman, and the
directory 2008, and belonging to user the boss.
• This makes all the files in directory 2008 available to im woman.
• There is also a link between directory MYSTUFF, belonging to user jgood guy, and the
file PROJ1.TXT.
• Apparently, jgood guy is working only on this one project.
• The file PROJ1.TXT can be accessed by the boss from her current directory by using the
pathname
• PROJECTS/2008/PROJ1.TXT.
• jgood guy can access the same file using pathname MYSTUFF/PROJ1.TXT. im woman
uses pathname
• CURRENT/2008/PROJ1.TXT to reach the file.
• Note that it is also possible for im woman to change her current directory to 2008 as a
result of the link.
• The ability to add links between branch structures in a tree makes it possible to create
multiple paths, and pathnames, that lead to a single directory or file.
find more resources at oneclass.com
find more resources at oneclass.com
ammarmarta2020 and 40175 others unlocked
10
EECS 1012 Full Course Notes
Verified Note
10 documents