Sei sulla pagina 1di 27

HP-UX %& & HP-UX %&R'( I

1.Which command is not a filter? A.grep B.more C.ls D.cut NRB~=5Ct ~j j=N%&8 filtersd-Hfilters N Vn2B=dBcjHdf NyBl(B~HCBd.grep;xmore-xcut-BHls ntdH 2.Which password can not be used for HP-UX user password? A.32eahe B.44872k9 C.intosn3 D.win.net /- 6 D-x 2- 2 Dx 3- / DH 3.You login HP-UX on a character terminal. After you type your user name , you find that the last character you typed is incorrect. How can you delete the incorrect character? A.use "Backspace" key. B.use "Shift"+"3" key. C.use "Shift"+"2" key. D.use left arrow key,then use "Delete" key . N%&Bd~=Backspace R Delete 5fxt= # \ CD= @ \H Backspace fH 4.Which is the best way you empty a log file? A.remove the file and create a new one with the same filename. B.move the file to a temp directory and create a new one with the same filename. C.> filename D.open the file using vi,delete all contents and save the file. ST A R B f2B45R=%&9t BHST D =t2V!"#=nt$%B^H 5.Your sent a print job to a network printer named lj_1 .But lj_1 does not work. You find that the cable connect between UNIX server and lj_1 is interrupted. You move the job from lj_1 to another network printer lj_2 . After you resolve the cable problem, you sent a test print job to printer lj_1, but lj_1 still does not work.How can you do? A. use command "lpshut" and "lpsched".

B. use command "enable lj_1". C. use command "stpprnmv -s lj_1 -d lj_2". D. turn off the power of lj_1 and then turn on. &' lj_/ (j lj_2 V=%&)*# disable lj_/=+5], spooler B-.He/=%&5 stpprnmv H 6.Which is the best way to edit "/etc/passwd" file? A. vi -safe /etc/passwd B. vi /etc/passwd C. cp /etc/passwd /tmp/passwd then vi /etc/passwd D. vipw vipw cd)/etc/passwd j/etc/passwd.tmp +N/etc/passwd ~0 1H23+4=56 passwd 27H89: vipw V= C;<=>H28Bt?WB=@AV2)(<j /etc/passwdH@=/etc/passwd nH 7.Your UNIX Server had been set with IP Address 192.168.0.1. One day users complained that their telnet session terminated automatically.You can ping 192.168.0.1 but you can't connect your server using "telnet 192.168.0.1".What is the most probably reason? A. a workstation in the network had been set an IP address the same as the server. B.there are too many telnet users in the network. C.The telnet service is stopped. D.The /etc/passwd file had been damaged. /-SAM->Kernel Configuration -> Configurable Parameters -> npty B C8 telnet 3B$=DdECVF3)nf telnet =NG 3n;<Hx 2-telnet -.N?IJK;<LMBfNOx 3-P5QRB IP STU-.ST\UV=45-. )VWX=YZ[\t45 telnet 3;<HH 8.Which command can remove the abnormal directory "-xyz" ? A. rmdir -d "./-xyz" B. rmdir -r "./-xyz" C. rm -a "./-xyz" D. rm -r "./-xyz" 9.On a system with a standard HP-UX installation if the user is greeted with the ">" prompt they need to: A. immediately log-off. B. reboot the system. C. complete their current command line. D. reset their password. Bourne0Korn R POSIX shell ]^_`lH2 shell abc lBdeU=fg8#h=ijkl m>nH5bo5Bp=5bo\qBpH cIJK=K Ctrl+C p?NrBs=j shell lKH

stty a W#8Btd4Br~uH 10.By default, a command sends its output and error messages to the: A. top and bottom of the screen. B. file descriptor 1 and 2 respectively. C. screen and the syslog file. D. bit bucket unless specified by the user. All HPUX/UNIX processes by default open paths to three files. File descriptor 0 points to std-in(usually the users keyboard),file descriptor 1 points to stdout(usually the users terminal/pseudo-terminal screen),and file descriptor 2 points to std-error(the same as std-out). 11.Which of the following is NOT a legal Posix shell loop construct? A. do until done B. while do done C. until do done D. for do done Posix shell vwxByz{. /-while x.N|}`^8:BIJKC~@x 2-until x.C~@=Yj|}8:x 3-for x.BCBH 12.A file may have more than one name. This is accomplished using which of the following commands? A. dup B. ln C. alias D. fork ln---Z2HZBtlD2PBUCHkl 3CD2=5N};BQK5D2B}QV=G 5H ln B2K. ln file new_file ln file [file ] dest_dir 13.How would you move a file called datafile, from your current directory to the /var directory ? A. mv datafile /var B. mv /var datafile C. mv datafile -d/var D. mv datafile ../var mv B.mv /2 QB/QB2=QB 8QV=QBH 14.For each device file in the "/dev" subdirectory, the "major number" identifies the: A. priority order for accessing the device. B. device driver that should be used when the device is accessed. C. class of device, for example, "disk device", "tape device","tty device", etc. D. device file to be used for communication.

