Solaris 2.6 System Administration 1 Questions
This document contains some quetions derived from various resources, the aim is to provide some form of preparation to students who intend to take the Solaris 2.6 System Administration part I.
This document covers all chapters of the Solaris System Administration course. More questions are in the pipeline, hence this document will be updated. This document may be obtained freely for personal use from http://vlee.net/. The author welcomes all constructive suggestions to improve this document.
Instructions
There are three types of questions as below:
-
- Multiple choices , choose a number of correct answers
-
- Multiple choice , choose one correct answer
- Fill in the blanks
Questions
- The Solaris 2.x systems include ?
- The SunOS TM operating system based on SVR4 Unix Operating System
- The HP-UX TM kernel
- The ONC+ TM family of published networking protocols and distributed services
- The Common Desktop Environment 1.x application development platforms
- The Open Windows TM 3.x application development platforms
- The three main parts of the unix operating system are:
- memory, swap space and file system
- kernel, daemons and shell
- file structure, virtual memory and kernel
- kernel, shell and file structure
- swap space, daemons and shell
- The core functions of the operating system do not include:
- the provision of graphical user interface to users
- the management of devices and memory
- the management of processes and daemons
- the scheduling and execution of commands
- What is the default shell for the Solaris computing environment?
- Bourne shell
- Korn shell
- C shell
- Perl shell
- Bash shell
- Which are the shells provided by the Solaris 2.6 installation CD?
- C shell
- Perl shell
- Bourne shell
- Korn shell
- Bash shell
- Fill in the blanks :
- The directory which contains executable commands, system administration utilities and library routines is ___________
- The directory that contains genunix (the kernel) is __________
- The directory that contains passwd file is __________
- The directory that contains unbundled and third party software applications is _________
- The directory that contains users' home directory is _________
- The following items are the advantages of NIS+ has over NIS except:
- Storage of machine names and addresses
- Secure data access
- Hierarchical and decentralized network administration
- Very large name space administration
- Internet host lookups
- Access to resources across domains
- Incremental updates
- What are the valid Sun System Configurations:
- Mainframe systems
- Client systems
- Sun Micro systems
- SPARC systems
- Standalones
- Servers
- Which are the valid client system configurations:
- Network client
- Diskless client
- SunStation
- JavaStation
- JiniStation
- Autoclient
- The core software configuration cluster contains :
- compilers and debugger
- extended hardware support for OEM components
- drivers required to run OpenWindows and CDE
- Openwindows and CDE
- compiler tools and man pages
- The Developer software configuration cluster contains :
- compilers and debugger
- extended hardware support for OEM components
- drivers required to run OpenWindows and CDE
- Openwindows and CDE
- compiler tools and man pages
- Write down a single command (including the full path) and its options that will change the system runlevel to 0 after a grace period of 10 minutes and will send the message "===System is going down in 10 minutes====" to all active users of the system.
_________________________________________________
- What is the OK prompt command to find out the machine model, presence of keyboard, ROM revision, memory, serial number, ethernet address and host ID?
- printenv
- banner
- env
- uname -a
- Which command is used to retrieve additional information about a command at OK prompt?
- help
- man
- info
- seek
- question
- What command is used at OK prompt to show the aliases?
- echo alias
- showalias
- alias -a
- displayalias
- devalias
- Write down the commands at OK prompt to
(a) find out whether the system will automatically boot to CDE/OpenWindow upon reboot
(b) set the corresponding environment variable such that the system will not automatically boot up into the login manager
(c) make the previous change persists:
- (a)________________________
- (b)________________________
- (c)________________________
- Write down the command to boot a SPARC machine into Single user mode with a CDROM:
- ______________________________
- Softwares distributed as packages on a Solaris 2.x system should contain:
- the readme.txt file
- files describing that particular package
- the actual files to be installed
- scripts that should be run before and after installation
- scripts that should be run during removal
- Which of the following commands will display all packages available at a particular pathname:
- pkginfo -l pathname
- pkginfo -d pathname -a
- pkginfo -d pathname
- pkginfo -p pathname -o all
- Which of the following commands are wrong:
- pkgrm -d package_name
- pkgrm package_name
- pkgrm -d package_path package_name
- pkgadd -d package_path package_name
- pkgchk -d package path
- What is the file (giving its full path) that is modified by pkgadd and pkgrm and contains the listing of all packages installed on a system?
- _______________________________
- The package command information could be obtained from:
- package_path/package_name/pkgmap
- package_path/package_name/pkgcom
- package_path/package_name/info
- package_path/package_name/commands
- package_path/package_name/script
- package_path/package_name/pkgscript
- What is the spooling directory used when the following command is issued:
# pkgadd -d package_path -s spool package_name
- __________________________________
- Packages can be removed from the spooling directory with which command below:
- pkgadd -r spooling_path package_name
- pkgrm -s spooling_path package_name
- pkgrm -s package_name
- pkgrm -r package_name
- Which of the following directories store the historical information about the patches installed in a system:
- /etc/sadm/patches
- /opt/patch/log
- /var/sadm/patch
- /var/sadm/install
- /etc/install/patch
- Which of the following commands can be used to display tha patches information:
- patchadd -d
- patchadd -p
- patchadd -i
- patchrm -i
- patchinfo
- showrev -p
- What if the /var/sadm/patch directory is tempered:
- the patches added to a system may not function properly
- the system will crash more frequently
- the patches cannot be uninstalled
- it will not affect the system at all
- Which of the following cannot be configured through admintool:
- users
- groups
- hosts
- printers
- parallel ports
- serial ports
- software
- Which is the directory that stores all the default hidden initialization file in the users' home directories when they were first created:
- /etc/default/login
- /etc/default/
- /etc/skel/
- /etc/profile/
- /etc/home/
- /etc/.login/
- Choose the correct statements:
- Passwords are stored in /etc/passwd file
- Normal users can be assign any UID between 51 and 65535
- A user may belong to a maximum of 15 secondary groups
- The primary group of root user is GID 1 (other)
- Which of the following are valid fields in /etc/passwd?
- encrypted password
- user ID
- loginID
- primary groupID
- default shell
- secondary groupID
- password aging
- What is the file that defines the default fields of /etc/shadow e.g. the period of which a user must change his/her password and the minimum period that the user must change his/her password. This file also specifies the minimum password length?
- /etc/default/passwd
- /etc/default/shadow
- /etc/default/useradd
- /etc/default/login
- /etc/default/skel
- What are the initialization files if a user uses C shell :
- /etc/profile
- /etc/.profile
- $HOME/.profile
- /etc/.login
- /etc/skel/local.cshrc
- $HOME/.cshrc
- $HOME/.login
- Which of the following command:
- Gives read and write permission to the owner of a new file, read permission to group, and no permissions to others
- Gives all permissions to the owner of a new directory, read and execute permissions to group, and no permissions to others
- umask 022
- umask 027
- umask 755
- umask 644
- umask 750
- Determine the option of the setfacl command that is used to replace the entire ACL with the new ACL:
- Which slice of a hardisk in unix file system represents the entire disk by definition:
- Which of the following command report on all mounted file systems and include the number of files:
- quot -af
- quot -mn
- quot -an
- quot -mf
- Which of the following directory contains executable commands, system administration utilities, and library routines:
- /root
- /sbin
- /usr
- /lib
- /opt
- /bin
- Which of the following statements are true regarding Solaris 2.6 environment:
- A file system can consist of more than one slice (without volume manager)
- A file system can be no larger than one Tbyte in size
- All physical devices are accessed by memory-resident drivers
- The raw device path is used by the commands, such as mount, utilities, and processes that reference the slice as a file system
- The block device access path is used by utilities and processes that do not use the device file system but transfer data a byte at a time.
- Which Solaris utility is used to partition a hardisk ?
- fdisk
- format
- newfs
- makefs
- fsck
- The Veritas application specially formats the disks and internally keeps track of the portions of a disk that belong to a particular volume. All Veritas volume are consisted of pieaces named subdisks . What is the maximum number of subdisks ?
- What is the main advantage of using a striped virtual file system compared to concatenated virtual file system?
- We can create a volume that is larger than one disk
- We can use more than one slice in a single file system
- We can increase the size of a file system while it is in use
- We can increase the file system Input/Output performance
- We can have special data compression algorithms that increase the storage capacity
- Choose the correct statements about ethernet :
- All workstations on the network hear all of the traffic (broadcast network).
- The access method for ethernet is carrier sense, multiple-access with collision detect (CSMA/CD)
- A workstation attached to the ethernet network may not write and listen to an idle network simultaneously
- Ethernet address (hardware or machine address code (mac) address) has 64-bit number
- A host with 227.14.90.77 as its IP address belongs to :
- Class A networks
- Class B networks
- Class C networks
- Class D networks
- None of the above
- What files should be modified if one were to change the hostname of a system?
- /etc/hosts
- /etc/vfstab
- /etc/defaultrouter
- /etc/nodename
- /etc/host.equiv
- /etc/hostname.le0
- Which of the following commands may be used to perform remote backup with crontab ?
- rlogin
- rsh
- ssh
- ksh
- telnet
- The command that may be used to identify the users who are logged in on other systems on the network is ____________________ .
- Which of the following commands will modify the /etc/dumpdates
- ufsdump 0c /dev/rdsk/c1t0d0s2
- ufsdump 0cf /dev/rmt/0 /dev/rdsk/c1t0d0s2
- ufsdump 0cf /dev/rmt/0n /dev/rdsk/c1t0d0s2
- ufsdump 0ucf /dev/rmt/0 /dev/rdsk/c1t0d0s2
- If you have multiple dump files in a magnetic tape and you want to be sure that the tape drive will skip to the end of the recorded media before you dump more files into the media, choose one of the following commands:
- mt eom
- ufsdump 0ucf /dev/rmt/0n /dev/rdsk/c1t0d0s1
- mt retension
- mt forward
- mt fsf 10
- mt last
- Is it possible for the Solaris 2.6 NFS Server to share a file hierarchy that overlaps one that is already shared?
- NFS servers can share peripherals like modems and printers. The above statement is :
- Which is the configuration file for nfs server?
- /etc/nfstab
- /etc/nfs/nfstab
- /etc/dfs/dfstab
- /etc/sharetab
- /etc/vfstab
- /etc/mnttab
- What is the command that is used to find out the nfs resources shared by a server?
- nfshares
- nfsshares
- shares
- dfshares
- netshares
- Choose the correct statements about Print Protocol Adapter , a component of the LP Print Software :
- it does not include the complete Berkeley Software Distribution (BSD) print protocol implementation
- it allows multiple spooling systems to coexist on the same host and have access to the BSD print protocol
- it is extensible by third party software developers to support other printing protocols
- it contains SunSoft Print Client
- it does not support network printing
- it supports printing with forms, print wheels and character sets
- it enable flexible printer management like fault recovery and notification
- it allows grouping of printers into classes to provide load balancing
- Choose the packages included in Solaris 2.6:
- SUNWpcr (SunSoft Print - Client)
- SUNWpcu (SunSoft Print - Client)
- SUNWpsr (SunSoft Print - LP Server)
- SUNWpsu (SunSoft Print - LP Server)
- SUNWpsf (PostScript Filters)
- SUNWscplp (SunSoft Print - Source Compatibility)
- SUNWlpr (LP Print Service)
- SUNWlpu (LP Print Service)
- SUNWlps (LP Print Service)
- Which of the following is the spooling directory for pending print requests?
- /var/spool/lp
- /var/lp/spool
- /etc/spool
- /etc/lp/spool
- /tmp/lp/spool
- What are the functions of Print Filters ?
- to identify the terminfo database entry containing the control sequences to initialize the printer
- to print forms and forms with text and graphics instead of blank paper
- to initialize a printer before sending a print job to the printer
- to convert the content of requests to the type of content accepted by the destination printer
- to track the status of every job to enable users to remove jobs and system administrators to manage print jobs
- Which directory contains the database entries that dictate the control sequences to initialize the printer?
- /usr/lib/lp/
- /etc/lp/
- /usr/share/lib/terminfo
- /etc/lp/terminfo
- Which of the following user environment variables may be used to specify the default printer?
- LPRCONF
- PRINTERS
- PRINTER
- LPDEST
- LPDEFAULT
- What are the files that may be used to set the default printer?
- /etc/defaultprinter
- $HOME/.printer
- $HOME/.printers
- /etc/printers.conf
- /etc/printer.conf
- What are the processes or daemons running in the print server for lp or lpr commands to work (in the print client) in Solaris 2.6?
- inetd
- in.lpd
- lpsched
- lpd
- lpNet
- Which of the following command cannot be used to manipulate print requests?
- continue
- cancel
- enable
- disable
- accept
- reject
- Which of the following commands may be used to move a print request from one queue to the other?
- lp -m
- lp -v
- lpadmin -m
- lpmove
- What is the command to send a print request to printer printer1 to print file1 without banner?
- lp file1
- lp -n printer1 file1
- lp -d printer1 -o nobanner file1
- lp -p printer1 -o nobanner file1
- lp -p printer1 -b file1
- What is the command to display all status information output and the acceptance and idle or busy status of all printers?
- lp -a
- lp -d
- lp -o
- lp -p
- lp -s
- lp -t
- What is the command to display the idle or busy status and availability of all printers?
- lp -a
- lp -d
- lp -o
- lp -p
- lp -s
- lp -t
- What are the commands to cancel a specific printer request waiting in the queue or the print request currently printing?
- lp -k <request-ID>
- lp -k <printer>
- lp -k <request-ID> <printer>
- cancel -u <user> <printer>
- cancel <request-ID> <printer>
- What is the terminology used to describe a named group of printers created with the lpadmin command?
- cluster
- group
- class
- circle
- school
- Which of the following commands are valid to create a class of printers and enable them to queue jobs?
- #lpadmin -p printer1 -c class1
#lpadmin -p printer2 -c class1
#accept class1
- #lpadmin -p printer1 -c class1
#lpadmin -p printer2 -c class1
#enable class1
- #lpadmin -d printer1 -g class1
#lpadmin -d printer2 -g class1
#enable class1
- #lpadmin -d printer1 -g class1
#lpadmin -d printer2 -g class1
#accept class1
- What is the command that will movee a specified print job to the top of the queue?
- lp -q print-request -H top
- lp -u userid -H first
- lp -i print-request -H immediate
- lp -p print-request -H first
- Which of the following command will set the priority to n while printing a file?
- lp -d printer -P n file
- lp -p printer -b n file
- lp -d printer -q n file
- lp -p printer -P n file
- lp -d printer -p n file
- When you use the command: #reject printer1 ,
- printer1 will reject additional print requests on the printer
- printer1 will move or cancel any requests that are currently queued to the printer
- printer1 will be temporarily unavailable (equivalent to pressing "online/offline" on the printer itself)
- printer1 will will accept print jobs
- When you use the command: #disable printer1 ,
- printer1 will reject additional print requests on the printe
r
- printer1 will move or cancel any requests that are currently
queued to the printer
- printer1 will be temporarily unavailable (equivalent to pres
sing "online/offline" on the printer itself)
- printer1 will accept print jobs
- Which of the following command may be used to check the status of the print queues?
- lp -q
- lp -s printername
- lp -q printername
- lpstat -o
- lpstat -p printername
- Which of the following files may be use to control the usage of crontab?
- /etc/crontab/cron.allow
- /etc/crontab/cron.deny
- /etc/cron.d/cron.allow
- /etc/cron.d/cron.deny
- /etc/cron.access
- /etc/crontab.ACL
- Which of the following may be considered as serial devices?
- serial ports
- SCSI ports
- alphanumeric terminals
- modems
- serial printers
- What are the serial interfaces?
- Small Computer System Interface
- Serial Device Peripheral Interface
- Data Terminal Equipment
- Data Communications equipment
- Serial Data Interface
- Serial Communication Equipment
- Pin 2 of the RS-232-C 25 pin connector for a Data Terminal Equipment is used to
- transmit signal
- receive signal
- Which of the following are true of null modem cable ?
- A null modem cable provides means for two DTE devices to communicate with each other without a modem
- A null modem cable crosses pins 2 and 3
- A null modem cable crosses pins 7 and 8
- Only pins 2,3 and 7 are required for communications between two DTE devices
- The tip command
- may be used to connect a remote host using a modem
- uses full duplex connection over a parallel line
- will cause a file called .tiprc in the user's home directory to be executed
- may use the following environment variables: REMOTE, PHONES, HOST, HOME, SHELL
- uses the following files: /etc/phones, /etc/remote, /var/adm/aculog and ~/.tiprc
- Which of the following module is used to perform standard terminal I/O processing?
- ldterm
- sacadm
- pmadm
- ttyadm
- nlsadmin
- The SAF (Service Access Facility)
- may be used for monitoring of the parallel ports
- uses the port monitor process to manage the USB port
- uses ttymon to manage serial ports
- manages network ports using the listen daemon
- Which of the following daemons is used for detecting incoming login requests and dispatching these requests appropriately, setting terminal modes and baud rates?
- listen
- logind
- ttymon
- ttyd
- seriald
- What file is created by ttymon and contains successful logins information ?
- /var/adm/logins
- /var/ttylogs
- /var/tty/logins
- /var/adm/utmp
- /var/logs/ttylog
- What command can be used to set the values of the positional parameters?
- setenv
- setparam
- setpos
- setpp
- set
- Which shell reserved variable stores the exit status of a script of programme?
- Which command do we use to test whether a file is nonzero in length?
- [ -d file ]
- [ -f file ]
- [ -r file ]
- [ -s file ]
- [ -w file ]
- [ -x file ]
- The sh command is a useful one to debug shell scripts. Which option of the sh command may be used to print commands and their arguments as they are executed?
- To start the login server from a command line, we can type:
- /usr/dt/bin/dtlogin -daemon
- /usr/dt/bin/dtlogin -s
- /usr/dt/bin/dtlogin -e
- /usr/dt/bin/dtconfig -e
- /usr/dt/bin/dtconfig -start
- Where can we locate files like Xerrors and Xpid to obtain errors produce by the login manager and its process ID?
- /var/log/login/
- /etc/loginmanager/
- /var/logs/
- /var/errors/
- /etc/dt/
- What are the types of sessions used by a Session Manager in Solaris 2.6?
- Original Session
- Universal Session
- Initial Session
- Current Session
- Future Session
- Last Session
- Home Session
- Session Manager stores the configuration files and the state of the session of each user in:
- $HOME/.sesmgr/
- $HOME/.logind/
- $HOME/.dt/
- $HOME/.sessions/
- $HOME/.default/