+ All Categories
Home > Documents > Chap01 Directory Hierarchy

Chap01 Directory Hierarchy

Date post: 04-Apr-2018
Category:
Upload: navakanth-kv
View: 224 times
Download: 0 times
Share this document with a friend

of 14

Transcript
  • 7/30/2019 Chap01 Directory Hierarchy

    1/14

    1AITA\SWBU\SOLARIS\08

    Introducing the Solaris OEDirectory Hierarchy

  • 7/30/2019 Chap01 Directory Hierarchy

    2/14

    2AITA\SWBU\SOLARIS\08

    Introducing / (root) Subdirectories

    Directory hierarchy of the Solaris OE is organized for administrative convenienceLogically, all directories fall below the / (root) directory

    Important System Directories/ - The root of the overall file system namespace/bin - A symbolic link to the /usr/bin directory. It is thedirectory location for the binary files of standard systemcommands

  • 7/30/2019 Chap01 Directory Hierarchy

    3/14

    3AITA\SWBU\SOLARIS\08

    /dev - The primary directory for logical device names. Thecontents of this directory are symbolic links that point todevice files in the /devices directory

    /devices - The primary directory for physical device names /etc - Holds host-specific configuration files and databases for

    system administration /export - The default directory for commonly used shared file

    systems

  • 7/30/2019 Chap01 Directory Hierarchy

    4/14

    4AITA\SWBU\SOLARIS\08

    /home - The default directory or mount point for a usershome directory/kernel - The directory of platform-independent loadablekernel modules that are required as part of the boot process/mnt - A convenient, temporary mount point for file systems/opt - The default directory or mount point for add-onapplication packages

  • 7/30/2019 Chap01 Directory Hierarchy

    5/14

    5AITA\SWBU\SOLARIS\08

    /platform - The directory of platform-dependent loadable kernelmodules

    /sbin - The single-user bin directory that contains essentialexecutables that are used during the boot process and in manualsystem-failure recovery

    /tmp - The directory for temporary files. The directory is clearedduring the boot sequence

  • 7/30/2019 Chap01 Directory Hierarchy

    6/14

    6AITA\SWBU\SOLARIS\08

    /usr - The directory that contains programs, scripts, andlibraries that are used by all system users. (usr - UNIXsystem resources)

    /var - The directory for varying files, which usually includestemporary, logging, or status files

  • 7/30/2019 Chap01 Directory Hierarchy

    7/14

    7AITA\SWBU\SOLARIS\08

    Introducing File Components

    File Names

    File names are the objects most often used to access andmanipulate files. A file must have a name that is associatedwith an inode

  • 7/30/2019 Chap01 Directory Hierarchy

    8/14

    8AITA\SWBU\SOLARIS\08

    Inodes Inodes are the objects the Solaris OE uses to record

    information about a file. In general inode contain two parts First, inodes contain information about the file, including

    its owner, its permissions, and its size

    Second, inodes contain pointers to data blocksassociated with the file Inodes are numbered, and each filesystem contains its

    own list of inodes.

    When a new file system is created, a complete list of new inodes is also created in that file system

  • 7/30/2019 Chap01 Directory Hierarchy

    9/14

    9AITA\SWBU\SOLARIS\08

    Data Blocks Data blocks are units of disk space that are used to store

    data

    Regular files, directories, and symbolic links make use of data blocks Device files do not hold data

  • 7/30/2019 Chap01 Directory Hierarchy

    10/14

    10AITA\SWBU\SOLARIS\08

    Identifying File Types

    Solaris supports a standard set of file types that are found in

    nearly all UNIX-based operating systems Four main file types:

    Regular or ordinary files Directories Symbolic links Device files

  • 7/30/2019 Chap01 Directory Hierarchy

    11/14

    11AITA\SWBU\SOLARIS\08

    Regular files, directories and symbolic links all store one or more types of data

    Device files do not store data, instead, device files provideaccess to devices

    The character in the first column of information that the ls-l command indicates the file type

  • 7/30/2019 Chap01 Directory Hierarchy

    12/14

    12AITA\SWBU\SOLARIS\08

    - Regular files

    d Directories l Symbolic links b Block-special device files

    c Character-special device files

  • 7/30/2019 Chap01 Directory Hierarchy

    13/14

    13AITA\SWBU\SOLARIS\08

    Creating New Hard Links

    #ln file1 file2Creates a new hard link named file2 for file1.Both the files will have the same inode number (can beverified using #ls -li)

  • 7/30/2019 Chap01 Directory Hierarchy

    14/14

    14AITA\SWBU\SOLARIS\08

    Removing Hard Links

    Deleting one of the files has no effect on the other file. #rm file1 will remove file1 and will have no effect on file2


Recommended