SUN Solaris Interview Questions and Answers part 3

0
1372

Q: – What is sticky bit in Solaris?

Sticky Bit is a permission bit that protects the files with in a Directory. If the directory has sticky bit set, a file can be deleted by the owner of the file, the owner of the directory or root. This Prevents a user from deleting other users files from public directories . The sticky bit is displayed as the letter t in the execute field for 'others'.

Q: – What is ndd?

ndd utility is used to examine and set kernel parameters, namely the TCP/IP drivers.
To see which parameters are available for a particular driver, use the following ndd command:
# ndd /dev/hme \?

Q: – Setting parameters

ndd -set /dev/hme link_speed 1 ;
ndd /dev/hme link_speed ( to view the O/P)
eg To see which parameters are available  ARP, IP, ICMP, and TCP drivers
# ndd /dev/arp \? && ndd /dev/icmp \? && ndd /dev/ip \? &&  ndd /dev/tcp \?

Q: – What is an alternative to the ?top? command on Solaris?

prstat

Q: – What is /etc/system

Alternative for /etc/sysctl.conf ( linux)
The /etc/system file provides a static mechanism for adjusting the values of kernel variables. Values specified in this file are read at boot time and are applied. Any changes made to the file are not applied to the operating system until the system is rebooted.

Q: – How can we find RAM size in solaris server ?

In Solaris 10 you can find the RAM Size using sdtwsinfo command. This command gives complete Workstation Configuration Information in a pop up window.

Q: – What is jumpstart and what are the various steps used in it.

Jumpstart is used to manage operating system installation in many Information technology environments (corporate and otherwise) where Solaris operating system computers are widely used. It can provide easier installation (minor setup on central server, then one command on an installation "client" system to start it installing). It also allows completely consistent system installation on many systems over time – each install can have exactly the same system configuration and software tools../

1. Preparing for a jumpstart server (making export dir)
2. Setting up an Install server
3. Setting up a boot serve
4. Setting up configuration files
5. Making Rules
6. Verifying rules
7. Creating Profiles
8. Sysidcfg file
9. Add a host entry
10. Adding a Client
11. Starting The client Installation

Q: -What does the pkgadd command do?

To install packages in solaris
Adding package from CDROM
eg # pkgadd -d /cdrom/cdrom0/Solaris_9/Product SUNWgtar
Adding packages to spool directory and then install them
pkgadd -d /cdrom/cdrom0/Solaris_9/Product -s /var/spool/pkg SUNWgtar

Submitted By:-Jack          Email-ID: – jackj1065@gmail.com

SHARE

LEAVE A REPLY