>D25CD=N LL B~~H-# VabjB H <t HP-UX ~|z I/O BC @H HP-UX 5l<=2B-#qD <HLsdev # ~B<RJqBH 15.A logical volume being contiguous means A. all the physical extents are contiguous B. all the logical extents are contiguous C. you can never extend it D. it can only be used for the root file system 16.The steps needed to set up an active journal file system, Which is mounted at boot time, are A. create a new logical volume, use the newfs command with the -F jfs option, mount the file system using the -F jfs option B. create a new logical volume, use the newfs command with the -F vxfs option, mount the file system using the -F vxfs option, add an entry into /etc/fstab C. create a new logical volume, use the fsadm command with the -F vxfs option, mount the file system using the -F vxfs option, add an entry into /etc/vfstab D. create a new logical volume with the -F vxfs option, mount the file system using the -F xfs, option, add an entry into /etc/checklist 17.Hard links are A. a safe way to link files across file system boundaries B. should not be used unless absolutely necessary C. a safe way to link files and directories within a file system D. a safe way to link files within a file system /-Z-Cz9B2Z^x 2-Znf2%&x 3-ZnfZQ 18.What are the major points you should consider when selecting file system swap areas? A. assign only one file system swap area per physical volume, file system swap should be placed on lightly used file systems with lots of free space B. file system swap should be set up on the root file systen first, file system swap should be placed on lightly used file systems with lots of free space C. a file system must be unmounted before file system swap is set up, file system swap should be placed on lightly used file systems with lots of free space D. all file system swap areas should be in the same volume group, vg00, file system swap should be placed on the root file system Two swap areas on different physical disks are better that one single swap area Only one swap partition per disk Device swap areas should be of similar size Consider the speed of the disks

19.At HP-UX 11 it is recommended that you install patches using A. swinstall with the superseded_by option B. shar against the .depot file C. swlist with the -I option D. swinstall with either the patch_match_target option or the autoselect_patches option 20.Which of the following statements is TRUE? A. The pvdisplay command will not give valid information unless you have added the disk to a volume group using vgcreate or vgextend. B. The default physical extent size is 8KB. C. You must have a minimum of 2 disks in the root volume group. D. In HP-UX 11.0, the maximum file size is 4GB. 21.To find what commands you have scheduled under cron use A. at B. cron. allow C. crontab -l D. Is -l V'\]B8 crontabH5yD=}~-l 83B V'x-e 83BV'x-r 83BV'H V'B2H 22.The major steps required to set up a new user are A. an entry in /etc/password, an entry in /etc/group, a home directory B. an entry in /etc/passwd, an entry in /etc/hosts, a home directory with login scripts C. an entry in /etc/password, an entry in /etc/hosts, a home directory with login scripts D. an entry in /etc/passwd, an entry in /etc/group, a home directory with login scripts 23.When you boot your system from the install tape you can: A. install your system B. run a recovery shell C. cancel and reboot D. all of these 24.Which are the free tools you can use to monitor your system performance? A. sar B. top C. iostat D. all of these sar u > CPU BJ=sar d >BrJH top--->qs%&BJH iostat--->%&B I/O JH 25.Is it possible to create a device file for a DAT drive forcing a specific

density rather than the default BEST option? A. yes - use SAM B. yes - use mksf specifying the -b option for a specific density C. yes - use mknod specifying the major and minor numbers D. yes - use any of the options shown 26.The /etc directory is used A. for operating system configuration data B. for application configuration data C. for operating system and application configuration data and executables D. for operating system and application configuration data 27.In the device file cXtYdZ the X, Y and Z represent respectively A. the instance of the device, the logical unit within the device and Z is always zero B. the instance of the controller, the target of the device and the logical unit within the device C. the target of the device, the instance of the controller and the logical unit within the device D. the logical unit number, the target of the device and the section number /-ZX. ;<%&PB>DRZCDXH 2-SCSI QST.tcdPBG:] DIP :]BH 3-SCSI LUN-.dFBH 28.The difference between the "lpmove" and the "lpalt" commands for printer queue management is that: A. alt will only move one (1) job and lpmove can move an entire queue. B. lpmove can be used by anybody and lpalt can only be used by the super user (root). C. lpalt is no longer used in HP-UX 11.00 but lpmove is used in 10.X and above. D. lpmove can be used to move a priority of a print job to a higher level while lpalt can only be used to move a job to another printer queue. 29.The main structures inside an HFS are A. superblock, allocation unit, inode, block and fragment . B. superblock, cylinder group, inode, extent and block C. superblock, allocation unit, inode, extent and block D. superblock, cylinder group, inode, block and fragment . /-HFS BDk.2%&BR2%&~45} HFS x Bx 2-HFS B_.HFS 2%&BKUCDlD_x2 %&5lB_=O2%&B_x 3-HFS B I G.>DQR5CD I G=I G-#2B 045c0R}-Nx 4-HFS .*#C8 8KBx 5-HFS ~.>D HFS U~xB~BO8D0//2 0 //4 //8 H

