User Pres
User Pres
3 USER PERSPECTIVE
This section briefly reviews high level features of the. UNIX system such as the file system, the
processing environment, and building block primitives (for example, pipes).
the treatment of peripheral devices (such as terminals and tare units) as files
The file system is organized as a tree with a single root node called root (written "/"); every non-
leaf node of the file system structure is a directory of files, and files at the leaf nodes of the tree
are either directories, regular files, or special device files. The name of a file is given by a path
name that describes how to locate the file in the file system hierarchy. A path name is a sequence
of components names separated by slash characters; a component is a sequence of characters that
designates a file name that is uniquely contained in the previous (directory) component. A full
path name starts with a slash character and specifies a file that can be found by starting at the file
system root and traversing the file tree, following the branches that lead to successive component
names of the nth name. Thus, the path names "/etc/passwd", "/bin/who", and
"/usr/src/cmd/who.c" designate files in the tree shown in Figure 1.2, but "/bin/passwd" and
"/usr/src/date.c" do not. A path name does not have to start from root but can be designated
relative to the current directory of an executing process, by omitting the initial slash in the path
name. Thus, starting from directory "/dev", the path name "tty0l" designates the file whose full
path name is "/dev/tty0l".