| A | B |
| 1. What does the Kernel do and manage? | Controls the cpu resources |
| 2. What are two ways to copy a file into another directory? | using absolute or relative pathing |
| 3. How many characters must change when changing a password? | 3 |
| 4. What command will list all the files and directories by type? | ls -F |
| 5. List all files and directories that start with "abc" and end in "1" | ls [abc]*1 |
| 6. How do you use tar to open a file to see its contents? | tar -tf <filename> |
| 7. Which filesystem must be passed to the mount command to mount a DOS formatted floppy disk? | pcfs |
| 8. What command is similar in syntax to tar and also compresses? | jar |
| 9. How do you use tar to check for files in tape drives? | tar -tf |
| 10. Within partition menu of the format command, which single command should you type to use a predefined label that was previously saved? | select |
| 11. What is the function of the hash subcommand of the FTP utility? | to see the files when they come across the network |
| 12. Which command displays access control lists for a file? | getfacl |
| 13. What command will create an alias in Boot PROM that will make it through a power cycle? | nvalias |
| 14. What subcommand within the format utility when executed from the initial command menu allows you to select new disk? | disk |
| 15. What command do you use to show the run level? | who -r |
| 16. How do you shutdown a system so that when a power surge comes it will not damage the equipment? | nit 0, init 5, shutdown -s -i0, shutdown -s -i5 |
| 17. What command starts the rc run scripts? | init |
| 18. What is the command you use to mount a disk that has the high sierra filesystem? | mount -F hsfs -o ro /dev/dsk/c0t6d0s0 /cdrom |
| 19. What cluster configuration will not run on Intel? | Entire Distribution + OEM |
| 20. What two commands will list all the patches installed? | showrev -p & patchadd -p |
| 21. What is the command to install a patch? | patchadd |
| 22. How to do you show all files that start with "a" using grep? | grep '^a'* |
| 23. You go to KILL dtmail, what signal does the kill command send to dtmail? | 9 or SIGTERM or TERM |
| 24. How do you set setuid/segid permissions? | To enable setuid or setgid, use the chmod command and preface the numeric permissions assignment with a 4 to set the setuid or a 2 to set the setgid: chmod 4744 setuid_program chmod 2744 setgid_programor |
| 25. What two commands will work to "man" vfstab? | man vfstab & man -s5 vfstab |
| 26. What are the methods for viewing a list of processes? | ps -ef, pgrep, prstat, /usr/dt/bin/sdtprocess |
| 27. How do you load the drivers for a specific device? | devfsadm -c device_name |
| 28. What vi commands will put you into input mode? | -a, -A, -i, cw, and so on |
| 29. What vi command will find all instances of "robot warriors" and replace them with "mech warriors" | %s/robot warriors/mech warriors/g |
| 30. How do you use chmod to change the suid bit? | chmod g-s |
| 31. Where is the path_to_inst file located? | /etc |
| 32. What kind of information is stored in /export/home? | user information: home directories, shared file systems, client file systems |
| 33. Which table keeps track of mounted devices (not at boot time - and know its directory or path)? | /etc/mnttab |
| 34. How do you load the drivers for a specific device? | use either devfsadm -i or devfsadm -c |
| 35. When you do mget in ftp what command do you use to skip all the questions? | prompt |
| 36. How can you create an alias for a device? | nvalias or devalias |
| 37. What kind of information is stored in /etc/mnttab? | a list of the currently mounted file systems |
| 38. What initialization files run in Bourne and in what order? | /etc/profile then $HOME/.profile |
| 39. What initialization files run in Korn and in what order? | /etc/profile then $HOME/.profile then $HOME/.kshrc |
| 40. What permissions does umask 000 give to a file? | 666 |
| 41. How would you use the ls command to find out if there is a directory in the root directory / called kernel? | ls -F / or ls -ld /kernel |
| 42. If you are outside of your home directory, what ls command would display all the file names that end with the number 1 within your home directory? | ls ~/*1 |
| 43. Using just one command line, how would you change to your home directory, and list the contents of the directory? | cd ;ls |
| 44. What ls command would display the file and directory names of any length beginning with the letters d or f ? | ls [df]* |
| 45. What ls command will display all files starting with the word "edition" followed by any one character? | ls edition? |
| 46. What is the syntax to determine the file type of /etc/passwd? | file /etc/passwd |
| 47. What command will display only the first five lines of the file /var/adm/messages on the screen? | head -5 /var/adm/messages |
| 48. What command will display only the last eight lines of the file /var/adm/messages on the screen | tail -8 /var/adm/messages |
| 49. Determine the total number of lines contained in the file /var/adm/messages | wc -l /var/adm/messages |
| 50. What command would you most likely use to read the contents of the binary file /usr/bin/cp? | strings /usr/bin/cp |
| 51. From within your current directory, what command would you use to create a directory called green with a subdirectory of lime? | mkdir -p green/lime |
| 52. What command would you use to create empty file called bucket? | touch bucket |
| 53. What one command would create three directories called blue, green, and yellow in your current directory? | mkdir blue green yellow |
| 54. What one command would delete the directories called green and yellow in your current directory? | rmdir green yellow |
| 55. From your home directory, what command would redirect the output of the ls command to a file called snapple? | ls > snapple |
| 56. What command would display a calendar and, using the tee command, append the output to a file named frogger? | cal | tee -a frogger |
| 57. What main component of the SunOS operating system is known as "the core of the solaris operating environment" | kernel |
| 58. What main component of the SunOS operating system is known as "the command interpreter" | shell |
| 59. What is the difference between the date and the date -u commands? | date -u displays in GMT |
| 60. What is the command to display this month's calendar? | cal |
| 61. What command did you use to display the user name you entered to log in to the system? | who am i |
| 62. What command displays information about other users currently logged onto your workstation? | who |
| 63. What command can be used to discover the user name, UID, group name, and GID of any user on the workstation? | id or id (username) |
| 64. What option of the id command displays all group names for which the user belongs? | id -u |
| 65. What command can be used to display information about the operating system and the workstation name? | uname -a or uname -ns |
| 66. Using the -k option with man command find the online manual page that describes how to clear a terminal window. How would this command be entered on the command line? | man -k clear |
| 67. What command will clear the terminal window? | clear |
| 68. What does the tilde represent in the following command? cd ~/.netscape | your home directory |
| 69. What command is used display a recursive listing of the contents of a directory? | ls -R |
| 70. What will this command do? ls -la ~ | display a detailed listing of your home directory, including hidden files. |
| 71. What kind of information is stored in /etc/vfstab? | file systems to be mounted at boot time |
| 72. What does the /var/adm/loginlog contain? | a list of failed login attempts |
| 73. Does the id command report the primary or secondary group for the root user? | the primary group |
| 74. What filetypes are located in the /dev/dsk directory? | symbolic links |
| 75. What file types do yo find in the /etc/init.d? | regular files |
| 76. What does the disk option of the format menu do? | selects a disk |
| 77. What are the specific menu selections that are used to divide a disk into slices? | partition,label,verify,quit |
| 78. What does the type option of the format menu do? | selects (defines) a disk type |
| 79. What does the partition option of the format menu do? | selects (defines) a partition table |
| 80. What does the current option of the format menu do? | describes the current disk |
| 81. What does the format option of the format menu do? | format and analyze the disk |
| 82. What does the repair option of the format menu do? | repairs a defective sector |
| 83. What does the show option of the format menu do? | translates a disk address |
| 84. What does the label option of the format menu do? | writes a label to the disk |
| 85. What does the analyze option of the format menu do? | performs a surface analysis |
| 86. What does the defect option of the format menu do? | defect list management |
| 87. What does the backup option of the format menu do? | searches for backup labels |
| 88. What does the verify option of the format menu do? | reads and displays labels |
| 89. What does the save option of the format menu do? | saves new disk/partition definitions |
| 90. What does the volname option of the format menu do? | sets 8-character volume name. |
| 91. What are the options of the partition menu? | select,modify,name,print,label |
| 92. What option from the partition menu of the format command is used to choose a predefined partition table? | select |
| 93. What option from the partition menu of the format command is used to change a predefined partition table? | modify |
| 94. What option from the partition menu of the format command is used to identify the current partition table? | name |
| 95. What option from the partition menu of the format command is used to display the current partition table? | print |
| 96. What option from the partition menu of the format command is used to write the current partition table to the disk label | label |
| 97. What do you see when you display a partition table by using the print option from the partition menu of the format command? | Part,Tag,Flag,Cylinders,Size,Blocks |
| 98. What two methods can you use to view a disk's VTOC? | using the verify command from the format utility orrinvoking the prtvtoc command from the command linee |
| 99. What command gives you the ability to view a disk's VTOC from the command line? | prtvtoc |
| 100. What is "vfstab" short for? | Virtual Files System Table |
| 101. What are two methods to make a file system available for unmounting if it is busy? | The fuser command - lists all the processes accessing the file system and kills them if necessary or The umount -f command - forces the unmount of a file systemm |
| 102. For diskettes, when does vold automatically mount the device? | After you insert the diskette and run the volcheck command. |
| 103. For CD-ROMs, when does vold automatically mount the device? | After you insert the CD_ROM into the drive |
| 104. What command, when entered as root, is used to stop Volume Management from running on a system temporarily? | /etc/init.d/volmgt stop |
| 105. What two configuration files are used by Volume Management? | /etc/vold.conf and /etc/rmmount.conff |
| 106. What does the /etc/vold.conf file do? | This is the Volume Management configuration file. It defines items, such as what action should be taken when media is inserted or ejected, what devices are used, and what file system types are unsafe to eject. |
| 107. What does the /etc/rmmount.conf file do? | This is the rmmount configuration file. The rmmount command is a removable mediia mounter that is executed by the Volume Management daemon whenever a CD-ROM or diskette is inserted. |
| 108. What command is used to display the number of free disk blocks and files? | df |
| 109. What command is used to display disk usage? | du |
| 110. What command is used to list file names and statistics for a file system? | ff |
| 111. What command summarizes file system ownership? | quot (can only be run by root) |
| 112. What kind of information is stored in /etc/vfstab? | file systems to be mounted at boot time |
| 113. What file do you change to alter the cancel command? | /etc/default/kbd |
| 114. What command is used to limit damage after the system is forced down? | sync |
| 115. What file controls the initialization level? | /etc/inittab |
| 116. What command is used to see if a package has been successfully installed? | pkgchk -v |
| 117. How do you edit the crontab? | crontab -e |
| 118. What is the command to delete a package? | pkgrm |
| 119. What is the default user shell? | Bourne |
| 120. What vi command do you use to copy 5 lines of text and place them above the cursor? | 5 yy P |
| 121. What command will check the print queue to display the status of all print requests? | lpstat -o |
| 122. What command will cancel a print request, removing it from the print queue? | cancel "request-id" |
| 123. What command would find all files within your current directory which end with Z? | find -name '*Z' |
| 124. What command would find all files within your current directory of the type "directory" ? | find -type d |
| 125. What command would find all files in the /etc directory that have access permissions 644? | find /etc -perm 644 |
| 126. What command would search for the text string "other" in the /etc/group file, and have it display to the screen? | grep 'other' /etc/group |
| 127. How would you use the grep command look for all lines in a file named "toad" in your current directory which do not contain the letter "M"? | grep -v 'M' toad |
| 140. If you had created a command alias named "goget", what command would you use to unalias it? | unalias goget |
| 129. What command would display all lines in the files soup, salad, and appetizer in your current directory that contain the pattern "topped" | grep topped soup salad appetizer |
| 130. What command would diplay all the lines in the "tourist" file of your current directory that contain either word "room" or "rate"? | grep 'room|rate' tourist |
| 131. What command would sort a file in your current directory named "members" alphabetically? | sort members |
| 132. What command would sort a file in your current directory named "members" in reverse alphabetical order? | sort -r members |
| 133. What two commands can be used to view the contents of a file that was compressed with the compress command? | uncompress -c filename or zcat filename |
| 134. What command would compress the files bob, sam, and lou to a file called oldtimers.zip using the zip command. | zip oldtimers.zip bob sam lou |
| 135. How would you use the rlogin command to login to another system as the user "guest" with a password of "guest"? | rlogin hostname -l guest |
| 136. How would you use the who command to redirect the standard output to a file called "logged.in" | who > logged.in |
| 137. What command would you use to display all predefined command aliases? | alias |
| 138. What command would create an alias named wipe that clears the terminal screen? | alias wipe=clear |
| 139. What command would you use to display the history list in reverse order ? | history -r |