Sun Solaris Interview Questions And Answers

Sun Solaris Interview Questions And Answers

from Codingcompiler. These Sun Solaris interview questions were asked in various interviews conducted by top multinational companies across the globe. We hope that these interview questions on Sun Solaris will help you in cracking your job interview. All the best and happy learning.

In this Sun Solaris Interview Questions Blog You’re Going to learn

Sun Solaris Interview Questions
Sun Solaris Interview Questions and Answers

Sun Solaris Multiple Choice Questions
The Best Sun Solaris Interview Questions And Answers
Advanced Sun Solaris Interview Questions And Answers

Sun Solaris Interview Questions

  1. What is Sun Solaris?
  2. Explain About Admin Command?
  3. How does Solaris operating system boots?
  4. Is It Possible To Create Swap In New Hard Disk Without Format ?
  5. What is sticky bit in Solaris?
  6. Explain About The Command Prof_attr?
  7. What Is An Alternative To The “top” Command On Solaris?
  8. Cannot Open ‘/etc/path_to_inst’” ?
  10. How can we find RAM size in solaris server ?

Sun Solaris Interview Questions and Answers

Q. What is Sun Solaris?

Answer: Sun Solaris system is a Unix operating system developed by sun microsystems. It is Superseded their SunOS in 1993. Oracle Solaris, as it is now known, has been owned by Oracle corporation since Oracle’s aquisition of Sun in January 2010.

Q. Explain About Admin Command?

Answer :

Local Kerberos services can be managed by administering policies, key tabs and principles by managing the admin command. Admin.local is used to master KDC and it does not require any authentication. On the server login information is passed through a secured server. It checks the principle name by the value of the user environment variable.

Q. How does Solaris operating system boots?

The boot procedure of the operating system can be divided into four categories namely:

1. Post
2. Obprom
3. Init phases
4. Kernel initialization

Q. Is It Possible To Create Swap In New Hard Disk Without Format?

Answer :

“ No “ without label the drive, you can’t do anything

Q. What is sticky bit in Solaris?

Ans :- 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. Explain About The Command Prof_attr?

Answer :

This forms the RBAC profile database. It displays the relationship between among the profiles in the database. It also gives authorizations between navigation for those files. One of the samples is

Q. What Is An Alternative To The “top” Command On Solaris?

Answer :

# prstat –a

Q. Cannot Open ‘/etc/path_to_inst’” ?

Answer :

System can not find the /etc/path_to_install file. It might be missing or corrupted and needs to be rebuild.

To rebuild this file  boot the system with -ar option :

ok>boot -ar

Press enter to select default values for the questions asked during booting and select yes to rebuild /etc/path_to_install

The /etc/path_to_inst on your system does not exist or is empty. Do you want to rebuild this file [n]? y

system will continue booting after rebuilding the file.


Answer: KERNEL INITIALIZATION: ufsboot load the kernel (generic unix), kernel will load all the necessary devices modules to mount the root partition to continue the booting process.

Init Phase : It will started by executing of /etc/init program and start other process reading the

                   /etc/inittab files, as the directory in the /etc/inittab files.

Q. How can we find RAM size in solaris server ?

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

Sun Solaris Multiple Choice Questions

Q. ————- When enabled creates a detailed audit trail for all processes on the system

  1. Solaris basic audit module
  2. Solaris Basic Security Audit
  3. Solaris Security Module
  4. Solaris Basic Security Module

Correct Answer is Option C):

Solaris Basic Security Module

Q. Which of the following methods can be used to install Solaris OS?

Option A):

graphical console

Option B):

text console

Option C):


Option D):

physical media

Correct Answer is Option D):

physical media

Q. You Want to login to a Solaris system. What is Your minimum requirement?

  1. None
  2. A default login shell
  3. A login ID
  4. A login (home directory

Correct Answer is Option B):

A login ID

Q. What is the top directory of the file system?

Option A): /

Option B): ~ home

Option C): $home

Option D): parent directory

Correct Answer is Option A): /

Q. Which of the following can be backed up using the ufsdump command?

a. File systems

b. Files

c. Volume table of contents

d. Directories

Option A): a, c, d

Option B): a, b, d

Option C): All

Option D): a, b ,c

Correct Answer is Option B):

a, b, d

Q. What is the default shell of Solaris?

Option A): korn,unix, bourne

Option B): c,korn,bourne

Option C): c,sun,unix

Option D): sun,os/2,bsd

Correct Answer is Option B):


