Appendix B. TEST YOUR KNOWLEDGE ANSWERSChapter 2 : Working with Files and DirectoriesChapter 4 : Input/Output Redirection and Pipes1:
The purpose of the command grep ^Test$
is:
A1:
D.
2:
Square brackets in pattern matching are used for:
A2:
C.
3:
A regular expression <join
matches:
A3:
A.
4:
The grep
command can use:
A4:
A.
5:
Which of these is NOT a meta character?
A5:
D.
1:
What can be determined about file name /etc/named.boot
?
A1:
B. The /etc
directory contains most of the configuration files.
2:
The HP -UX file system hierarchy is based on:
A2:
B.
3:
Mail files are kept in which directory?
A3:
D.
4:
What is true about the lost+found
directory?
A4:
B.
5:
To find a command in the search path, we use the command:
A5:
B.
6:
Which directory contains programs needed at boot time?
A6:
A.
7:
The HP -UX kernel is located in:
A7:
D.
Chapter 9 : Working with the POSIX Shell and Job Control1:
SAM can't be used for:
A1:
B.
2:
The SAM builder is used to:
A2:
C.
3:
The SAM log file is:
A3:
C.
4:
The utility for viewing the SAM log file is:
A4:
A.
1:
The length of the HP -UX host name may be:
A1:
D.
2:
The HP -UX host name may contain:
A2:
C.
3:
Which command is used for initial configuration of the system?
A3:
B.
4:
Which statement is true?
A4:
B.
5:
How can you change the primary boot path?
A5:
A. PDC decides from which path the system should be booted.
6:
Which command do you use in PDC to find the device name for a CD-ROM drive?
A6:
C.
7:
You use the search
command, and a list of devices is displayed as shown below. Which command will you use to boot from the CD-ROM ?
A7:
D.
1:
All HP -9000 systems have processor dependent code (PDC ). What is true about it?
A1:
D.
2:
The autoboot information is stored in:
A2:
D.
3:
What can be used to boot HP -UX in single-user mode?
A3:
C.
4:
What is the function of the secondary loader?
A4:
B.
5:
The boot area of the primary system disk contains:
A5:
D.
6:
The search
command in PDC is used to:
A6:
B.
7:
What is the order of execution of scripts becheckrc
, ioinitrc
, and rc
?
A7:
B.
8:
What information is present in stable storage?
A8:
D.
9:
What is true about the lifls
command?
A9:
A.
10:
The ID field in /etc/inittab
file shows:
A10:
C.
11:
What happens if the runlevel for a program is not specified in the /etc/inittab
file?
A11:
B.
12:
Which runlevel can be used for multiuser operation?
A12:
D.
13:
What command is used to check the current runlevel?
A13:
B.
1:
What is not true about a fileset?
A1:
B. A fileset may belong to many products.
2:
What is the default location of software on your disk?
A2:
A.
3:
When the swlist
command is used without any arguments, it lists:
A3:
D.
4:
When using the swinstall
command in the text menu, you can activate the menus using the:
A4:
A.
5:
In which runlevel is the SD -UX software daemon started?
A5:
B.
6:
What is the use of the freedisk
command?
A6:
B.
7:
Which SD -UX command is used to install software?
A7:
A.
8:
For what purpose are patches not used?
A8:
C.
9:
Every patch is a shar
file when you download it from the Hewlett-Packard Internet site. How many files are created when you unshar
it?
A9:
A.
1:
What is the usual or default target address of an SCSI controller card?
A1:
C.
2:
What is the interface card instance number of disk 8/6.5.0
?
A2:
B.
3:
What is the device file name for disk 7/3.4.0
attached to a card having instance number 1?
A3:
B.
4:
Which command can't be used for creating a device file?
A4:
B.
5:
The device class disk
includes:
A5:
B.
6:
A terminal is represented by how many files in the /dev
directory?
A6:
A.
7:
What information is necessary for the mknod
command on the command line?
A7:
D.
8:
Which command is executed automatically for new devices at boot time?
A8:
C.
Chapter 18 : HP -UX File Systems and Logical Volume Manager1:
What is the name used for the root volume group?
A1:
A.
2:
Which statement is not true?
A2:
D. The name of a logical volume may start with other characters.
3:
The default physical extent size is:
A3:
A.
4:
The pvdisplay
command uses:
A4:
B.
5:
What is true about space allocation to a logical volume?
A5:
B.
6:
By default, how many logical volumes can be created in a volume group?
A6:
C.
7:
Which command can be used to create a physical volume?
A7:
A. The pvcreate
command always works on raw devices.
8:
Which command would you use to create a logical volume of 200-MByte size with the name myvol
in volume group vg02
?
A8:
C.
9:
Which statement is true?
A9:
C.
10:
What is not true about the JFS file system?
A10:
C.
11:
You use the pvcreate
, vgextend
, lvextend
, and extendfs
commands to increase the size of a file system. In which sequence would you use these?
A11:
C.
12:
Which command can you use to list the mounted file systems?
A12:
C.
1:
To change a group ID temporarily, which command is used?
A1:
B.
2:
What information is a must when you use the useradd
command?
A2:
A.
3:
How many fields are present in the /etc/passwd
file?
A3:
C.
4:
In which directory are stored the default configuration files for a user?
A4:
B.
5:
What is wrong with the following /etc/passwd
entry?
A5:
B.
6:
Which command would you use to change a user ID?
A6:
C.
7:
For what purpose is a restricted shell used?
A7:
D.
1:
What is the result of the lp -dLJ4 /etc/profile
command?
A1:
C.
2:
How are local print jobs scheduled?
A2:
B.
3:
How can the print priority of a job be increased when this job is waiting in the print queue?
A3:
B.
4:
What do you need to do to set up a remote printer, assuming DNS or NIS is not used?
A4:
D.
5:
What happens after you issue the following command?
A5:
B.
6:
What is the result of the following command?
A6:
A.
1:
Which swap area must be available at system bootup time?
A1:
A.
2:
Where can you create a device swap?
A2:
D.
3:
You have three identical disk drives. How would you like to use these for swap and file systems for the best swap performance?
A3:
A.
4:
You have three different swap areas in LVM . These are:
You want to stop using /dev/vg03/lvol2
as swap space. How can you do it?
A4:
C.
5:
What information is not displayed by the swapinfo
command by default?
A5:
D.
1:
You are using incremental backup in two levels. The levels used are 1 and 5. When restoring data, in what order will you restore the backup?
A1:
A.
2:
You used the tar
command to back up your system. Which command will you use to restore it?
A2:
A.
3:
You are using files larger than 2 GBytes on your system. Which utility will you prefer to use to back up the system?
A3:
A.
4:
While creating incremental backup at level 2, you used the following command.
The next day you performed backup at level 3 using the following command.
Which files will be backed up?
A4:
A. Since you did not use the -u
option with the first backup, the new backup will contain all files listed in the graph file.
5:
Which backup level is always a full backup, no matter how the previous backup has been performed?
A5:
A.
6:
Which tar
command is used to restore data?
A6:
A.
7:
Why is a recovery tape made with the make_recovery
command important?
A7:
C.
8:
Which statement is true?
A8:
B.
9:
What information is present in Backup Scope
when using SAM ?
A9:
B.
1:
At what run level is the cron
daemon started?
A1:
B.
2:
On your system, file cron.allow
exists and is empty. File cron.deny
is also present and contains the login name of user boota
. Who is allowed to use cron
?
A2:
C.
3:
A crontab
entry is shown below. At what time will the trimlog
command be executed?
A3:
C.
4:
It is exactly 12:00 noon. You want to execute a command at the same time the next day. Which of the following commands will you use?
A4:
D.
1:
The order of the top four OSI layers from top to bottom is:
A1:
B.
2:
What is the function of the network layer?
A2:
A.
3:
Peer protocols are used between:
A3:
C.
4:
Which OSI layer is divided into Logical Link Control (LLC ) and Medium Access Control (MAC )?
A4:
D.
5:
What is not true about the OSI model?
A5:
C.
1:
Which cable is used in 100BASE-T networks?
A1:
D.
2:
What is not true about a bridge?
A2:
B.
3:
Which of the following is not a physical layer device?
A3:
D.
4:
Terminators are used in:
A4:
A.
5:
CSMA /CD is not used in:
A5:
D.
6:
The maximum length of a 10BASE-2 cable segment is:
A6:
C.
7:
What is the maximum number of repeaters that can be used in an Ethernet network?
A7:
B.
8:
Which statement is true?
A8:
C.
1:
The application layer of the OSI model covers which three layers?
A1:
B.
2:
What is the starting bit pattern of a class C IP address?
A2:
D.
3:
The maximum number of hosts in a class C network are:
A3:
C.
4:
A host on an IP network has an IP address 192.168.3.65 with a netmask 255.255.255.224. What is the broadcast address?
A4:
C.
5:
Given a netmask of 255.255.255.240, how many hosts can be placed in the network?
A5:
A.
6:
In an IP network, 18 bits are used in the network address. What is the value of the netmask?
A6:
A.
7:
Address resolution protocol is used to:
A7:
A.
8:
Which statement is true with reference to an IP address and a socket address?
A8:
B.
9:
Which file on HP -UX contains standard port numbers assigned to different applications?
A9:
B.
1:
Which command is used to list network drivers configured into the kernel?
A1:
D.
2:
For what purpose is the ifconfig
command used?
A2:
D.
3:
The following statements are related to the assignment of IP addresses to network interfaces. Which of these is true?
A3:
B.
4:
For what purpose is the /etc/rc.config.d/netconf
file used?
A4:
B.
5:
Which command is used to display a routing table?
A5:
B.
6:
When creating a default route, you see a network unreachable
message. What may be the cause?
A6:
B.
7:
Which command is used for listing installed network adapters?
A7:
C.
Chapter 30 : Configuring and Managing ARPA/Berkeley Services1:
What port number is used for telnet service?
A1:
A.
2:
The telnet service is invoked using inetd
. The configuration entry for this service contains the keyword nowait
. What does it mean?
A2:
D.
3:
What is the server process for the rcp
command?
A3:
A.
4:
Which command is used to execute a program on a remote system?
A4:
B.
5:
Which of the following is not a network service?
A5:
C. This is a restricted shell on HP -UX.
6:
An HP -UX server contains a single character +
(plus) in the /etc/hosts.equiv
file. Which hosts are allowed to use the network services?
A6:
A.
7:
You want to allow a user jeff
at host myhp
to access your account using the rlogin
command. What should be present in the .rhosts
file in your home directory?
A7:
C.
Chapter 31 : Host Name Resolution and Domain Name Server1:
A system has the following /etc/hosts
file.
You use the ping hp01
command to send an ICMP packet to host hp01
. To which IP address will these packets be sent?
A1:
A. The first matching entry in the /etc/hosts
file is taken.
2:
Which file determines the order in which different services try to resolve a host name?
A2:
C.
3:
At which run level is named
started?
A3:
B.
4:
What is the DNS port number?
A4:
D.
5:
The hosts_to_named
command is run on which server?
A5:
A.
6:
Which file on a client machine is used for listing available name servers?
A6:
B.
7:
Which is the configuration file used by named
at boot time?
A7:
B.
8:
You have your own domain name and want to create zones and delegate authority of these zones to a departmental name server. Which name server will delegate this authority?
A8:
B.
9:
For what purpose is the NS resource record used in DNS data files?
A9:
A.
1:
An NIS client can take part in how many NIS domains?
A1:
A.
2:
What is true about an NIS domain name?
A2:
A.
3:
The ypxfr
command is used on:
A3:
B.
4:
Which daemon is used for an NIS password change?
A4:
D.
5:
What is true about NIS ?
A5:
A.
6:
Which of the following is not an NIS map?
A6:
D.
7:
Which command is used to display the name of an NIS server bound to a host?
A7:
C.
Chapter 33 : Configuring and Managing the Network File System1:
Which NFS version is supported on HP -UX 11.00?
A1:
D.
2:
Which HP -UX command can be used on an NFS server to list remotely mounted file systems by NFS clients?
A2:
D.
3:
How should the rpcbind
, nfsd
, and inetd
daemons be started?
A3:
B.
4:
Which RPC daemon is used on HP -UX 11.00?
A4:
B.
5:
What is not true about NFS ?
A5:
C.
6:
What is the advantage of NFS version 3 over version 2?
A6:
D.
7:
Which command is used to manually export file systems for remote mount?
A7:
B.
8:
Which command is used to list registered RPC services on a host?
A8:
A.
1:
Which of the following is not an Automounter map?
A1:
B.
2:
When do you need to restart the automount
daemon?
A2:
A.
3:
What is the default interval of time after which Automounter unmounts a directory if no reference is made to a mounted file system?
A3:
D.
4:
The master automount
map contains the following indirect map entry.
The /etc/auto_home
file has one line as shown below.
Where will the directory /home/boota
on an NFS server hp0
be mounted on the local system?
A4:
D.
1:
What is the most accurate time source for NTP ?
A1:
A.
2:
What is the configuration file used by the xntpd
daemon?
A2:
B.
3:
Which command is used to synchronize time with one or more NTP servers on the Internet?
A3:
A.
4:
What is the default polling time for a server?
A4:
A.
..................Content has been hidden....................
You can't read the all page of ebook, please click
here login for view all page.