30.An LVM physical volume is A. a disk section with the LVM structures installed B. a RAID device C. a raw device D. an entire disk with the LVM structures installed 31.What is the order of code execution which brings your system up to the loading of the kernel? A. ISL, PDC, hpux, /stand/vmunix B. PDC, ISL. HPUX, /stand/vmunix C. PDC, ISL, hp-ux. /stand/vmunix D. ISL, HPUX. /stand/vmunix, PDC PDC xISL CD xHP-UX H 32.A device swap area is A. a dedicated partition of disk space used by memory manager and a file system B. a dedicated partition of disk space used by memory manager exclusively C. a dedicated partition of disk space on the boot disk used by memory manager exclusively D. a logical volume on the boot disk set up at install time 33.The command used for scheduling repeated background jobs is : A. cron B. at C. batch D. jobs 34.The last entry in the /etc/passwd line for a user defines A. a shell B. the home directory C. the password ageing D. an executable application program or shell 35.The /etc/logingroup file is used to : A. define which group a user logs into B. control access to files and directiories with a different group from that which the user is currently identified with C. is no longer used D. define which group new files and directories belong to 36.The ____________ command will show currently mounted file systems, the total size of each file system, the amount of space used from each file system, and the amount of space available in each file system. A. mount B. bdf C. du D. ll 37.The file that contains the default file system type for file system creation is:

A. /etc/fstab B. /etc/filesystem C. /etc/default/fs D. /var/adm/sbtab 38.You need to add a disk to an existing volume group. The SCSI address for the disk is 5 and the disk is attached to card instance 0 with a LUN of 0. What command must you execute before you add the disk to the volume group? A. pvcreate /dev/vg00/lvol5 B. pvcreate /dev/dsk/c0t5d0 C. pvcreate /dev/vg00/c0t5d0 D. pvcreate /dev/rdsk/c0t5d0 39.The command to set up a logical volume called lvswap in the volume group /dev/vg01 with a size of 20 MB is A. lvcreate -n lvswap -l 20 /dev/vg01 B. lvcreate -name lvswap -L 20 /dev/vg01 C. lvcreate -n lvswap -L 20 /dev/vg01 D. lvcreate -l 20 /dev/vg01 -n lvswap 40.SAM can be used to set up the following A. all of these B. user accounts and groups C. disks and file systems D. kernel configuration and network services 41.Which of the following archive utilities only runs on HP-UX? A. fbackup B. tar C. cpio D. pax 42.What is the simplest way to create and manage a list of the system and application log files which grow for ever and need to be trimmed on a regular basis A. use SAM's list for system log files, add your application log files to it and use the log file trimming feature available in SAM B. create your own list of system log files from /var/adm, add your application log files to it, then write a shell script to trim them C. reboot the system on a regular basis as then all log files get rolled over and the old ones deleted D. all system log files automatically roll themselves over and delete the oldest copy when they hit a defined size limit 43.What are the major points you shonld consider when selecting device swap areas? A. device swap areas should be on different physical volumes and should be the same size B. device swap areas should be in different logical volumes on the same disk and should be the same size

C. device swap areas should be in different logical volumes and in the top 2GB of the disk D. device swap areas should be on different physical volumes, but all in vg00 44.Pipes allow: A. data to be transferred from one system to another. B. file contents to be combined into a single stream. C. the output of one command to be used as input for another command. D. the same data to be sent to multiple commands at the same time.

45.What does the command tr -s " " do ? A. squeeze out multiple spaces from stdin B. replace all s with " " C. change single spaces into double spaces from stdin D. translate spaces into s 46.Which script will be excuted after a user has input correct user name and password? A. /.profile B. /etc/.profile C. $HOME/.profile D. /etc/profile =>/etc/profile%&'()B%&B1=n t.profile-x=>R$HOME/.profile>D3;B1S 1=EV8.profile-x$B01S%&1 $HOME/.kshrc H 47.If yon wish a command to run in background how do yon set it off ? A. bg command B. nohup command C. command bg D. command & 48.What will happen when the second field filled with * in the file /etc/passwd? A. User can login without any password B. User can login with password * C. The user is disable D. The user must change his password when he first login passwd 2jD~3BH~8V3YZj% &x~8m*nV=3)MHe/=%&'()nfYZ 3B=fF3H 8 passwd=3NKV. passwd f username H 49.Suppose the current directory is /dev/vg01,which command is the best one to display the logical volume myfs? A. lvdisplay v ./myfs

B. lvdisplay k /dev/vg01/myfs C. lvdisplay v /dev/vg01/myfs D. lvdisplay v k ./myfs lvdisplay R pvdisplay nf2B\=2ST A tn?W BHt vgdisplay =2 vgdisplay v vg00 vgdisplay v ./vg00 7fj?H 50.How would you get a list of the printers associated with your system and what file are waiting to be printed? A. Ipstat -t B. printer C. Ipshow D. Ipadmin 51.Which can not be used as hostname in HP-UX system? A. aix.com B. openviewhost C. hp_ux D. hp-ux /-$t 8 Dx 2-~nf5yzGKG/-x 3-f0RKGUH 52.How do you set up a symbolic link between two files? A. In -s link-file original-file B. In original-file link-file C. In original-file link-file -s D. In -s original-file link-file 53.In a "case" statement what is used to distinguish where the set of commands for one pattern ends, and the next set for the next pattern begin ? A. ; B. esac C. ) D. ;; 54.What is the purpase of a "continue" command ? A. to proceed with a shell script after a pause command B. to continue processing an infinite loop from the current point C. to go back to the start of a loop structure D. to proceed wi th a shell script after a sleep command 55.What would be returned by the command "echo $(date)" ? A. the current date and time would be shown B. $(date) C. the word "date" D. an error 56.Under the Korn and Posix shells, how do you pull back your previous

