System Administration Self Evaluation Test [ SA 2 ]


Instructions
This self evaluation test is designed for junior to mid-level Unix sysadmin. There are 20 multiple choice questions to be answered. Please read all the choices before clicking on the right one. If a question has more than one right choices then you have to click better of those. Also you must attempt all the questions before clicking on "Test" button at the bottom of the page.

Q 1 Which of the following steps is not needed for a newly added user in order to login?
   Assign a password to the user login    Enter username, uid, gid and other information in password and group files
   Create user home directory and change user and group id on the directory to that of the user    Create user login initialization files such as '.profile' and '.login'
 
Q 2 Which of the following statements is FALSE with regards to captive accounts?
   Captive accounts are created by making a single program as user's login shell in passwd file    Captive accounts should never be allowed to run programs that allow shell escape or execute another commands
   A captive account should never have a login initialization file such as '.profile'    Most captive accounts are created by assigning them restricted shell such as Rsh
 
Q 3 Which of the following is FALSE with regards to cron facillity?
   If both 'cron.allow' and 'cron.deny' files are missing then only root is allowed to run cron    If user is not listed in 'cron.deny' and 'cron.allow' does not exist then he will not be allowed to use cron
   'crontab -e' command allows users to modify and install cron in single step    A '%' sign in crontab entry after the command specifies the standard input to that command
 
Q 4 Which one of the following statements is FALSE with regards to filesystem mount?
   A filesystem unmounted when a process is busy writing to it will result in forced 'fsck' before it can be mounted again    'fsck' pass number in fstab file should be different for 2 filesystems on the same physical disk drive for optimum performance
   When umounting a filesystem 'fuser' command can be used to determine if any process is using that filesystem    'fsck' pass number parameter should be set to zero in order disable checking for swap filesystems
 
Q 5 Which of the following steps is not needed in order to add a filesystem on a new disk?
   Create system specific device files if they dont exist by using mknod or makedev or similiar commands    Create an entry for the filesystem in the filesystem table such as fstab
   Create disk partitions and lable it using programs such as format    Create a filesystem on the partition using newfs or mkfs command
 
Q 6 What is the result of execution of the following command?
# find / -type f \( -perm -2000 -o -perm -4000 \) -print
   Lists all the files with sizes between 2000 to 4000 bytes    Lists all the files and directories with 000 permissions
   Lists all the setuid and setgid programs on the system    Lists all the files older than 2000 days but not older than 4000 days
 
Q 7 What is the result of execution of the following command?
$ dump 0ucf /dev/nrst2 /dev/rdsk2
   It performs full backup of all the filesystems of rdsk2 device onto non-rewinding cartridge tape nrst2 and updates dumpdates file    It performs incremental backup of all the filesystems of rdsk2 device onto non-rewinding cartridge tape nrst2 and updates dumpdates file
   It performs full backup of all the filesystems of nrst2 device onto non-rewinding cartridge tape rdsk2    It performs incremental backup of all the filesystems of rdsk2 device onto non-rewinding cartridge tape nrst2
 
Q 8 Which of the following statements is FALSE with regards to sendmail.cf file?
   Dw entry defines hostname and DD as local domain name    DF entry defines the forwarder hostname and CF as other forwarder names
   CV entry on relaying host defines the external host    DR entry defines transport method such as 'tcp' or 'uucp'
 
Q 9 What is the major difference between BSD and System V 'ps' command?
   System V memory pages are displayed in terms of pages whereas with BSD its kilobytes    BSD output does not show process priority number as on System V but show nice number
   System V does not show STAT field but shows S which has similar information    BSD output lists processes in decreasing CPU usage order whereas System V lists processes as per thier PID order
 
Q 10 Which of the following is not a characteristic of System V print subsystem?
   'lpsched' handles sending print requests to appropriate printer    'lpadmin' can be used to set default print destination
   'accept' and 'enable' commands are used to start printer and enable queues    'lpr' command adds the job to print queue by copying the file to the spool
 
Q 11 Which one of the following statements is FALSE with regards to 'uptime' command?
   As a rule of thumb load average of under 3 reported by 'uptime' is considered OK    'uptime' reports amount of time system has been up and the load average since then
   The load average as reported by uptime means average number of processes in run queue for the given interval    Load average should be divided by number of processors on multiprocessor machine in order to get an estimate of system load
 
Q 12 Which of the following commands display static routes?
   netstat -nr    ifconfig -a
   route    tcpdump
 
Q 13 What is the result of execution of following command?
$ ps -ef | grep "jack" | awk '{print $2}' | xargs kill -9
   It tries to kill all the processes belonging to 'jack' user    It tries to kill all the processes belonging users whose username contains word 'jack' and also try to kill all the processes containing word 'jack' including grep in this command
   It tries to kill all the processes containing string 'jack'    It tries to kill all users whose username contain word 'jack'
 
Q 14 What is the function of NFS daemon 'biod'?
   It handles mount requests on NFS server    It performs block I/O operations on NFS client
   It handles RPC requests on NFS server    It manages file locking on NFS client
 
Q 15 What is defined as major device number in I/O subsystem?
   Its the number of instance of a device    It identifies if device is block or character device
   It defines the type of device driver    Its the device interrupt number
 
Q 16 Which of the following commands will display disk space usage per user for a filesystem?
   du    df
   quot    fuser
 
Q 17 How do you disable the message of the day display?
   Remove 'cat /etc/motd' line from .profile    Create '.hushlogin' file in the home directory
   Remove 'cat /etc/motd' line from .login    Create '.motd' file in the home directory
 
Q 18 Which of the following resouce limits cant be controlled by user using shell 'limit' command?
   Coredump size    Shared memory size
   File size limit    Stack size
 
Q 19 What is a zombie process?
   Its a process waiting for exit status from child process    Its a buggy process hanging in infinite loop
   Its a process structure of an exited process waiting to be cleared by parent process    Its a process which can't be killed by any signal
 
Q 20 Which of the following innovations to Unix was not introduced by System V variants?
   Interprocess Communications Facility (IPC)    STREAMS framework for device drivers
   Shared library    Motif GUI