Solaris Q&A

[vc_row][vc_column css_animation=”fadeInLeft”][vc_column_text css=”.vc_custom_1563366786742{background-color: #1e73be !important;}”]

Solaris Interview Questions & Answers

[/vc_column_text][/vc_column][/vc_row][vc_row][vc_column css_animation=”fadeInLeft” width=”1/2″][vc_tta_accordion color=”peacoc” active_section=”1″][vc_tta_section title=”What Is An Alternative To The “top” Command On Solaris?” tab_id=”1563366839713-288e1f28-3fb5″][vc_column_text]

  1. # prstat –a

[/vc_column_text][/vc_tta_section][vc_tta_section title=”Is It Possible To Create Swap In New Hard Disk Without Format ?” tab_id=”1563366839725-07c86a15-e008″][vc_column_text]

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

[/vc_column_text][/vc_tta_section][vc_tta_section title=”Is It Possible To Edit The Crontab Using Vi, It Is Not Recommended But It Is Possible By Editing?” tab_id=”1563366870039-a5a27e68-ba87″][vc_column_text]

  • # vi /var/spool/cron/crontabs/root
  • The command to edit the crontab is #crontab -e

[/vc_column_text][/vc_tta_section][vc_tta_section title=”What Is Mean By Paging & Server Average Time?” tab_id=”1563366870621-633fbfbc-104b”][vc_column_text]

  1. If a disk shows consistently high reads/writes along with , the percentage busy (%b) of the disks is greater than 5 percent, and the average service time  (svc_t) is greater than 30 milliseconds, then  one of the following action needs to be taken

[/vc_column_text][/vc_tta_section][vc_tta_section title=”Cannot Open ‘/etc/path_to_inst’” ?” tab_id=”1563366871053-7e56898b-06cb”][vc_column_text]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.[/vc_column_text][/vc_tta_section][vc_tta_section title=”How Will You Comment Error Line In /etc/system File ?” tab_id=”1563366871512-08be7c5f-02dd”][vc_column_text]# Vi /etc/system

(To comment the error line in /etc/system files, we have to use *)[/vc_column_text][/vc_tta_section][vc_tta_section title=”What Is Difference Between Incremental Backup And Differential Backup?” tab_id=”1563366872648-6491c29e-73fb”][vc_column_text]Incremental: Only those files will be included which have been changed since the last backup.

Differential: Only those files will be included which have been changed since the last Full backup.[/vc_column_text][/vc_tta_section][vc_tta_section title=”How Many Ufsdump Level?” tab_id=”1563366873862-6342c0cf-3e9a”][vc_column_text]

  1. 0-9 level0 = Full Backup1-9 = Incremental backup of file,That have changed since the last lower level backup.

[/vc_column_text][/vc_tta_section][vc_tta_section title=”What Is Different Between Crontab And At Command?” tab_id=”1563366874384-7f076f42-b973″][vc_column_text]Crontab: job can be scheduled

At: Job can be a run once only[/vc_column_text][/vc_tta_section][vc_tta_section title=”Difference Between Ufs And Tar Command?” tab_id=”1563366874934-307a013e-a617″][vc_column_text]ufsdump: 

  1. Used for complete file system backup.
  2. It copies every thing from regular files in a file system to special character and block device files.
  3. It can work on mounted or unmounted file systems.


  1. Used for single or multiple files backup.
  2. Can’t backup special character & block device files.
  3. Works only on mounted file system.

[/vc_column_text][/vc_tta_section][vc_tta_section title=”Syntex To Execute A Ufsdump ?” tab_id=”1563366875426-cd1a53d6-cad8″][vc_column_text]

  1. # ufsdump 0uf /dev/rmt/1

[/vc_column_text][/vc_tta_section][vc_tta_section title=”To Check The Status Of The Media Inserted On The Tape Drive ?” tab_id=”1563366876080-cc7ea2ef-9bd8″][vc_column_text]

  1. # mt /dev/rmt/0 status

[/vc_column_text][/vc_tta_section][vc_tta_section title=”How Will You Take Ufsdump And Ufsrestore In A Sing Command Line?” tab_id=”1563366876664-9bf0cc97-4847″][vc_column_text]

  1. # ufsdump 0f  – /dev/rdsk/c0t0d0s6 | (cd /mnt/haz ufsrestore xf -)

[/vc_column_text][/vc_tta_section][vc_tta_section title=”What Is The Physical Device To Check The 2 Nodes Connect In Cluster ?” tab_id=”1563366877656-59172ddc-daf6″][vc_column_text]

  1. Physical fiber cable which is connect to the 2 nodes is called a HTEARTBEAT

[/vc_column_text][/vc_tta_section][vc_tta_section title=”Where Will Be The Configuration For Metadevice?” tab_id=”1563366879053-30c82481-8e32″][vc_column_text]#/etc/lvm/


#/etc/opt/SUNWmg/[/vc_column_text][/vc_tta_section][vc_tta_section title=”Explain Raid0, Raid1, Raid3?” tab_id=”1563366879880-0e0418a6-4b2d”][vc_column_text]RAID 0 Concatenation/Striping
RAID 1 Mirroring
RAID 5-Striped array with rotating parity.

  • Concatenation: Concatenation is joining of two or more disk slices to add up the disk space. Concatenation is serial in nature i.e. sequential data operations are performed serially on first disk then second disk and so on. Due to serial nature new slices can be added up without having to take the backup of entire concatenated volume, adding slice and restoring backup.
  • Striping: Spreading of data over multiple disk drives mainly to enhance the performance by distributing data in alternating chunks – 16 k interleave across the stripes. Sequential data operations are performed in parallel on all the stripes by reading/writing 16k data blocks alternatively form the disk stripes.
  • Mirroring: Mirroring provides data redundancy by simultaneously writing data on to two sub mirrors of a mirrored device. A submirror can be a stripe or concatenated volume and a mirror can have three mirrors. Main concern here is that a mirror needs as much as the volume to be mirrored.
  • RAID 5: RAID 5 provides data redundancy and advantage of striping and uses less space than mirroring. A RAID 5 is made up of at least three disks, which are striped with parity information written alternately on all the disks. In case of a single disk failure the data can be rebuild using the parity information from the remaining disks.

[/vc_column_text][/vc_tta_section][vc_tta_section title=”What Are The Daemons In Nis Server?” tab_id=”1563366881113-f9121936-b349″][vc_column_text]rpc.yppasswdd
rpc.ypupdated[/vc_column_text][/vc_tta_section][vc_tta_section title=”What Are Processing Daemon In Nis?” tab_id=”1563366881785-6e15add1-b404″][vc_column_text]Ypserv
Ypbind[/vc_column_text][/vc_tta_section][vc_tta_section title=”How To Boot The Solaris System In 64 0r 32 Bit Kernel?” tab_id=”1563366882305-b1532259-d1f3″][vc_column_text]For 64 bit:
# eeprom boot-file=”/kernel/sparc9/unix
OK printenv boot-file
OK settenv boot-file kernel/sparc9/unix

For 32 bit:
# eeprom boot-file=”/kernel/unix
OK printenv boot-file
OK settenv boot-file kernel/unix[/vc_column_text][/vc_tta_section][vc_tta_section title=”Which Command To Lock The User Account?” tab_id=”1563366882857-224b6fff-1aa6″][vc_column_text]

  1. # lk username

[/vc_column_text][/vc_tta_section][vc_tta_section title=”What Is Difference Between Hard And Soft Mount?” tab_id=”1563366883369-90fd4291-4e56″][vc_column_text]Hardmount: Normal file system mount used mainly for mounting local file systems. Once a file system is hard mounted, can use a normal filesystem untill its umount.

Soft mount: It allows automatic unmounting if the filesystem is idle for a specified timeout period. It is mainly used for network filesystems like NFS It can be configured using Autofs and the network filesystem can be soft mounted.[/vc_column_text][/vc_tta_section][vc_tta_section title=”To Find The Obp Environment Variable?” tab_id=”1563366884129-08b24047-33f0″][vc_column_text]

  1. OK printenv

[/vc_column_text][/vc_tta_section][vc_tta_section title=”How To Find Out The Shared File System From Server And Client ?” tab_id=”1563366884789-9abc262d-d66e”][vc_column_text]Server : # share  & dfmount
Client : # showmount –e (hostname) and dfshares[/vc_column_text][/vc_tta_section][vc_tta_section title=”How To Start / Stop The Nfs Server ?” tab_id=”1563366885385-b7ceaafc-b284″][vc_column_text]# /etc/init.d/nfs.server start
# /etc/init.d/nfs.server stop[/vc_column_text][/vc_tta_section][vc_tta_section title=”How To Delete “abc” Files Using Find Command ?” tab_id=”1563366886145-bee9408b-e545″][vc_column_text]

  1. # find / -name “abc” –exec rm {};

[/vc_column_text][/vc_tta_section][/vc_tta_accordion][/vc_column][vc_column css_animation=”fadeInRight” width=”1/2″][vc_tta_accordion color=”peacoc” active_section=”1″][vc_tta_section title=”How Do You Add The Disk Without Reboot The Server?” tab_id=”1563366843511-41c789b8-af2c”][vc_column_text]

  1. # devfsadm –c disk

[/vc_column_text][/vc_tta_section][vc_tta_section title=”How To Change The Hostname And Ethernet Address In Single Command ?” tab_id=”1563366843526-0c5a57c9-6639″][vc_column_text]

  1. # /usr/sbin/sys-unconfig

[/vc_column_text][/vc_tta_section][vc_tta_section title=”How To Enable And Disable The Dtlogin?” tab_id=”1563366889821-c59dc93b-d228″][vc_column_text]# /usr/dt/bin/dtconfig –e   ( enable)
# /usr/dt/bin/dtconfig –d   ( disable)[/vc_column_text][/vc_tta_section][vc_tta_section title=”How To Find The Kernel Bit Version Or Architecture?” tab_id=”1563366890381-fcd72d26-a776″][vc_column_text]

  1. # isainfo –kv

[/vc_column_text][/vc_tta_section][vc_tta_section title=”How To Set Passwd Never Expire For A User?” tab_id=”1563366890852-93f83a61-7edb”][vc_column_text]

  1. #passwd –x –1 (username)

[/vc_column_text][/vc_tta_section][vc_tta_section title=”Explain Setuid, Setgid And Stickybit?” tab_id=”1563366891349-3855cfb8-0855″][vc_column_text]

  • Setuid : When setuid permission set on a executable file, user who access the file is granted access permission of the owner of the file.

# find / -prem –4000

  • setgid : Permission similar to setuid, The process is changed to owner of the file.

# find / -prem –2000

  • Stickybit : It is a special permission that protect the files within a public writable directory. Stickybit permission set the shared directory, user can create a files or directory. But only by owner of the directory can modify or delete.

# find / -prem –1000


[/vc_column_text][/vc_tta_section][vc_tta_section title=”What Is Umask?” tab_id=”1563366892617-68d84c9f-ad55″][vc_column_text]

  1. UMASK is a Unix environment variable, which automatically sets file permissions on newly created files.

[/vc_column_text][/vc_tta_section][vc_tta_section title=”What Is Default Permission Of Files And Directory?” tab_id=”1563366893243-7b3e4143-edfe”][vc_column_text]file: 644
directory: 755[/vc_column_text][/vc_tta_section][vc_tta_section title=”What Is Default Permission Of /etc/passwd , /etc/shadow Files?” tab_id=”1563366893694-c40c5c57-464a”][vc_column_text]/etc/passwd:  644
/etc/shadow: 400[/vc_column_text][/vc_tta_section][vc_tta_section title=”As A User How He Can Change Is Passwd With Root Privilege.?” tab_id=”1563366894238-56765eb7-476d”][vc_column_text]

  1. Setuid to set on  /usr/bin/passwd  command

[/vc_column_text][/vc_tta_section][vc_tta_section title=”What Are Performance Tool Used?” tab_id=”1563366894761-cefa6f78-5ee7″][vc_column_text]

  1. Iostat ,vmstat , prstat , sar ,netstat, top

[/vc_column_text][/vc_tta_section][vc_tta_section title=”Which Service Assign Port No Dynamically?” tab_id=”1563366895233-b47b71e5-d335″][vc_column_text]

  1. Rpc service ( /etc/rpc)

[/vc_column_text][/vc_tta_section][vc_tta_section title=”What Is Nice And Renice Command Do?” tab_id=”1563366895689-32c2dd1c-2f16″][vc_column_text]To set the high priority for the process

-20 high priorities
+20 low priorities

Eg: # nice –20 oracle[/vc_column_text][/vc_tta_section][vc_tta_section title=”How Will You Restart The Inetd Process?” tab_id=”1563366896193-b7de074e-4aa1″][vc_column_text]# Pkill –HUP inetd[/vc_column_text][/vc_tta_section][vc_tta_section title=”Tell Me The Port For Telnet, Ftp,nis,ssh,nfs?” tab_id=”1563366896661-c1601891-ff1d”][vc_column_text]

  1. ftp = 21ssh = 22Telnet = 23nfs = 2049nis = 749

[/vc_column_text][/vc_tta_section][vc_tta_section title=”In Which File Port No’s Are Defined?” tab_id=”1563366897145-bd715615-6b78″][vc_column_text]

  1. # /etc/service

[/vc_column_text][/vc_tta_section][vc_tta_section title=”If Telnet Not Working, What Are The Thing To Be Checked?” tab_id=”1563366898190-bd64b875-6f87″][vc_column_text]Ping test, service enable or not in (/etc/inetd.conf), NIS problem

If telnet is not working, first of all you will not be get connected, login through console access and then find out with ps -ef | grep telnetd or Kill -1[/vc_column_text][/vc_tta_section][vc_tta_section title=”How Do You Check The Run Level?” tab_id=”1563366898613-ea3148b8-6723″][vc_column_text]

  1. # who –r

[/vc_column_text][/vc_tta_section][vc_tta_section title=”How Do You Check The No Of User Logged Into The System?” tab_id=”1563366899065-dee98f1e-de14″][vc_column_text]

  1. # who

[/vc_column_text][/vc_tta_section][vc_tta_section title=”How Will You Check The Process For Particular User?” tab_id=”1563366899553-442f4d85-be4f”][vc_column_text]# ps –U oracle


#ps –fu oracle | grep smon[/vc_column_text][/vc_tta_section][vc_tta_section title=”How To Check The No Of The Processor Available?” tab_id=”1563366900082-90b86e50-f710″][vc_column_text]

  1. # psrinfo –v

[/vc_column_text][/vc_tta_section][vc_tta_section title=”How To Bring The Process To Offline Or Online?” tab_id=”1563366901226-662be091-53d5″][vc_column_text]# psradm –f (no of the process)
# psradm –a –n ( no of the process)[/vc_column_text][/vc_tta_section][vc_tta_section title=”How To Find The Boot Path In Solaris?” tab_id=”1563366901678-e4db8b8b-020a”][vc_column_text]# prtconf –vp | grep bootpath


# eeprom[/vc_column_text][/vc_tta_section][vc_tta_section title=”What Is The Difference Between Dsk And Rdsk?” tab_id=”1563366902194-ca402eba-0802″][vc_column_text]DSK: Block level devices
RDSK: Raw level device or character level device[/vc_column_text][/vc_tta_section][vc_tta_section title=”What Is The Protocol Supported By Nfs?” tab_id=”1563366902674-b13d85eb-ef8e”][vc_column_text]

    1. UDP and TCP


WhatsApp us