commands ? A. Escape k B. Escape p C. Escape h D. Escape Escape 57.Which command is used to pull out all lines of a file which contain a specified pattern ? A. pr B. tr C. wc D. grep 58.What commands define the scope of a "for" loop ? A. "do" and "done" B. "begin" and "end" C. "do"and "end" D. "begin" and "endfor" 59.System-supplied printer interface files and system configured interface files live respectively in : A. /var/spool/lp and /etc/lp/interface B. /usr/spool/lp/model and /etc/printer C. /usr/lib/lp/model and /var/spool/lp D. /usr/lib/lp/model and /etc/lp/interface 60.The units used for defining increase in size of a logical volume with the lvextend -L command, and a journal file system with the fsadm -b are respectively A. MB and file system blocks B. KB and KB C. MB and MB D. Extents and KB 61.You want to create a new 200MB logical volume from the volume group vg00, using the default physical extent size. Instead of taking the default logical volume name, you want to name your logical volume "newlv". What command would you use? A. lvcreate -l 200 -n newlv /dev/vg00 B. lvcreate -L 200 /dev/vg00/newlv C. lvcreate -l 200 -n /dev/vg00/newlv D. lvcreate -L 200 -n newlv /dev/vg00 62.The check_recovery command is used to A. ensure your make_recovery tape was written correctly B. validate support media C. check your LVM configuration under /etc/lvmconf is valid D. ensure your make_recovery tape is current 63.You are currently in the /stand/build directory building a new static kernel

for an HP-UX 11.00 system. You have completed all the tasks to build the kernel. Which tasks, in which order, must be performed to make the new kernel the running kernel and also preserve the old kernel? 1. shutdown -ry 0 2. mv /stand/system /stand/system.prev; mv system /stand/system 3. kmupdate 4. mv /stand/vmunix /stand/vmunix.prev; mv vmunix_test /stand/vmunix A. step 3, step 1 B. step 2, step 3, step 1 C. step 3, step 4, step 1 D. step 4, step 1 64.What command would you use to check the physical extent size that will be used when you create logical volumes from the volume group "vgmyvol"? A. vgdisplay /dev/vgmyvol B. pvdisplay /dev/vgmyvol C. lvdisplay /dev/vgmyvol D. vgshow /dev/vgmyvol 65.A bundle is a collection of: A. filesets. B. CD-ROMs. C. depots. D. tape packages. 66.If the driver for a device is bound into the kernel the ioscan "S/W State" shows A. claimed B. scan C. in D. unclaimed 67.To find out what software is installed on your system, you should use A. swverify B. the screen shown at start up on the console C. swlist D. /etc/filesets 68.A possible example of an fbackup command to do a full backup and record it in the dates file is A. fbackup -f /dev/rmt/c1t0d0BEST -0u -g /var/adm/fbackupfiles/graph B. fbackup -f /dev/rmt/c1t0d0BEST -g /var/adm/fbackupfiles/graph C. fbackup -9u -g /var/adm/fbackupfiles/graph D. fbackup -f /dev/rmt/c1t0d0BEST -0u / 69.At HP-UX 10.20 and above, what are the maximum file system and file sizes? A. 4GB, 128GB B. 128GB, 4GB

C. 128GB, 128GB D. 4GB, 4GB 70.Your manager makes a request for you to create a script that will start a daemon at system boot. In what directory would you put this script and the corresponding configuration file for the script? A. /sbin/init.d , /etc/rc.config.d B. /sbin/rc , /etc/netconfig C. /sbin/startups, /etc/inittab D. /usr/sbin, /etc/rc.config.d 71.The command to mount a journal file system held in the logical volume /dev/vg02/lvo14 onto the mount point directory /applic would be A. mount -F jfs /dev/vg02/rlvo14 /applic B. mount -F vxfs /applic /dey/vg02/lvol4 C. mount -F vxfs /dev/vg02/lvo14 /applic D. mount -F vxfs /applic /dev/vg02/rlvo4 72.To get to command mode ( CM> ) on a server you enter: A. ^M on the system console B. ^B on any terminal when logged in as root C. ^B on the system console when logged in as root D. ^B on the system console 73.The commands needed to set up a volume group are: A. mkdir,pvdisplay,vgcreate B. mkdir,mknod,vgcreate C. mknod, vgdisplay, vgcreate D. mkdir, vgcreate,vgdisplay 74.Which of the following statements is TRUE for HP-UX 10.20 and above? A. "/stand can be either hfs or vxfs if you have On-Line JFS. B. "/stand" must be vxfs but "/" can be vxfs or hfs. C. "/stand and "/" must be hfs D. "/stand" must be hfs but "/" can be vxfs. 75.You execute the "id" command that shows you the current UID and GID. What file does this information come from? A. /etc/group B. /etc/id C. /etc/passwd D. /etc/profile 76.Which of the following statements is FALSE? A. If cron.allow and cron.deny have entries cron.deny is ignored. B. If there is no cron.allow and a cron.deny exists with no entries everyone can use cron. C. If cron.allow is empty only the superuser(root) can use cron. D. There must be a cron.deny or cron.allow file present on the system in order to use cron.

