1. What command is used to restore files or file systems from a ufsdump?

a.  tar
b.  cpio
c.  ufscopy
d.  ufsrestore

Answer: d


2. "crontab ______" is used to edit the crontab.

a.  -o
b.  -l
c.  -r
d.  -e

Answer: d


3. The OpenBoot script editor ______ can be used to copy the contents of the script into a temporary buffer where it can be edited.

a.  nvstore
b.  nvnote
c.  nvalias
d.  nvedit

Answer: d


4. After editing an OpenBoot start script, the ______ command can be used to copy the contents of the temporary buffer to nvramrc. 

a.  nvedit
b.  nvstore
c.  nvalias
d.  nvunalias

Answer: b


5. The minimum RAM configuration for a SPARC or Intel system that will run Solaris 8 is ______.

a.  16 MB
b.  32 MB
c.  48 MB
d.  64 MB
e.  128 MB

Answer: d


6. The Solaris 8 Core install cluster requires ______ MB of space to install.

a.  418
b.  518
c.  618
d.  718

Answer: d


7. The Solaris 8 Entire Distribution install cluster requires ______ GB of space to install.

a.  1.2
b.  1.5
c.  1.9
d.  2.5

Answer: c


8. The ______ install cluster contains only the core cluster, plus OpenWindows and CDE.

a.  End User
b.  Core +
c.  Developer
d.  Entire Distribution

Answer: a


9. The ______ install cluster contains only the core cluster, OpenWindows and CDE, compiler tools and man pages.

a.  End User
b.  Core +
c.  Developer
d.  Entire Distribution

Answer: c


10. All of this information is required to be entered by the system administrator to perform a successful install, except:

a.  hostname
b.  IP address
c.  Ethernet address
d.  Subnet mask
e.  Geographic region
f.  Language support
g.  Name service

Answer: c
The Ethernet address is the pre-assigned MAC address for the NIC. This is not assigned by the system administrator. Be careful, Sun exams like to trip people up with the terms Ethernet address and IP address. Note that Ethernet address is the MAC and IP Address is the administrator-assigned IP address.


11. ______ will determine the number of software packages installed on the system.

a.  pkginfo -n
b.  pkgadd | wc -l
c.  pkginfo | wc -l
d.  pkglist | wc -l

Answer: c
Piping the output of pkginfo to "wc -l" will count the number of lines, therefore indicating the number of packages.


12. The command "pkgchk <package_name>" does not display any output if the package is properly installed.

a.  True
b.  False

Answer: a


13. The command ______ is used to remove a software package.

a.  pkgadd -d
b.  pkgremove
c.  pkgrm
d.  pkguninstall

Answer: c


14. To view installed patches on a system, the command ______ or ______ is used.

a.  patchinfo -p
b.  patchadd -p
c.  patchls -p
d.  showrev -p

Answer: b,d


15. The functionality of pkgrm is now included as part of the functionality of AdminTool.

a.  True
b.  False

Answer: a


16. The command used to remove a patch is ______.

a.  pkgrm
b.  patchmv
c.  patchrm
d.  pkgadd -x

Answer: c


17. Run level ______ is best described as Multi-user with NFS capabilities.

a.  0
b.  1
c.  2
d.  3
e.  4
f.  5
g.  6
h.  S or s

Answer: d


18. The command "init 6" will cause the system to:

a.  Shutdown to run level 0 and then reboot to the state defined as default in inittab
b.  Shutdown to run level 0 and then poweroff
c.  Shutdown to run level 5 and then poweroff
d.  Shutdown to run level 5 and then reboot to the state defined as default in inittab

Answer: a


19. Run level ______ is best described as Administrative single-user mode.

a.  0
b.  1
c.  2
d.  3
e.  4
f.  5
g.  6
h.  S or s

Answer: b


20. The ______ command may be used to alter a user's password.

a.  chgpwd
b.  passwd
c.  passchg
d.  finger

