Home Operating System Solaris What does pkgadd command do? - It installs a signed or unsigned software package.- Removes any existing packages installed with the same name as of that we are adding.Add package to the system using pkgadd.Syntax: pkgadd –a admin_file –d device-name pkgid Verify if the package is installed successfully #pkgchk –v pkgid Example: pkgadd -d /cdrom/cdrom0/solaris10/product SUNwaudio The above example is to install the package from cdromExplain how to kill a process.1.Become a superuser or root user to terminate the process of the another user.2.Obtain the PID of the process to be terminated.Syntax: $ps –fu Example: $ps –fu abc abc 325 322 3 jan 12 ? 11:04 /usr/openwin/bin/sun The process ID is displayed in the first column of the output.Terminate the process using kill command. $ kill pid Default signal number is -15 {SIGKILL} -9 {SIGTERM Verifying if the process is terminated or not. $pgrep
Post a Comment