77.To recover the LVM structures at the top of a physical volume, you would use the following command A. vgcfgbackup B. pvcreate C. vgscan D. vgcfgrestore 78.The Software Distributor can be used to : A. all of these B. install software C. list installed software D. copy software depots 79.How would you get a list of the absolute path names of all files in your home directory, which end in ".c". The list is to be held in a file called outfile. A. find $HOME -name "*.c" > outfile B. find . -name *.c > outfile C. find $HOME -name "*.c" 2> outfile D. find $home -name *.c > outfile

80.The tar command is used for: A. printing the contents of a file. B. reformatting a file. C. making archive tapes. D. merging a file. The tape archive command is an extension of the very early UNIX command ar, the file archive builder command. The command was optimized for use with streaming tape devices. 81.What does the command "tar cvf /dev/rmt/c0t3d0 /home" do ? A. backs up all files and directories under /home B. backs up all files in the /home directory C. puts all files from the tape into the home directory D. lists all files an the tape that come from the home directary

82.Which variables hold the string of all command line arguments and the number of them ? A. $# and $* respectively B. $* and $0 respectivelv C. $* and $# respectively D. $0 and $# respectively 83.What does "test -d abcd' mean ? A. does the variable abcd hold a value B. is the file abcd executable C. is the file abcd a directory D. nothing - the syntax is wrong

84.What is the "esac" command used for ? A. to signify the end of a "case" statement B. to signify the end of a "while" statement C. nothing, it doesn' t exist D. to signify the end of a "branch" statement 85.The following output is from the "ll" command: drwx------ 2 you other 96 Mar 2 19:51 data From this information "data" is a: A. deleted file waiting for trash collection. B. file, currently in use by two users. C. private directory. D. public directory. 86.How do you set a value into $? when returning from a shell script ? . A. $?=value B. set $? 255 C. $? Can not be set D. use the exit command 87.What does "let x=x+5" mean? A. the variable x will hold the string "x+5" B. the variable x will hold the ASCll code number for x plus 5 C. the variable x will hold its original value plus 5 D. the variable x will hold the value 5 88.Job control refers to the shell's ability to: A. handle multiple tasks at one time. B. adjust the priority of running jobs. C. move a job from the foreground to the background and vice-versa. D. repeat the same action over and over. Most modern shells (Boune,Korn,Posix) allow the user to start more than one process from a session. While std-out from all the sessions processes may share the output file descriptor it is common for only one process to be actively connected to the std-in file descriptor, that process is said to be a foreground process while the rest are said to be running in background. The shells use job control commands to allow the user to change their process states. 89.How are traps removed ? A. trap signal-name B. trap -r C. unset signal-name D. trap ' ' int kill term 90.The default shell used in HP-UX 10.20 and above is the: A. Korn Shell.

B. C shell. C. Bourne Shell. D. Posix Shell. Currently the Posix shell is the default shell for HPUX(and is required for the root user account).It is invoked from the executable file image /bin/sh (or /sbin/sh for root user account). 91.What is the varlable required to be set to force the .kshrc file to run ? A. KSH B. SHELL C. PATH D. ENV 92.How do you display the contents of the 10th command line argument? A. echo $10 B. echo ${10} C. echo $(10) D. echo {$10} 93.How do you suspend a foreground job and then put it into background ? A. use Control C and then fg %jobnumber B. use Control Z and then bg %jobnumber C. use stty -a and then fg %jobnumber D. use control Z and then fg %jobnumber 94.What does a file type of "I"( the letter I ) mean ? A. the file is a symbolic link B. the file is a hard linked file C. the file is a long file D. the file is a licensed file 95.HP-UX 11 is an implementation of which UNIX operating system ? A. AT&T; System V B. IEEE/posix C. BSD 4. 1 D. ISO 96.Assuming that the variable abc is not defined. what is returned by the command echo '$abc' ? A. blank B. abc C. an error message D. $abc 97.If you wanted to append the contents of file f1 to the end of file f2 how would you do it using input/output redlrection ? A. cat f1 >> f2 B. cat f1 > f2 C. cat f1 cat f2 D. cat f1 f2>f2