Q. You want to display both instance as well as physical device names. Which command would you use?

Option A): device

Option B): display

Option C): dmesg

Option D): sysdef

Correct Answer is Option C):


Q. You want to shut down a system. Which of the following commands is the best way to do it?

Option A): reboot

Option B): halt

Option C): shutdown

Option D): Stop-A

Correct Answer is Option C):


Q. You wan to verify if a software package was installed successfully. Which command would you use?

Option A): pkgchk

Option B): pkgask

Option C): pkgadd

Option D): pkginfo

Correct Answer is Option D):


The Best Sun Solaris Interview Questions And Answers

Q. Consider the following crontab entry: ?59 23 13 * 5 /wipe.disk? What time will this cronjob run?


That means: on Black Friday, your hard drive will get wiped out.

==> (on 13th and Friday) 23:59, /wipe.disk will be running________________________________________If the 13’th Day of the month is Friday, the job will run. (week day starts from Sunday day 1)

Q. What is “Piping” solaris?


piping:- sending the output of a command to the input of another is called piping.

some examples are:
$cal | wc
will output total line’s,word’s and character’s
$cal | wc | wc
will output total line’s,word’s and character’s
A unix pipe provides a one-way flow of data.

For example, if a Unix users issues the command
$who | sort |lpr

then the Unix shell would create three processes with two pipes between them:

A pipe can be explicitly created in Unix using the pipe system call. Two file descriptors are returned–fildes[0] and fildes[1], and they are both open for reading and writing. A read from fildes[0] accesses the data written to fildes[1] on a first-in-first-out (FIFO) basis and a read from fildes[1] accesses the data written to fildes[0] also on a FIFO basis.

When a pipe is used in a Unix command line, the first process is assumed to be writing to stdout and the second is assumed to be reading from stdin. So, it is common practice to assign the pipe to write device descriptor to stdout in the first process and assign the pipe read device descriptor to stdin in the second process. This is elaborated below in the discussion of multiple command pipelines.

Q. What is the difference between init 1 and init s?


If you switch from multiuser mode to init s and switch it back to multiuser mode.then remote users automatically reconnect to the system. Where as in the case of init 1. they have to reconnect manually means they have to re-login

Q. Explain the types of installations in Solaris? 


There are several ways to install Solaris. They are

– Solaris Installation Program – This is a general way of Solaris installation through a CD/DVD-ROM.

Solaris Installation Program over Network – Installing Solaris from server that has access to Solaris disc images.

Custom Jumpstart Installation – This method is a command-line interface that can implicitly install or upgrade several systems using the profile created.

Solaris Flash Installation – This installation enables to use a common reference of the Solaris OS on a master system.

WAN Boot – This installation enables to boot and install over a wide area network by using HTTP.

Solaris Live Upgrade – This method is used to upgrade the system while current operating environment is running.

Solaris Zones – After installing Solaris OS, Zones are configured and installed. The global zone is the instance of the operating environment currently running.

Q. What are NIS daemons?


NIS services are provided by five daemons and managed by service management facility (SMF).

– Ypserv – Server Process
– Ypbind – Bind Process
– Ypxfrd – High speed map transferring
– Rpc.yppasswdd – NIS password update
– Rpc.ypupdated – Modifies mappings

Q. Describe about FSCK ?


FSCK Utility is for checking and repairing the files system inconsistencies, It has 5 phases

Phase 1: Check Blocks and Sizes – checks inodes for inconsistencies

Phase 2: Check Path-Names – checks directory <-> inode consistencies

Phase 3: Check Connectivity – checks that all directories are connected to the file system

Phase 4: Check Reference Counts – compares link count information from Phases 2 & 3, correcting discrepancies

Phase 5: Check Cylinder Groups – checks free blocks and the used inode maps for consistency

Phase 6: Salvage Cylinder Groups – update the tables to reflect any changes made in earlier passes

Q. What is the difference between dsk and rdsk ?


dsk: Block level devices, FS Which are formatted and mounted that device is called block device.

rdsk: Raw level device or character level device

Q. Explain about Port of Telnet, ssh, ftp, http, nfs, ntp?

ftp port is  21

ssh port is 22

Telnet port is 23

ntp port is 123

smtp port is 25

printer port is 515

Q. How to find the reserved space of disk ?


# fstyp –v /dev/rdsk/c1d0s0 | grep minfree

minfree 6% .

Advanced Sun Solaris Interview Questions And Answers

Q. How to retrieve the corrupted partition ?


