0% found this document useful (0 votes)
17 views

HP-UX Test

The document contains a quiz on HP-UX fundamentals. It covers topics like the default shell, file permissions, logical volumes, and networking protocols. The questions test knowledge of basic HP-UX commands, configuration files, and system administration tasks.

Uploaded by

Fadi Menassa
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
17 views

HP-UX Test

The document contains a quiz on HP-UX fundamentals. It covers topics like the default shell, file permissions, logical volumes, and networking protocols. The questions test knowledge of basic HP-UX commands, configuration files, and system administration tasks.

Uploaded by

Fadi Menassa
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 9

HP-UX Fundamentals

1. On a system with a standard HPUX 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.


2. 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
3. The default shell used in HPUX 10.20 and above is the:

[ ] A. Korn

[ ] B. C-shell

[ ] C. Bourne

[ ] D. Posix
4. VAR=$(date) is an example of:

[ ] A. variable substitution

[ ] B. command substitution.

[ ] C. tilde substitution.

[ ] D. alias substitution.
5. By default, a command sends its output and error messages to :

[ ] A. the top and bottom of the screen.

[ ] B. file descriptors 1 and 2 respectively.

[ ] C. the screen and the syslog file.

[ ] D. the bit bucket unless otherwise specified by the user.


6. Local networks or LAN's are:

[ ] A. restricted to connecting systems in the same building.

[ ] B. rarely used by UNIX systems.

[ ] C. only supported between devices from the same vendor.

[ ] D. a standard in the modern computing enterprise.


7. Job control refers to the shell's ability to:

[ ] A. serialize multiple tasks.

[ ] 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.


8. The end of an "if" branch is indicated by the keyword:

[ ] A. end

[ ] B. fin

[ ] C. endif

[ ] D. fi
9. 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.
10. Which of the following commands might be used to find all the lines in myfile that contain the string "hpux"?

[ ] A. find myfile -name hpux

[ ] B. find myfile -string hpux

[ ] C. search myfile hpux

[ ] D. grep hpux myfile


11. 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 user's 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.*
12. What would the following file permissions mean? "rwxr-xr--"

[ ] A. Read, write and execute permission for everyone.

[ ] B. Read, write and execute permission for the file owner, read and execute permission for the group,
and only read permission for all others.

[ ] C. The file owner is the only one who can execute the file.

[ ] D. People who do not own the file and are not in its group, can only run it.
13. If the device file for your CD-ROM is missing, (the "ioscan -fn" command shows the H/W path exists but there
are no device files) what command could you run, without rebooting the system, to create the device files?
[ ] A. mkcd -a

[ ] B. insf -e

[ ] C. lssf -e

[ ] D. cdfs -a
14. 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. newlv -l 200 -n newlv /dev/vg00

[ ] B. lvcreate -L 200 -n newlv /dev/vg00

[ ] C. lvcreate -l 200 -n newlv vg00

[ ] D. mklv -L 200 -n newlv vg00


15. Which of the following statements is TRUE for HP-UX 11 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.


16. 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
17. 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
18. 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 super user(root) can use cron.

[ ] D. There must be a cron.deny or cron.allow file present on the system in order to use cron.
19. 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
20. 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?
Step 1. shutdown -ry 0
Step 2. mv /stand/system /stand/system.prev; mv system /stand/system
Step 3. kmupdate
Step 4. mv /stand/vmunix /stand/vmunix.prev; mv vmunix_test /stand/vmunix

[ ] A. step 3, step 1

[ ] B. step 3, step 2, step 1

[ ] C. step 3, step 4, step 1

[ ] D. step 4, step 1
21. If a user forgets their password, how can root find out what it was?

[ ] A. Look in /etc/passwd.

[ ] B. Nobody can find out what a password was once it has been encrypted.

[ ] C. Look in /secure/passwd.

[ ] D. Use the passwd command.


22. A UID of zero indicates:

[ ] A. a super user.

[ ] B. a deactivated user.

[ ] C. an invalid user.

[ ] D. a restricted user.
23. The command lsdev is used to show block and character:

[ ] A. minor numbers for all drivers configured into the kernel.

[ ] B. major numbers for all drivers.

[ ] C. major numbers for all drivers configured into the kernel.

[ ] D. major numbers for all drivers currently in use by system peripherals.


24. When an update is made to a JFS file system mounted with the log option,:

[ ] A. all the metadata updates are recorded in an intent log transaction record which is physically written
to the intent log on the disk.

[ ] B. some metadata changes are written to disk immediately and others will be written to disk when a
sync is issued.
[ ] C. all the metadata and data updates are recorded in a single intent log transaction record which is then
flushed out to disk into the intent log.

[ ] D. all the metadata changes are written only when a sync is issued.
25. The newfs command is used to create:

[ ] A. HFS file systems only.

[ ] B. CDFS file systems.

[ ] C. a mirror copy of an existing file system.

[ ] D. HFS and JFS file systems.


26. The program that runs automatically at the end of an install to establish the system date, hostname, and IP
address is:

[ ] A. /sbin/set_parms

[ ] B. /etc/hosts

[ ] C. /sbin/date

[ ] D. /sbin/setboot
27. Besides the standard ioscan command, another command that could be used to identify which hardware address
"goes with" which device file is:

[ ] A. lssf

[ ] B. listsf

[ ] C. lsspecial

[ ] D. displaysf
28. 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. vgshow /dev/vgmyvol

[ ] B. pvdisplay /dev/vgmyvol

[ ] C. lvdisplay /dev/vgmyvol

[ ] D. vgdisplay /dev/vgmyvol
29. 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.


30. 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.


31. Which protocol maps IP addresses of remote nodes to their corresponding MAC addresses?

[ ] A. IP

[ ] B. ARP

[ ] C. TCP

[ ] D. ICMP
32. Which type of access method is used by Ethernet and IEEE 802.3 networks?

[ ] 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)


33. The ________________ command can be used to view the routing table on a system.

[ ] A. route

[ ] B. netroute

[ ] C. netstat

[ ] D. nfsstat
34. 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
35. Using NFS, a server ___________ and a client __________ file systems and/or directories.

[ ] A. exports; imports

[ ] B. mounts; imports

[ ] C. writes; receives

[ ] D. exports; mounts
36. Which of the following is NOT an NIS command?

[ ] A. ypinit

[ ] B. ypmatch

[ ] C. yphost
[ ] D. ypmake
37. Which of the following daemons only runs on a NIS master server?

[ ] A. ypserv

[ ] B. ypinit

[ ] C. rpc.yppasswd

[ ] D. ypxfrd
38. 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


39. 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. further control access to some internet daemon services.


40. 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


41. Which of the following commands will reconfigure the DNS nameserver daemon (named)?

[ ] A. /sbin/init.d/named reconfig

[ ] B. sig_named restart

[ ] C. dns -q

[ ] D. named restart
42. The maximum cable length of each 10BaseT segment is:

[ ] A. 10 meters

[ ] B. 20 meters

[ ] C. 100 meters

[ ] D. 200 meters
43. Which of the following commands would allow you to determine the MAC (ethernet) address of the local system's
NIC's.

[ ] A. swlist

[ ] B. ioscan

[ ] C. lanscan

[ ] D. ifconfig
44. If you are unable to linkloop a critical server on your local area network, what can you conclude?

[ ] A. Your routing tables are misconfigured.

[ ] B. Your netmask is misconfigured.

[ ] C. The server's linkloopd daemon died.

[ ] D. Your LAN card has lost physical connectivity to the server.


45. At which run level would NFS file systems be exported (on a default HPUX installation)?

[ ] A. one

[ ] B. two

[ ] C. three

[ ] D. four
46. The "automounter" or AutoFS services can be used to:

[ ] A. perform automatic load balancing among alternate NFS servers.

[ ] B. automatically mount and unmount NFS mount points on demand.

[ ] C. automatically mount CDs on the local host.

[ ] D. automatically increase file system swap.


47. When configuring a host as a secondary or slave DNS name server, which of the following steps is NOT required
on the host?

[ ] A. Modify the /etc/rc.config.d/namesvrs file.

[ ] B. Run the hosts_to_named command.

[ ] C. Copy a boot configuration file from the primary or master DNS server host.

[ ] D. Copy db.* files from the primary or master DNS server.


48. In DNS, how many server addresses may be configured through the /etc/resolv.conf file ?

[ ] A. 2

[ ] B. 4

[ ] C. 5

[ ] D. 3
Submit Reset Quiz

 
BACK TO HP EDUCATION SERVICES
CERTIFICATION PAGE

You might also like