
1. What is an illegal character for use in the host name?

a.  letter
b.  number
c.  slash (/)
d.  underscore (_)

Answer: c
While for DNS purposes, underscore is technically not permitted, but in Solaris it is valid.


2. What is Internet Protocol (IP)?

A.  A unique number used by networked systems
B.  A 32-bit address
C.  A 64-bit address
D.  A hostname

Answer: a,b


3. What is the standard output?

a.  tap
b.  terminal
c.  printer
d.  cdrom

Answer: b


4. What is the login initialization file for (1) sh, (2) csh and (3) ksh?

a.  (1) .login &nbsp; (2) .profile &nbsp; (3) .profile
b.  (1) .profile &nbsp; (2) .profile &nbsp; (3) .login
c.  (1) .profile &nbsp;	(2) .login &nbsp; (3) .profile
d.  (1) profile &nbsp; (2) login &nbsp; (3) profile

Answer: c


5. What is the absolute (1) and symbolic (2) mode used for the setgid permission?

a.  (1) 1000	&nbsp; (2) t
b.  (1) 2000    &nbsp; (2) s
c.  (1) 4000	&nbsp; (2) s
d.  (1) 8000	&nbsp; (2) t

Answer: b


6. What is the absolute mode of the setuid permission?

a.  1000
b.  2000
c.  4000
d.  8000

Answer: c


7. What is the command to quit and discard any changes in the vi text editor?

a.  :wq!
b.  :w!
c.  :q!
d.  :q

Answer: c


8. What is the command to search for files and their full paths?
 
a. search
b. findfile
c. locate
d. find

Answer: d


9. What are the contents of file /etc/nodename?

a.  the domain name
b.  the machine host name
c.  the network name that the machine is connected to
d.  the remote machine name

Answer: b


10. What are the contents of /etc/skel?

a.  template of shell scripts
b.  default login scripts
c.  kernel system files
d.  host's name information

Answer: a


11. What is the correct format of crontab file ?

a.  time, date, command
b.  time, owner, command
c.  date, time, command

Answer: a


12. What is the default Korn shell prompt when logged in as root?

a.  #
b.  $
c.  %
d.  &

Answer: a


13. What is the default shell for the Solaris environment?

a.  C shell
b.  Korn shell
c.  Bourne shell
d.  DOS shell

Answer: c


14. What is the default spool directory for packages?

a.  /var/spool/patch
b.  /var/spool/pkg
c.  /var/sadm/pkg
d.  cdrom

Answer: b


15. What is the difference between at and crontab?

a.  crontab jobs are scheduled to run once, at jobs are scheduled to run many times
b.  crontab is the scheduler, at executes the commands
c.  at is the scheduler, crontab executes the commands
d.  crontab jobs are scheduled to run many times, at jobs are scheduled to run once.

Answer: d


16. What is the lp command-line argument to identify the printer to send the file to for printing?

a.  -o
b.  -d
c.  -p
d.  -n

Answer: b


17. What is the numerical group for the sysadmin group ?

a.  0
b.  10
c.  14
d.  1001

Answer: c


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

a.  $HOME
b.  /
c.  parent directory
d.  ~/home

Answer: b


19. What network address is used as a loopback address?

a.  255.255.255.0
b.  127.0.0.1
c.  255.0.0.1
d.  255.0.0.0

Answer: b


20. What permissions are needed to change to a directory and list its contents?

a.  r--
b.  rw-
c.  r-x

Answer: c


21. Which system file specifies the default run level?

a.  /etc/system
b.  /etc/rc2
c.  /etc/default/system
d.  /etc/inittab

Answer: d


22. What signal is sent to the process when the command "kill 4220" is executed?

a.  SIGINT
b.  SIGKILL
c.  SIGTERM
d.  SIGHUP

Answer: c


23. What signal is sent to the process when the command "kill -9 4220" is executed?

a.  SIGINT
b.  SIGKILL
c.  SIGTERM
d.  SIGHUP

Answer: b


24. What is standard default file permission?

a.  rw-r--r--
b.  rwxr-xr--
c.  rw---x-x
d.  rwxrwxrwx

Answer: a


25. What two types of notation are used to specify file permissions?

a.  absolute and variable
b.  octal and absolute
c.  symbolic and absolute
d.  variable and symbolic

Answer: c


26. What type of a file is this ?
lrwxrwxrwx   1 root   root   17 Apr 26 1996 whodo -> ../usr/sbin/whodo

a.  hard link
b.  soft link
c.  alias
d.  inadvertent link

Answer: b


27. What type of device name does the mount command expect?

a.  physical
b.  instance
c.  logical raw
d.  logical block

Answer: d


28. What would the command "alias dir ls" accomplish in the C shell?

a.  nothing, the syntax is invalid for the C shell
b.  change the default behavior of the ls command
c.  allow you to enter "dir" instead of "ls" when you want to list directory contents
d.  nothing, the C shell does not support aliases

Answer: c


29. What's the default file and directory permission?

a.  644 and 766
b.  644 and 755
c.  655 and 766
d.  655 and 755

Answer: b


30. What's the meaning of the command chmod 4750 filename?

a.  set UID
b.  set GID
c.  set sticky bit
d.  unset UID

Answer: a
The 4 at the beginning of the value indicates a set UID permission.


31. What is a software package cluster?

a.  A logical collection of related software packages.
b.  A collection of all software packages.
c.  A collection of various files and directories.

Answer: a