# fsck -F ufs –o b=32 /dev/rdsk/c0t0d0s2 

Q. Brief /etc/mnttab ?


/etc/mnttab file is a mntfs file that provides read-only info about mounted FS on the local server.

Q. What are the main differences between solaris 10 and 9?


The main difference in solaris 9 & solaris 10 is “SMF(Solaris Management Facility)”. In solaris 9, if any service goes down then we should restart all services this is the disadvantage. But in solaris 10,if any service goes down then that particular service we can select and enable it instead of restarting all services.

Q. What is LOM and how do you access it?


Lights out management is the abbrevation and some of the Sun severs a use this fecility to emotly operate the Sun sever by conneting a rollover cable from LOM port to a laptop. There is no need to turn on the server , but if the server is just powered , you can connect the laptop to the LOM port and operate the conected Server. you have to inert the ip address of the LOM port in the IE and by this way you can acess the Server to operate it

Q. What is the command can reconfigure devices with out reboot?



Q. What is the command to do an interactive boot from the ok prompt?

Ans :- After Power on, press, STOP+A at the ok prompt type, ok>boot –a

Q. How to Formating a disk in solaris?

Answer :- add the disk , run devfsadm command then format command > select disk , enter the required details for formating
create a new partition table using the format command.

then create a new file system on it using

newfs /dev/rdsk/c0t0d0s0
mkdir /mnt
mount /dev/dsk/c0t0d0s0 /mnt
then put its entry in /etc/vfstab

Q. Which command display diagnostics in ok boot prompt?

Answer :-– Diagnostic Test Commands

1) watch-net   % To check network connections
2) test net    % To test network conection
3) probe-scsi  % To find the devices attached to SCSI BUS.

Q. What command will display the VTOC for disk c0t0d0s0?

Ans :- prtvtoc /dev/rdsk/c0t0d0s0

Q :- What is the difference between container and zones?

Ans :- Zones: A zone is a virtual operating system abstraction that provides a secured environment where applications run.The applications are protected from each other to provide software fault isolation.

Container: zone + resource management The ability to control resource usage for processes,task and zones.Resources can be CPU level,RAM,virtual memory,Kernel level tables etc.

Q :- What does the pkgadd command do?

Ans :- 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

Q. How do you remove a swap space?


– To remove unneeded swap space, become a super or root user.
– Remove the swap space
# /usr/sbin/swap –d /path/filename
– Edit the /etc/vfstab file and delete the entries from swap file
– Retain the disk space so that we can use it
#rm /path/filename
– Verify if the swap file is available or not.
#swap –l.

Q. How do you break the root password?

Enter in to the single use mode.
ok boot cdrom –s
# mount /dev/dsk/c0t0d0s0 /a
# cd /a/etc
# TERM = vt100
# export TERM
# vi shadow

Here, remove the roots encrypted password string then save and exit.

# cd/
# umount /a
# init6

This will restart the system and now the root login can be entered without password.


  1. Spring Boot Interview Questions
  2. GIT Interview Questions And Answers
  3. Network Security Interview Questions
  4. CheckPoint Interview Questions
  5. Page Object Model Interview Questions
  6. Apache Pig Interview Questions
  7. Python Interview Questions And Answers
  8. Peoplesoft Integration Broker Interview Questions
  9. PeopleSoft Application Engine Interview Questions
  10. RSA enVision Interview Questions
  11. RSA SecurID Interview Questions
  12. Archer GRC Interview Questions
  13. RSA Archer Interview Questions
  14. Blockchain Interview Questions
  15. Commvault Interview Questions
  16. Peoplesoft Admin Interview Questions
  17. ZooKeeper Interview Questions
  18. Apache Kafka Interview Questions
  19. Couchbase Interview Questions
  20. IBM Bluemix Interview Questions
  21. Cloud Foundry Interview Questions
  22. Maven Interview Questions
  23. VirtualBox Interview Questions
  24. Laravel Interview Questions
  25. Logstash Interview Questions
  26. Elasticsearch Interview Questions
  27. Kibana Interview Questions
  28. JBehave Interview Questions
  29. Openshift Interview Questions
  30. Kubernetes Interview Questions
  31. Nagios Interview Questions
  32. Jenkins Interview Questions
  33. Chef Interview Questions
  34. Puppet Interview Questions
  35. RPA Interview Questions And Answers
  36. Demandware Interview Questions
  37. Visual Studio Interview Questions

Leave a Comment