98.How do you see the contents of a variable? A. echo variable B. echo $variable C. Is $variable D. set $variable 99.When logging in through CDE, one of the files used to control the environment is A. $HOME/.dtprofile B. $HOME/.cdeprofile C. $HOME/profile D. /etc/profile 100.What command combination would you use if you wanted a sorted listing of all processes belonging to users, whose names started with"user", and you wanted the list a page at a time? A. ps -ef | grep user | more B. ps -ef | grep user | sort | more C. ps -ef | sort | more D. ps -ef | grep | sort | more 101.Which of the following statements is TRUE? A. Mounting a file system on a directory will erase all files in that directory. B. When creating a file system of type "hfs", an entry will be placed in /var/adm/sbtab. C. The "unmount" command will unmount a file system from a mount point. D. The /etc/fstab file is no longer used in HP-UX 11.0. 102.What is the sync command used for and who can use it A. The sync command closes down the system quickly. It can only be used by root. B. The sync command forces a flush of the buffer cache contents to disk. It can be used by any user C. The sync command forces a flush of the buffer cache contents to disk. It can only be used by root. D. The sync command updates file system super blocks on disk. It can be used by any user 103.At HP_UX 11, the name of the file used to hold the kernel is A. /hp-ux B. /stand/vmunix C. /stand/system D. /stand/build/vmunix 104.You do not want the cron daemon to start at system boot. What action should you take? A. Run the "unset cron" command. B. Change the value of the CRON variable in /sbin/init.d/cron from 1 to 0. C. Change the value of the CRON variable in /etc/rc.config.d/cron from 1 to 0.

D. Remove the /usr/sbin/cron executable. 105.The following: VAR=$(date) is an example of: A. variable substitution B. command substitution C. tilde substitution D. alias substitution Command substitution allows the output generated by one command to be used as an argument to another command. In the above example the shell would first run the date command and assign its generated output to the variable VAR. ( An older format of the same action would be VAR=date) 106.The end of an if branch is indicated by the keyword: A. end B. fin C. endif D. fi In the Posix shell the if command syntax is closed with a matching fi keyword(simply if in reverse). 107.The command grep is an adaptation of common options used with the command. A. vi B. sed C. ed D. edit This command name came from the command line options use with the early ed text editor. Once a file has been opened by ed the command line: g/{re}/p would print all lines in the opened file containing the {re} pattern to std-out. 108.The nice command allows a user to: A. send friendly E-mail messages to a group of users. B. asks the system to be nice to the users processes and give them preference. C. broadcast a greeting to all users as they logon. D. suggest to the operating system that the process may be run at a weaker priority. Unlike other operating systems HPUX/UNIX does not allow a normal user to directly set a process priority(unless special real-time priority calls are enabled and allowed). The nice command allows a user to suggest the kernel that a particular process may be nice to competing processes and be run at a weaker priority (the root user may negatively nice a process and ask the kernel to give it a stronger priority). The kernel takes this as a suggestion and sets a process priority according to various utilization factors and other mysterious influences.

HP-UX %&R'( II
1.A direct map contains: A. one or more indirect maps. B. one or more complex maps. C. any number of related mount points. D. any number of unrelated mount points. 2.What command would you use to discover the sequence of gateways through which an IP packet travels to reach its destination? A. traceroute B. ping C. netstat D. ifconfig 3.A bridge can perform translations up to an including which OSI layer A. layer 1 B. layer 2 C. laver 3 D. laver 4 4.What, in your opinion, is the most important NFS consideration of those shown below? A. keep the system time synchronised with all other NFS nodes B. the server is running enough nfsd processes C. the client is running enough biod processes D. all user and group ID' s are consistent across all NFS nodes 5.The portmap daemon listens for client requests directed to which well known port (s) ? A. 23 B. all standard ARPA/Berkeley service port numbers C. 111 D. none of these, the internet daemon forwards all relevant client requests 6.The maximum transmission rate of standard Ethernet is A. 1 Mbytes/s B. 100 Mbits/s C. 100 Mbytes/s D. 10 Mbits/s 7.The HP-UX linkloop command can be used to: A. test layer 2 connectivity B. test the operational state of the loopback interface C. ensure that a network interface cards IP address and MAC address are properly bound D. enable IP multiplexing 8.Which of the following daemons only runs on a NIS master server? A. ypserv

B. ypinit C. rpc.yppasswd D. ypxfrd 9.Switches can perform translations up to and including the ____________ of the OSI model. A. data link layer B. physical layer C. transport layer D. network layer 10.Subnetting is a technique used to: A. provide multiple physical LAN segments while retaining a single network number B. use the network part of an IP address to provide discreet sub networks C. retain a single physical segment but allow multiple network numbers D. use the host part of an IP address to provide discrete sub networks 11.Which protocol maps IP addresses of remote nodes to their corresponding MAC addresses? A. IP B. ARP C. TCP D. ICMP Address Resolution Protocol data is kept in kernel memory(in the arp cache) and provides the Internet-to-Ethernet address translations needed by the networking delivery agents. 12.The anonymous user (nobody) is pre-configured on HP -UX to have user ID: A. -2 B. -1 C. 1 D. 2 13.What is the maximum transmission unit (MTU) size for IEEE 802.3? A. 64 brtes B. 1024 bytes C. 1500 bytes D. 6024 bytes 14.The ______________________ file is used by the system at boot time to configure an IP address onto a LAN interface card. A. /etc/rc.config.d/namesvrs B. /etc/rc.config.d/ipconfig C. /etc/rc.config.d/ifconfig D. /etc/rc.config.d/netconf 15.When using HPNP JetAdmin to add a network printer to the local spooler you must specify:

A. the printer name / IP name B. the printer type C. the LP destination queue name D. perform all three of the above actions 16.In relation to network spooling which of the following statements is false? A. the rlpdaemon must be available on the print server B. bootpd and tftpd are required on the BOOTP server C. HPNP JetAdmin utility software is bundled with HP-UX D. the BOOTP server and network printer must not have a gateway between them 17.What command would you use to determine which NFS clients have an NFS server's file systems currently mounted? A. showmount -a B. ypwhich C. showmount -e D. bdf /mount 18.An HP ENVIZEX X Station would not have : A. RAM B. a SCSI interface C. an audio interface D. a hard disk 19.Which of the following cannot be used to resolve host names to IP addresses? A. /etc/hosts file B. BIND C. NFS D. NIS+ 20.The directory location of start-up/shutdown scripts on an HP-UX 10.X or 11.0 host is: A. /etc/rc.config.d B. /sbin/init.d C. /usr/sbin D. /startup 21.Which type of access method does Ethernet and IEEE 802.3 use? A. Fiber Distributed Data Interface (FDDI) B. Demand Priority Protocol (100VG-AnyLAN) C. Carrier-Sense, Multiple-Access with Collision Detection (CSMA/CD) D. Dynamic Host Configuration Protocol (DHCP) This protocol was developed for the bus topology, since both protocols use the same access method they can easily co-exist on the same network infrastructure! 22.Each IP address contains two parts: A. the network portion and the host portion.

B. the host portion and the socket portion. C. the network portion and the MAC address. D. the MAC address and the socket portion. 23.DNS zone transfers happen: A. each time the primary DNS server resolves a new name B. every hour C. every day D. at intervals configurable by the DNS administrator 24.The Open System Interconnection (OSI) model: A. has nine distinct protocol layers. B. establishes a set of rules for data transmission. C. was originally developed by the IEEE. D. is used to map out the cabling in a distributed architecture. 25.You notice a fellow administrator running the command 'ypinit -s FIDO' on host PATCH what would this command be used to achieve? A. register FIDO as a NIS master server B. register FIDO as a NIS slave server C. copy database files from NIS master PATCH to NIS slave FIDO D. copy database files from NIS master FIDO to NIS slave PATCH 26.Automounter can be used to : A. perform automatic load balancing among alternate NFS servers B. automatically umount unused NFS mounts C. automatically remount required NFS mounts D. all of the above The automount daemon automatically and transparently mounts NFS file systems as needed. It monitors attempts to access directories or files that are associated with an automount map. If a remote mount has not been used for a configurable amount of time the automount daemon will umount it. 27.The four types of automount maps are: A. master, direct, complex, and simple. B. master, indirect, direct, and special. C. auto, direct, indirect, and master. D. auto, global, local, and master. 28.Which of the following is NOT an NIS command? A. ypinit B. ypmatch C. yphost D. ypmake The bogus command name in this list is yphost. To see which server you are currently bound to you would use ypwhich and to change your binding you could try ypset.

29.Which statement is not in a format suitable for either rhosts. equiv or .rhosts? A. -pluto B. +sally C. saturn, pluto, -bob D. saturn bob 30.Subnetting is a technique used to: A. use the host part of an IP address to provide discrete sub-networks. B. use the network part of an IP address to provide discrete sub-networks. C. perform IP multiplexing. D. perform IP forwarding on an HP-UX host. 31.The lanscan command can be used to display: A. the device file(s) for any LAN cards on a system. B. the IP address on a system. C. all protocols a system is using. D. all MAC addresses on a system. 32.Using NFS, a server ___________ and a client __________ file systems and/or directories. A. exports; imports B. mounts; imports C. exports; mounts D. writes; receives The correct terminology for NFS file sharing is: the server exports a file|filesystem and a client mounts the exported item to their local file system. 33.Which file is NOT used for DNS (BIND) configuration? A. named.boot B. db.cache C. in-addr.arpa D. db.127.0.0 34.Local networks or LANs are: A. restricted to connecting systems in the same building. B. rarely used by UNIX systems. C. only supported between equipment from the same vendor. D. a standard in the modern computing enterprise. 35.What do you understand by the term "in-addr.arpa"? A. the configuration file for ARPA services B. a special DNS name space C. a trace file showing arp protocol access times D. a component of the name resolver library software 36.One of the items shown below is not a DNS record type, which one? A. PTR B. SOA C. MX