Answer: b


21. The command ______ will show the time and date of the last system reboot.

a.  who -H
b.  who -t
c.  who -b
d.  who -r

Answer: c


22. The command ______ will show who is currently logged in.

a.  who -H
b.  who -t
c.  who -u
d.  who -b

Answer: c


23. Which of the following commands are utilized to manage user accounts?

a.  useradd
b.  userrm
c.  usermod
d.  userlist
e.  userpwd
f.  userdel

Answer: a,c,f


24. The ______ command will create a new group in /etc/group.

a.  groupmod
b.  groupdel
c.  groupadd
d.  groupinst

Answer: c


25. The login initialization file for a user with the Bourne shell is ______.

a.  $HOME/.shrc
b.  $HOME/.loginsh
c.  $HOME/.profile
d.  $HOME/.cshrc

Answer: c


26. The command "chown frank:guest rosy" will accomplish:

a.  The file "rosy" will be changed to ownership of user "frank" and group ownership "guest".
b.  The file "rosy" will be changed to ownership of both users "frank" and "guest".
c.  The file "frank" will be changed to ownership of user "guest" and group ownership "rosy".
d.  The file "guest" will be changed to ownership of user "frank" and group ownership "rosy"

Answer: a
Syntax: "chown <user>:<group> <file>"


27. The default umask is ______.

a.  011
b.  022
c.  055
d.  777

Answer: b


28. The command ______ is used to set a file ACL.

a.  setacl
b.  setfacl
c.  aclset
d.  aclfset

Answer: b


29. The utility ______ is an interactive way to monitor processes, displaying process information sorted by CPU usage.

a.  ps 
b.  topps
c.  prstat
d.  prtenv

Answer: c


30. The command "pkill -U frank mail" will:

a.  kill all the processes owned by "mail" with "frank" in the name.
b.  kill all the processes owned by "frank" with "mail" in the name.
c.  kill all the processes owned by users "frank" and "mail".
d.  kill all the processes owned by groups "frank" and "mail".

Answer: b


31. Solaris 8 supports which types of file systems:

a.  Disk-based
b.  Distributed
c.  Virtual
d.  Pseudo
e.  Network

Answer: a,b,d


32. All of the following are examples of Pseudo file systems, except:

a.  tmpfs
b.  swapfs
c.  fsfs
d.  pcfs
e.  procfs

Answer: d


33. All of the following are examples of Pseudo file systems, except:

a.  tmpfs
b.  swapfs
c.  fsfs
d.  procfs
e.  ufs

Answer: e


34. The file system used for CD-ROMs is ______.

a.  tmpfs
b.  cdfs
c.  hsfs
d.  pcfs

Answer: c


35. File systems listed in the ______ file are automatically mounted at system boot.

a.  /etc/disks
b.  /etc/mnttab
c.  /etc/vfstab
d.  /etc/dfs/sharetab

Answer: c
The file /etc/mnttab contains information about file systems currently mounted, not which file systems are to be mounted at boot.


36. The command ______ will mount a PC-formatted floppy at /mnt.

a.  mount /dev/floppy /mnt
b.  mount -F pcfs /dev/floppy /mnt
c.  mount -F pcfs /mnt /dev/floppy
d.  mmount /mnt /dev/floppy

Answer: b


37. The ______ directory is the directory where system libraries and binaries are primarily stored.

a.  /opt
b.  /export
c.  /etc
d.  /var
e.  /usr

Answer: e


38. The default signal associated with the pkill command is ______.

a.  SIGHUP (1)
b.  SIGINT (2)
c.  SIGTERM (15)
d.  SIGSTOP (23)

Answer: c


39. Which sub-command will list disk partition information in the format menu:

a.  printv
b.  print
c.  label
d.  vfstore

Answer: b


40. File permissions 2666 indicates:

