Due 4 October 2000 Close of CSL Lab.

Posted 27 September 2000
For this assignment, print this web-page out and fill in the link count for each file in the displayed file directory trees. When finished, hand in the page.

The following diagram represents a single filesystem on a single drive and partition. All links should be legal.

                               /
                               |
             ------------------------------------------------------
            /              |            |      |      |      \     \
           /               |            |      |      |       \     \
         bin              etc        export   usr2   www      var  (7 other
        /   \              |            |                      |   directories)
       /     \             |            |                      |
     fn1   (42 other     skel         home             worldwidewebwork
           regular      /    \          |                      |
           files)      /      \         |                      |
                    cshrc  loginrc    usr2                 cgi_trouble
                                        |
                               ----------------------
                              /                      \
                             /                        \
                            jb                        fac
                             |                         |
                          -------               ----------------
                         /   |   \             /   |     \      \
                        /    |    \           /    |      \      \
                     inbox  330   www       330   a1.d1  a1.d2  Mail
                             |                                   |
                      -------------------                        |
                     /   /  |  \   \     \                     inbox
                    /   /   |  |    \     \
                   a1  a2  a3  go  a1.dat a2.dat
                   |
         --------------------------------------------------------
        /   |   \               \          \          \          \
       /    |    \               \          |          \          \
    a.out  data  assignment1.c   a1.c     back       data2       www
                                            |
                                  --------------------------
                                 /    |    \     \     \    \
                                /     |     \     \     \    \
                             a11.c  a12.c  a13.c data1 data2 d2

In the 1st column, give the link count for the name of the file following.

____ / - root directory

____ /bin - dirrectory

____ /etc - directory

____ /export - directory

____ /usr2 - symbolic link to /export/home/user2

____ /www - symbolic link to /var/worldwidewebwork

____ /var - directory

7 additional subdirectories are listed under root.

____ /bin/fn1 - regular file

42 other regular (or files that are not directory files) listed in /bin

____ /etc/skel - directory

____ /export/home - directory

____ /var/worlwidewebwork - directory

____ /etc/skel/cshrc - regular file

____ /etc/skel/loginrc - regular file

____ /export/home/usr2 - directory

____ /var/worldwidewebwork/cgi_trouble - regular file

____ /export/home/usr2/jb - directory

____ /export/home/usr2/fac - directory

____ /export/home/usr2/jb/inbox - regular file

____ /export/home/usr2/jb/330 - directory

____ /export/home/usr2/jb/www - symbolically linked to /var/worldwidewebwork

____ /export/home/usr2/fac/330 - directory

____ /export/home/usr2/fac/a1.d1 - regular file

____ /export/home/usr2/fac/a1.d2 - regular file

____ /export/home/usr2/fac/Mail - directory

____ /export/home/usr2/jb/330/a1 - directory

____ /export/home/usr2/jb/330/a2 - directory

____ /export/home/usr2/jb/330/a3 - directory

____ /export/home/usr2/jb/330/go - hard linked to /export/home/usr2/jb/330/a1/a.out

____ /export/home/usr2/jb/330/a1.dat - hard linked to /export/home/usr2/jb/330/a1/data

____ /export/home/usr2/jb/330/a2.dat - symbolically linked to /export/home/usr2/jb/330/a1/data2

____ /export/home/usr2/fac/Mail/inbox - regular file

____ /export/home/usr2/jb/330/a1/a.out - regular file

____ /export/home/usr2/jb/330/a1/data - symbolically linked to /export/home/usr2/fac/a1.d1

____ /export/home/usr2/jb/330/a1/assignment1.c - hard linked to a1.c

____ /export/home/usr2/jb/330/a1/a1.c - regular file

____ /export/home/usr2/jb/330/a1/back - directory

____ /export/home/usr2/jb/330/a1/data2 - symbolically linked to /export/home/usr2/fac/a1.d2

____ /export/home/usr2/jb/330/a1/www - hard linked to /www

____ /export/home/usr2/jb/330/a1/back/a11.c - regular file

____ /export/home/usr2/jb/330/a1/back/a12.c - regular file

____ /export/home/usr2/jb/330/a1/back/a13.c - regular file

____ /export/home/usr2/jb/330/a1/back/data1 - symbolically linked to /export/home/usr2/jb/330/a1/data

____ /export/home/usr2/jb/330/a1/back/data2 - hard linked to /export/home/usr2/jb/330/a1/data2

____ /export/home/usr2/jb/330/a1/back/d2 - symbolically linked to /export/home/usr2/jb/330/a1/back/data2