Unix Operating System

Document Sample
Unix Operating System Powered By Docstoc
					                 Unix Operating System

                          The UNIX file system (2)




    Computer Science Department (FLAS-KU) -    อ้ างอิงจาก http://apollo.lsc.vsc.edu
1   Prasertsak U.
    Unix File System Organization
     Every Unix has a similar organization of the file system. A
       listing of the root directory ("/")




    Computer Science Department (FLAS-KU) -
2   Prasertsak U.
    Unix File System Organization
    bin -     contains system binary executables
    boot -    contains files necessary for the system to boot up
    dev -     contains device files which function as an interface to the various
              hardware drivers. These will vary greatly depending on the version of
              Unix.
    etc -     contains system configuration settings
    home -    contains the user's home directories
    lib -     contains system libraries
    mnt -     used to hold mount point directories for removable storage
    proc -    contains a virtual file system which holds information about running
              processes and the state of the system.



    Computer Science Department (FLAS-KU) -
3   Prasertsak U.
    Unix File System Organization
    sbin -    contains static binary executables needed for the system
    tmp -     temporary directory used by many applications
    usr -     contains binaries, data and settings for various applications. The structure
              of /usr mimics the root file system organization.
    var -     stores logs, data for services and other transient data.




    Computer Science Department (FLAS-KU) -
4   Prasertsak U.
    Unix File System Organization
     Your Home Directory.
       The home directory is unique for each user account on the system. This
       directory can be managed completely by the user and will not be accessible to
       other users. The home directory can be referenced by the "~" character.




    Computer Science Department (FLAS-KU) -
5   Prasertsak U.
    Unix File System Organization
     Symbolic Links.
       Symbolic links are part of the Unix file system. A pointer to another file or
       directory on the file system. Symbolic links have not permissions of their own.
       The target file or directory permissions will determine the access privileges.




    Computer Science Department (FLAS-KU) -
6   Prasertsak U.
    Unix File System Organization
     Symbolic Links.
       Symbolic links are created with the ln command with the "-s" option:




                                              รายละเอียดของ hello.c จะเหมือนกับ tt.c
                                              เนื่ องจากเป็ นข้ อมูลที่ เดียวกัน




    Computer Science Department (FLAS-KU) -
7   Prasertsak U.
    Unix File System Organization
     Hidden File.
       In Unix files whose names begin with the dot character, ".", are considered
       hidden. Most commands will not display these files by default. The ls command
       with the "-a" option will display all hidden files.




    Computer Science Department (FLAS-KU) -
8   Prasertsak U.
    Unix File System Organization
     The "." and ".." Directories
       Two special hidden directories listed within each directory are named "." and
       "..“
        The "." directory refers to the working directory.
        The ".." directory always refers to the directory above the working directory.




    Computer Science Department (FLAS-KU) -
9   Prasertsak U.
     Unix File System
      Sample organized




     Computer Science Department (FLAS-KU) -
10   Prasertsak U.
     Unix File System Organization
      The df Command.
        The df command is used to report how much of the file systems are in use.




     Computer Science Department (FLAS-KU) -
11   Prasertsak U.
     Unix File System Organization
      The “mount" and “umount" Commands
        mount will "attach", or mount, the device to a directory on the file system. This
        directory is called the "mount point" and must exist before attempting to mount
        a file system. Typically only the super-user has the ability to mount file systems.




     Computer Science Department (FLAS-KU) -
12   Prasertsak U.
     Unix File System Organization
      The “mount" and “umount" Commands
        To remove a mounted file system the umount command




     Computer Science Department (FLAS-KU) -
13   Prasertsak U.
     Unix File System Organization
      Some hosts have the system configured so that a user can mount
        certain file systems as defined by the file /etc/fstab




     Computer Science Department (FLAS-KU) -
14   Prasertsak U.

				
DOCUMENT INFO
Shared By:
Categories:
Tags:
Stats:
views:6
posted:4/10/2012
language:
pages:14