a.  The file has permissions 666 and is setgid.
b.  The file has permissions 666 and is setuid.
c.  The file has permissions 666 and has a file ACL set.
d.  The file has permissions 666 and has the sticky bit set.

Answer: a


41. A user has a umask of 000. The user enters the command "touch file". What permissions will "file" have?

a.  644
b.  666
c.  777
d.  755

Answer: b


42. The command "gzip matt.tar" will create a file named ______.

a.  matt.gzip
b.  matt.gz
c.  matt.tar.gzip
d.  matt.tar.gz

Answer: d


43. What command-line argument is used with the ps command to display all processes?

a.  -e
b.  -l
c.  -a
d.  -A

Answer: a,d


44. What command-line argument is used with the ps command to display processes with the specified effective user-ID?

a.  -U
b.  -u
c.  -Y
d.  -n

Answer: b


45. What command lists the total number of files in the directory /export/home/dla?

a.  df -k /export/home/dla
b.  quot -f /export/home/dla
c.  du -s /export/home/dla
d.  quot -a /export/home/dla

Answer: c


46. What command will add read/write permission for user account guest and read-only permission for group account staff to file1 ACL?

a.  setfacl -c &nbsp; u+rw &nbsp; guest g+r &nbsp; staff &nbsp; file1
b.  setfacl -d &nbsp; u:guest:r w -,&nbsp; g:staff:r - - &nbsp; file1
c.  setfacl -m &nbsp; u:: r w -, &nbsp; g::r - - &nbsp; file1
d.  setfacl -m &nbsp; u:guest: r w -, &nbsp; g:staff:r - - &nbsp; file1

Answer: d


47. What command will add the SUNWast package from a cdrom ?

a.  pkgadd SUNWast
b.  pkgadd -d /cdrom/cdrom0 SUNWast
c.  pkgadd SUNWast -d /cdrom/cdrom0
d.  pkgadd -cdrom SUNWast

Answer: b


48. What command will collect & display diagnostic messages from the syslog?

a.  logview
b.  prtconf
c.  dmesg
d.  prstat

Answer: c


49. What commands will display the partition table?

a.  format
b.  partition
c.  prtvtoc
d.  prtconf

Answer: a,c


50. What command will display your current PATH variable?

a.  PATH
b.  echo $PATH
c.  show $path
d.  ls PATH

Answer: b


51. What command will remove all sub-directories of /widget and then the /widget directory itself?

a.  rmdir &nbsp; /widget
b.  rmdir &nbsp; /widget/*
c.  rm -rf &nbsp; /widget
d.  rmdir -rf &nbsp; /widget

Answer: c


52. The command "mv file1 file2" will accomplish:

a.  "file1" will be copied to "file2"
b.  "file1" will be moved to "file2" and both files will exist with the same contents
c.  "file1" will be moved to "file2" and "file1" will no longer exist
d.  "file1" and "file2" will be deleted

Answer: c
"file1" would be renamed to "file2" and "file1" would no longer exist.


53. What command would display file system usage by percentage?

a.  du
b.  df -k
c.  dfree
d.  quota

Answer: b


54. What command would you use to produce a list of what users are doing?

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

Answer: d


55. What does "ps" display when used without options or arguments?

a.  all jobs
b.  all process
c.  all jobs belong to the user
d.  all process belong to the user

Answer: c


56. What does "t" mean in "-rwx-----t"?

a.  readable
b.  searchable
c.  setgid
d.  sticky bit

Answer: d


57. What does the command "cd ." do?

a.  changes your working directory to /
b.  changes your working directory to your home directory
c.  executes without error but accomplishes nothing at all
d.  displays hidden file names

Answer: c
The command "cd ." simply changes to the current directory, therefore accomplishing nothing.


58. What does the command "cd ../frank" accomplish?

a.  changes working directory to /frank
b.  displays the contents of /frank
c.  changes working directory to the subdirectory "frank"
d.  changes working directory to one directory hierarchy up and then to the subdirectory "frank"

Answer: d