D. FS 37.Which of the following is not a TCP/IP protocol? A. ARPA B. ICMP C. SMTP D. DHCP 38.The default netmask for a class B network is: A. 127.0.0.1 B. 255.0.0.0 C. 0.255.255.255 D. 255.255.0.0 39.Which of the following would not normally be associated with X Station operation? A. TFTP B. XDCMP C. NFS D. RPC 40.Determine which of the following NFS file sharing recommendations would not be good advice. A. Use interruptable mounts B. Mount as many config directories as possible, /etc and /var for example C. Use soft mounts rather than hard D. Mount as many application directiories as possible, /opt for example 41.Which of the following is not a valid software distributor command? A. swpackage B. swacl C. swconfig D. swdelete 42.Which of the following commands propagates a new master map to a slave server? Execute: A. ypxfr on a slave B. ypxfr on a master C. yppush on a slave D. ypcopy on a master 43.The default subnet mask for class C networks is: A. 255. 0. 0. 0 B. 255.255. 0. 0 C. 255. 255. 255. 0 D. none of the above since you cannot subnet a class C network The default netmask for class-A network is 255.0.0.0,for class-B network it is 255.255.0.0,and for class-C networks it is 255.255.255.0. 44.The default depot path for software distributor is:

A. /var/spool/sw B. /sw/defsw C. /var/sw D. /tmp/sw 45.Which of the following is not an NFS server daemon? A. biod B. portmap C. mountd D. nfsd 46.The ________________ command can be used to view the routing table on a system. A. route B. netroute C. netstat D. nfsstat Specifically, the netstat command with the r option will provide a output listing all current route definitions in the kernel based routing table. 47.The file /var/adm/inetd.sec is used to: A. provide an extra layer of security for HP-UX systems. B. specify extra security for anonymous FTP users. C. control access to the internet daemons database. D. enable/disable internet daemon services such as ftp and telnet. The internetworking daemon,inetd,listens on the network and intercepts request for network services for which it has been configured. The /var/adm/inetd.sec file on HPUX systems adds an extra level of control as to who can access these services based on the requestors IP-identity. 48.Which of the following commands would you use to propagate a new master map to a slave? A. ypxfr on a slave B. ypxfr on a master C. yppush on a slave D. yppull on a master 49.The _____________________ file allows the network administrator to specify the query order of name services to resolve hostname information. A. /etc/nsswitch.conf B. /etc/resolv.conf C. /etc/services D. /etc/hosts.equiv 50.My host name is "einstein" and I want to display my IP address. Assuming that everything is configured properly on my system, to display my IP address, I could type the following: A. hosttoip einstein B. ifconfig einstein

C. nslookup einstein D. lanscan einstein 51.Well known port number 23 is used universally for which service? A. ftp B. rlogin C. telnet D. finger B. 2/=ftp,23=telnet,25=smtp,79=finger,//0=pop3,///=sunrpc,5/3=rlogin,5/4 =shell,5/5=printer. 52.Three mechanisms available for converting hostnames to their corresponding IP addresses are: A. NFS, UDP, and DNS B. TCP, NIS, and telnet C. DNS, NIS, and /etc/hosts D. NIS, NFS, and ICMP .Bas./etc/hosts -> NIS -> DNS 53.The /etc/hosts.equiv and the ~/.rhosts files work with: A. ftp B. tcp C. rcp D. rsh 54.What do you understand by the term OSPF? A. a new OSI layer three protocol to be used for Fibre Optic Lan's B. the plastic used on fireproof backbone cabling C. a dynamic routing protocol D. a packet filtering tool used on many operating systems 55.The command used to see the routing table is A. netstat -rn B. lanscan C. ioscan D. inetd c 56.Which of the following can NOT be determined from the netstat command? A. state of IP-Forwarding B. network interface status C. active socket connections D. route table entries The netstat command provides a wealth of networking information and statistics but basic configuration flags such as IP-Forwarding con not be viewed with it. Try the ndd command instead. 57.Which of the following commands will reconfigure the DNS nameserver daemon (named)? A. /sbin/init.d/named reconfig

B. sig_named start C. dns q D named restart If the name daemon is currently running on a system and you change the contents of its configuration file (usually /etc/named.boot) the sig_named restart command will instruct it to halt, re-read boot file and restart. 58.The maximum cable length of each 10BastT segment is: A. 10 meters B. 20 meters C. 100 meters D. 500 meters The stated length for 10 Mega-bit twisted pair cabling is 100 meters. 59.Which of the following commands would allow you to determine the MAC(Ethernet) address of the local systems NICs. A. swlist B. ioscan C. lanscan D. ifconfig Lanscan provides the station address of all Network Interface Cards on the local system. 60.The default packet size used by ping transmissions is: A. 32 bytes B. 64 bytes C. 32 bits D. 64 bits The default value is 64 (on HPUX systems at least). 61.When configuring a secondary DNS name server, which of the following steps in NOT required to be performed on the host? A. Modify the /etc/rc.config.d/namesvrs file. B. Run the hosts_to_named command C. Copy the boot.sec,boot.sec.save & db.127.0.0 files from the primary DNS server host. D. Configure the /etc/resolv.conf file. The hosts_to_named script only needs to be run when configuring a primary DNS server. 62.In DNS,how many server address may be configured through the /etc/resolv.conf file? A.2 B.4 C.5 D.3 In /etc/resolv.conf the keywork nameserver is used to define the IP-address of a name server. Up to MAXNS (currently 3) name servers can be listed, one per keyword.

Potrebbero piacerti anche