32. When creating a new file system, which is preferred?

a.  mkfs /dev/dsk/c0d1s7
b.  newfs -v /dev/rdsk/c0d1s7
c.  mkfs_ufs sd7
d.  newfs /dev/dsk/c0d1s7

Answer: b


33. When executed, an rc script named K40cron would ______.

a.  start the cron process
b.  stop the cron process
c.  process before K85lp
d.  process after K85lp

Answer: b,c


34. When the crontab command is executed by the user without any command line arguments, what happens?

a.  contents of the crontab are displayed
b.  it reads from standard input
c.  invokes the ed text editor to modify the crontab
d.  an error is displayed

Answer: b


35. When using admintool to add a user, the information in the Account Security section is stored in what file?

a.  /etc/passwd
b.  /etc/shadow
c.  /etc/group
d.  /etc/hosts

Answer: b


36. When using admintool to add a user, what is a valid choice for the Password field?

a.  Leave blank
b.  Enter a password
c.  No password - setuid only
d.  Normal password

Answer: c,d


37. When using pgrep, what command line argument will display both the PID and the program name of the matched processes?

a.  -f
b.  -n
c.  -l
d.  -p

Answer: c


38. When you install a system, which partitions are included by default?

a.  /opt
b.  /usr
c.  /var
d.  /

Answer: b,d


39. Where are the crontab files located?

a. /var/spool/crontabs
b. /usr/spool/crontabs
c. /var/spool/cron/crontabs
d. /usr/spool/cron/crontabs

Answer: c


40. Which are valid printer ports?

a.  /dev/term/a
b.  /dev/term/b
c.  /dev/term/ttya
d.  /dev/dsk/c0t0d0s3

Answer: a,b


41. Which Bourne shell command changes to your login directory ?

a.  cd
b.  cd ~
c.  cd /home
d.  cd $HOME

Answer: a,b,d


42. Which command is correct when you boot from CD-ROM?

a.  boot cdrom
b.  b sd (0,30,1)
c.  boot cd
d.  b sd (0,6,2)

Answer: a


43. Which commands can edit an existing file?

a.  vi file
b.  vi -p file
c.  vi -r file
d.  vi

Answer: a,c
Simply entering "vi" will begin an edit buffer for a new file, but will not edit an existing file.


44. Which command defines the default ACL entries for the directory shlog ?

a.  setfacl -d u::r w -, g::r w -, o:r - - /shlog
b.  setfacl -m d:u::r w -, d:g::r w -, d:o:r - -, d:m:r - - /shlog
c.  setfacl -d d:u::r w -, d:g::r w -, d:o:r - -, d:m:r - - /shlog
d.  setfacl -s u::r w -, g::r w -, o:r - - /shlog

Answer: b


45. Which command can delete text in vi?

a.  x
b.  d1G
c.  ~
d.  Esc

Answer: a,b


46. Which command displays shell variables for Bourne and C shells?

a.  env
b.  printenv
c.  set
d.  list

Answer: a


47. What is the file used to configure the Kernel?

a. /etc/kernel
b. /etc/system
c. /etc/settings
d. /boot/system

Answer: b
The /etc/system file contains all the configurations that the kernel needs to operate. These include the path the kernel searches for modules, the root file system type and device if different from the default, and any kernel or module parameters that need to be changed from their default values. It also includes any modules that need to be loaded as part of the kernel initialization, rather than when they are first used, and any modules that are specifically not to be used. The system file is read once, at boot time. Any changes to the system file require the system to be rebooted.


48. What is the command used to delete a package?

a. pkgrm
b. pkgremove
c. pkgmv
d. pkgdel

Answer: a


49.  What is the problem of the password "Mississippi3"?

a. You must have at least one special character or a number in the first 8 digits
b. It is too long
c. It is a dictionary word
d. It has too many repeated characters

Answer: a


50. Which of the following commands can invoke data compression? 

a. tar
b. zcat
c. gzcat
d. jar
e. compress
f. uncompress

Answer: d,e
Remember, tar does not compress. It simply packages files together into a single uncompressed tar file.
	

51. Which configuration parameters are set up in Solaris 8 Operating Environment custom selection?
 
a.	FS layout
b.	system printer selection 
c.	Software cluster configuration 
d.	quotas 
e.	64 bit support

Answer: a,c,e


52. Which keys in vi can make the cursor move left, down, up, and right? 
         
a. h, &nbsp; j, &nbsp; k, &nbsp; l
b. y, &nbsp; u, &nbsp; i, &nbsp; o
c. g, &nbsp; h, &nbsp; j, &nbsp; k
d. l, &nbsp; k, &nbsp; j, &nbsp; h

Answer: a


53. Which characters in vi in command mode can change the cursor to last line mode?

a. ;,  |,  ?
b. :,  /,  ?

Answer: b


54. How do you change a user's primary group?

a. chgrp -u
b. usermod -g
c. useradd -g
d. grpchg -u

Answer: b


55. Which option for the usermod command can allow a duplicate user ID?
         
a. -a
b. -d
c. -o
d. -p

Answer: c


56. Which command displays a listing of all files one screen at a time?

a.  ls -la  |  more
b.  ls -la: more
c.  ls -ls
d.  ls -la more

Answer: a


57. Which command expects raw device names?

a.  format
b.  mount
c.  df
d.  fsck

Answer: a,d


58. Which command is used to show user and group information for a user?

a.  id
b.  whoami
c.  who
d.  whodo

Answer: a
