User:Syno~mediawikiwiki

Directory Structure
Description of File System Components: In Solaris all directories, drives are treated as files and hence the structure is called as file system. Click on Image below for snapshot.

[/] Root It is the topmost directory which contains all OS directory structure. It is root user’s default home directory.

/export It contains the file system which is to be exported to the n/w user while using the services such as NFS, NIS, Samba.

/export/home It contains Solaris user’s home directory.

/lib It contains all the library function for storage of module as well as holds kernel information.

/dev It contains logical naming convention for specific devices. These files control various i/o devices such as HDD, printer, etc.

/devices It contains physical device naming convention.

/usr It contains system configuration information and commands.

/usr/bin It contains binary executables which can be used to perform specific task performed by super user as well as regular user.

/usr/sbin It contains binary executables to perform administrative task which can be only executed by super user.

/tmp It contains temporary files. It is the default directory suggested to store internet downloaded data. By default this directory has special permission i.e. Sticy bit set hence every user can access data stored in this directory but only owner of the file or subdirectory can change/modify it. The drawback of this directory is that if the system is powered down then all the content of this directory gets flushed out.

/etc It contains all the system and service configuration files such as /etc/passwd, /etc/shadow, /etc/inittab, /etc/vfstab, /etc/dfstab etc.

/var It is called as variable or varying directory and it holds system logs.

/mnt It is the mount point to access different file systems.

/opt It is optional directory in which we can store third party applications.

/proc It contains process details of the currently running process on the system.

Package Administration with CSW
Link: http://www.opencsw.org/

Package Administration
Link: http://sharetab.com/unix-package-administration-in-solaris/

After installing the Solaris Operating Environment, it is necessary or some times essential to install additional software packages or remove software form the system. You need to apply new patch or package which can be used for security issue, performance issue, hardware related case or any other, but one must be comfortable with basic commands for package administration.

Managing Packages
Packages can be managed by:
 * 1)    Command line
 * 2)    Admin Tool
 * 3)    Solaris Product registry ( Graphical User Interface)
 * 4)    Web Start Installer ( Graphical User Interface)

Managing Packages Using Command-Line
Commands:


 * 1) # pkginfo   : To display package information.
 * 2)  # pkgadd    : To install packages.
 * 3)  # pkgrm     : To remove packages.
 * 4)  # pkgchk    : To check package status.
 * 5)  # pkgtrans  : To translate the package from data stream format to file system                    format & vice versa.
 * 6)  # pkgparam : To display parameter of the packages.
 * 7)  # pksinfo | wc -l : To count the number of packages installed on the system.

Other useful Commands : Syntax: # pkgchk  Ex:  # pkgchk SUNWman Note: It checks the package status, installed files, relative path names,relative links & binary executables.
 * 1) pkgchk  ( Checking Package Status)

If package has any trouble that is binary are corrupted, links are broken, path names are overwritten by some means then only error will be displayed, otherwise shell prompt appears.

It lists information of the files used for package make.
 * 1) # pkgchk -l

It checks packages ,relative path names.
 * 1) # pkgchk -l -p

todetermine if the binary executable on the system disk or not.
 * 1) # pkgchk -l -p

To remove all the packages from the spool directory.
 * 1) # pkgrm  -s 

To remove specific package from spool directory.
 * 1) # pkgrm  -s  < pack_name>

Note: spool means stored not installed.

File System Overview
http://sharetab.com/solaris-file-sysytem-overview/