免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 3876 | 回复: 0
打印 上一主题 下一主题

HPUX考试题库 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2006-03-30 14:09 |只看该作者 |倒序浏览

第一部分 unix 系统基础
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.
@
c
@
C. The ">" is the default secondary prompt and is issued when the shell
receives a carriage return prior to the completion of the command line
(usually there is a missing quote or bracket).
@
2
@
Which command allows a user to change the present working directory?
A. pwd
B. mkdir
C. mydir
D. cd
@
d
@
D. The only command in HP-UX that causes a users current directory to change
is "cd".
@
4
@
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
@
b
@
B. In UNIX the "ln -s" command is used to create multiple directory entries
pointing to the same file.
@
5
@
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.
@
c
@
C. The "d" at the front of the line denotes a file of type "directory".
@
6
@
Which of the following is NOT a "vi" editor mode?
A. command mode
B. ex command mode
C. wizard mode
D. input mode
@
c
@
C. "vi" has no wizard mode. Remind yourself of the keys used in "vi".
@
14
@
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
@
a
@
mv sourse target
@
5
@
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.
@
c
@
C. The "tar" command stands for "Tape Archiver" and is supported on
virtually all flavors of the UNIX O/S (and many other operating systems).
@
19
@
A file path description that starts with "/"(forward slash) and contains
a full list of all directiories between the file system root and the object
file is said to be a(n)_________ pathname.
A. complete
B. relative
C. absolute
D. extended
@
c
@
The absolute path is relative to "/". OS u ses absolute path internally.
@
4
@
The newgrp command is used to:
A. temporarily change you current group ID number
B. change the group ID for a file or directory
C. permanently change your login group ID number
D. change your group's name attribute in the /etc/groups file
@
a
@
While you are in multiple group, there is a primary group for you whose
ID is defined in /etc/passwd. When logging in, you are in your primary
group. "newgrp" can let you change your GID temporarily.
@
6
@
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.
@
c
@
C. Within the shell, job control is used to move individual jobs between
the foreground and the background of the shell environment.
@
15
@
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.
@
d
@
D. The use of LAN technology is pervasive in the industry.
@
13
@
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.
@
c
@
C. The pipe symbol "|" allows the standard output of the command to the
left of the symbol to be used as the standard input for the command on the
right of the symbol.
@
12
@
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.
@
b
@
B. By default the a process has three files descriptors when it is created,
FD #0 is standard input, FD#1 is standard output and FD#2 is
standard error.
@
11
@
What is the command chown used for?
A. Changing your user id
B. Making you the owner of all files in your directory
C. Changing the time stamp of a file or directory
D. Changing the ownership of a file or directory
@
d
@
D. chown
A. su
B. can you?
C. touch
@
6
@
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
@
a
@
use ln, you get a hard linked file.
Use ln -s, you get a symbolic link.
@
5
@
How can root save changes to a read only file in vi and
then exit ?
A. :q!
B. :w!
C. ZZ!
D. :wq!
@
d
@
To save, you need "w"; To exit, you need "q".
@
14
@
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
@
a
@
This is a typical tar use.
@
19
@
How do you check that the key sequence "^C" will send an interrupt signal ?
A. stty -a
B. stty -a ^C
C. set ^C int
D. tty -a
@
a
@
Use "stty -a" to check your terminal settings.
@
15
@
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
@
d
@
Refer to "man ln"
@
5
@
Which file or files must be configured correctly for the remsh command to
work?
A. /etc/hosts
B. /etc/hosts.equivalence
C. /.rhosts and /etc/hostnames
D. /etc/hosts.equiv or .rhosts
@
d
@
/etc/hosts.equiv or .rhosts are used for Berkeley services.
@
13
@
To find information about options for commands you should use which
command?
A. who
B. man -k
C. what
D. man
@
d
@
man -k must follow an argument.
@
2
@
Where does the cpio command get the input list of files from?
A. a file
B. stdin
C. cpio.in
D. your home directory
@
b
@
cpio gets input from stdin and make output to sthout.
@
19
@
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.
@
b
@
The correct answer is: B. Read, write and execute permission for the file
owner, read and execute permission for the group, and only read permission
for all others.
The order of permission fields is file user, group, and all others. For
this question the user (file owner) would have read+write+execute
permission, group members would have read+execute permission, and all
others would simply have read permission.
@
6
@
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.
@
d
@
The correct answer is: 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 to 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.
@
15
@
On a UNIX system the hardware is accessed by:
A. the shell.
B. the kernel.
C. applications.
D. clients and servers.
@
b
@
B. Unix is organized like the layers of an onion, the kernel is the
inner-most layer and provides the only means of access to the underlying
hardware.
@
1
@
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
@
b
@
Refer to job control.
@
15
@
If yon wish a command to run in background how do you set it off ?
A. bg command
B. nohup command
C. command bg
D. command &
@
d
@
Use & to put your job background.
@
15
@
Which command lists the contents of your current directory and all
directories below it?
A. Is -R or lsr
B. Is
C. dir
D. Tree
@
a
@
R means recursive.
@
4
@
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
@
a
@
A typical use of lpstat.
@
5
@
What permissions are required on a file to be able to run it as a program? .
A. read and execute
B. read
C. execute
D. read and execute and write
@
a
@
Typical permission for a shell program is 755.
@
16
@
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
@
a
@
Remind you how to make your .profile take effect.
@
3
@
Which four characters move the cursor up,down, left and right in vi ?
A. u d l and r
B. k j l and h
C. d f g and h
D. u i a and p
@
b
@
These four keys are adjacent on your keyboard.
@
14
@
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.
@
b
@
The correct answer is: B. Nobody can find out what a password was once it
has been encrypted.
UNIX/HPUX operating systems are not distributed with a decryption routine
only an encryption routine! The "root" user may replace a forgotten
password with a new one but there is no prescribed method to "crack" the
encryption.
@
2
@
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
@
a
@
HPUX stems from AT&T.
@
1
@
第二部分 unix 系统基础
The PATH variable is used to define the directories you can:
A. cd into.
B. search through when finding a file.
C. search through to find a command.
D. list files from.
@
c
@
C. All the common shells in HP-UX search the directories named in the local
"PATH" environmental variable when looking for an executable file.
@
7
@
What key words define the scope of an "until" loop in the POSIX shell?
A. "begin" and "end'
B. "do"and "end"
C. "do" and "done"
D."begin"and "enduntil"
@
c
@
The script between do and done are looped.
@
18
@
What variable is used to hold the result of test command?
A. $#
B. $error
C. $?
D. $!
@
c
@
Use "echo $?" to display return value.
@
16
@
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
@
a
@
Three loop forms are:
while do done
until do done
for do done
@
18
@
The end of an "if" branch is indicated by the keyword:
A. end
B. fin
C. endif
D. fi
@
d
@
D. For the Bourne, Korn and Posix shells the "if" statement is ended using
the "fi" keyword.
@
17
@
The alias shell command is used to create:
A. alternate names for files in your home directory
B. personal shortcuts for frequently used command strings
C. a nickname for you system
D. a second user login for your account
@
b
@
alias is for commands. You can unalias an alias.
@
7
@
What is the difference between local and environmental variables?
A. Environmental variables bring values back to the parent process from
the child process
B. Only local variables can be set up by a normal user
C. A local variable is only known about in the current process whereas an
environmental variable is also known about in child processes
D. A local variable is only known about in the users own processes whereas
an environmental variable is known about by the whole
system
@
c
@
export can let local variable to be global.
@
8
@
In a directory containing the files: abc aabc bac baac bca bcaa, the command
ls *a? would list the following file names:
A. abc aabc
B. bac baac bca bcaa
C. bac baac bcaa
D. abd bac baac
@
c
@
C. The file name generation characteristics of the shell would allow "*a?"
to match all file names ending in "a" "any character".
@
9
@
In "let" statements what action does "/" represent?
A. escape the meaning of the next character
B. division
C. percentage
D. remainder
@
b
@
Use let for arithmetic calculation.
@
18
@
The following is an example of:
VAR=$(date)
A. variable substitution
B. command substitution.
C. tilde substitution.
D. alias substitution.
@
b
@
B. The Korn and Posix shells allow a command to be executed and its resulting
output to be substituted in its place in the current command line.
@
8
@
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.
@
d
@
D. On current HP-UX systems the default shell is the Posix shell,
"/usr/bin/sh".
@
7
@
How do you display the contents of the 10th command line argument?
A. echo $10
B. echo ${10}
C. echo $(10)
D. echo {$10}
@
b
@
B. The Posix shell features the ability to reference all command line
arguments using their position parameter number. The {} is necessary
to prevent confusion. could represent argument 10 or
@
8
@
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
@
a
@
tr means translate.
@
12
@
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
@
d
@
grep is used to searh certain words in certain files.
@
11
@
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
@
a
@
find is very useful.
@
11
@
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
@
c
@
The error may say that the parameter is not set.
@
8
@
What file name generation string would find all file names that start with
"a" or "A", end in "z", and have exactly 5 characters in them?
A. [aA]*z
B. aA? ? ? z
C. [aA]???z
D. [aA]. *z
@
c
@
The correct answer is C.
@
9
@
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
@
a
@
$(date) is substituted before echo run.
@
8
@
The command grep is an adaptation of common command options used with the
_______ command.
A. vi
B. sed
C. ed
D. edit
@
c
@
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.
@
11
@
In a "case" statement what i s 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. ;;
@
d
@
if .. fi
case … esac
@
17
@
If you entered"cat myfile > yourfile" what would be the result on your
screen?
A. the contents of myfile
B. the word "my file"
C. an error
D. nothing
@
d
@
That's the result of redirection.
@
11
@
How do you see the local and environmental variables you
have set up ?
A. env
B. echo
C. Is
D. set
@
d
@
Use "env" for your global variables.
Use "set" for both global and local variables.
@
8
@
What is the "`PS1" environmental variable used for ?
A. the command priority stack
B. the history stack
C. the login sequence
D. the primary prompt
@
d
@
# and $ are PS1.
@
7
@
Under the Korn and Posix shells, how do you pull back your previous
commands ?
A. Escape k
B. Escape p
C. h
D. Escape Escape
@
a
@
The command line editor is vi.
@
7
@
When is /etc/profile run ?
A. for all users logging on
B. when you start a new shell
C. when root logs on
D. for all users logging on under the Kom and Posix shells, not using VUE
or CDE
@
d
@
Rememer this trick.
@
7
@
What is the varlable required to be set to force the .kshrc file to run ?
A. KSH
B. SHELL
C. PATH
D. ENV
@
d
@
export ENV=~/.kshrc
@
7
@
How do you see the contents of a variable?
A. echo variable
B. echo $variable
C. Is $variable
D. set $variable
@
b
@
A typical use of variable substitution.
@
8
@
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
@
b
@
pipes.
@
12
@
What variable holds the third command line argument ?
A. $#
B. $*
C. $third
D. $3
@
d
@
echo $0 ${10}
@
16
@
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
@
c
@
C is right.
@
16
@
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
@
c
@
d means directory.
@
17
@
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
@
d
@
eg. exit 99
@
17
@
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
@
a
@
case … esac
@
17
@
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
@
c
@
Use let to +,-,* and /.
@
18
@
What is the purpoase 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
@
c
@
Please distinguish between break and continue.
@
18
@
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
@
a
@
Use >> to append.
@
11
@
第三部分 unix系统管理
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
@
d
@
user account is defined via two files:/etc/passwd /etc/group and user's
home directory
@
3
@
W-HPUX3@
What are the major points you should 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
@
a
@
please read the guideline of selecting device swap
@
15
@
W-HPUX3@
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 withlots 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
@
a
@
please read the guideline of selecting of file system swap space.
@
15
@
W-HPUX3@
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
@
d
@
at the stage of pdc, you have 3 choices: install the system; run a recovery
shall, cancel and reboot. All these choices you could choose.
@
17
@
W-HPUX3@
A UID of zero indicates:
A. a super user.
B. a deactivated user.
C. an invalid user.
D. a restricted user.
@
a
@
The correct answer is: A. a super user.
The definition of a "super-user" is one who's User ID is set to "0". It's
not the name, "root", that gives extra capabilities to an account it is
the UID.
@
3
@
W-HPUX3@
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
@
d
@
sh is field 7.
@
3
@
W-HPUX3@
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
@
a
@
what sam can do?
@
2
@
W-HPUX3@
Which of the following is the best method of automating the process of
running an fsck of a file system once per week?
A. write a shell script with a sleep
B. set it up under cron
C. use the batch command to run it in background
D. submit an at command for each week
@
b
@
Automate.
@
14
@
W-HPUX3@
The difference between a remote printer and a network printer is
A. a remote printer is attached to another system on the network, but a
network printer is attached directly to the network
B. a network printer is attached to another system on the network, but a
remote printer is attached directly to the network
C. there is no difference, they are two terms for the same thing
D. a remote printer is attached to a different type of computer system,
but a network printer is attached to another HP 9000
@
a
@
Remember?
@
16
@
W-HPUX3@
To find what commands you have scheduled under cron use
A. at
B. cron. allow
C. crontab -l
D. Is -l
@
c
@
@
14
@
W-HPUX3@
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
@
d
@
@
16
@
W-HPUX3@
The command used for scheduling repeated background jobs is :
A. cron
B. at
C. batch
D. jobs
@
a
@
@
14
@
W-HPUX3@
The /etc directory is used
A. for operating system configuration data
B. for application configuration data
C. for operating system and appl ication configuration data and executables
D. for operating system and application configuration data
@
d
@
在HP UX 系统中文件的布局
@
5
@
W-HPUX3@
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
@
b
@
@
5
@
W-HPUX3@
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
@
a
@
@
2
@
W-HPUX3@
What will be the output from the command line" find . -name datafile
"?The :
A. absolute path names of all files called datafile in all directories
from your current directory down.
B. relative path names of all files called datafile in all directories from
your current directory down
C. relative path names of all files called datafile in your current
directory
D. number of files called datafile in your current directory
@
b
@
find 的输出结果是绝对还是相对路径
@
5
@
W-HPUX3@
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
@
c
@
C. The /etc/passwd file contains the UID and GID of each user.
@
3
@
W-HPUX3@
To set up a device swap on a logical volume and ensure it is active at each
system start-up, which of the following items is FALSE?
A. Create a contiguous logical volume
B. Have bad block relocation turned off
C. Add an entry to /etc/fstab
D. Mount the logical volume to the file system at /swap
@
d
@
@
15
@
W-HPUX3@
Which of the following is not one of the fields in the password file?
A. UID
B. TERM
C. HOME
D. SHELL
@
b
@
/etc/passwd 文件每行的字段
@
3
@
W-HPUX3@
A user account password may be changed by
A. the root user and the account owner
B. anyone who belongs to the group ys
C. only the root user
D. only the account owner once it is initially set by root
@
a
@
@
3
@
W-HPUX3@
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.
@
D
@
D. There is no requirement to have a cron.allow or cron.deny file on the
system. If both of these files do not exist then the superuser (root) is
the only user allowed to use cron.
@
14
@
W-HPUX3@
Can a user define a default printer for their session (separate from the
system default printer)?
A. No,you specify the printer with the lp command
B. Yes, using the lpadmin command
C. Yes, using the LPDEST environmental variable
D. No, users are not allowed spooler configuration capability
@
c
@
参阅用户环境变量的定义
@
4
@
W-HPUX3@
The recommended method of halting HP_UX from multi_user mode is:
A. init 6
B. halt 0
C. shutdown -h
D. reboot -h
@
c
@
@
17
@
W-HPUX3@
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
@
b
@
B. The kmupdate command will make copies of the old kernel and move the
new kernel to the /stand directory on reboot. However, the
new system file must be "manually" moved to the /stand directory. Before
moving the new system file from the /stand/build directory. The
shutdown/reboot is necessary to complete the process so that the new
kernel is moved in place and used to boot the
system.
@
18
@
W-HPUX3@
In HP_UX 10.X and above, the following users can run SAM:
A. super users (root) only
B. all users
C. all users in the groups root or sys
D. super users (root) and users set up in a restricted build of SAM
@
d
@
@
2
@
W-HPUX3@
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
@
a
@
A. Each service started by /sbin/rc has a shell script in /sbin/init.d and
a corresponding configuration file in /etc/rc.config.d.
@
5
@
W-HPUX3@
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.
@
a
@
A. The lpalt can move just one print job while lpmove can move an entire
queue of jobs to another queue (assuming that another queue
exists).
@
16
@
W-HPUX3@
The file used to ensure that the LP spooling scheduler does not run twice
is called:
A. ladm/busy/spool
B. /usr/spool/lockfile
C. /var/spool/lp/SCHEDLOCK
D. /etc/SPOOLER
@
c
@ this file should be checked while lpsched daemon startup to assure only
one daemon running in the system. This file would be removed while lpsched
stop
@
16
@
W-HPUX3
第四部分 unix系统管理
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
@
b
@
Note PEs may not be continuous. 在创建LV时用-c 参数指定是否contiguous
另外必须了解lvcreate命令的其它参数如-L -l -n -c
@
8
@
W-HPUX4@
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
@
d
@
please refer the definition of pv H30641第8章的内容
@
7
@
W-HPUX4@
The fbackup utility makes use of a graphfile to :
A. record statistical information on backup performance
B. target those files potentially requiring backup
C. optimise on-line backups to minimise impact on active users
D. store IP addresses of other network machines in the backup group
@
b
@
how to tell fbackup 命令备份对象是谁 Two methods: one is with -i option,
another
is via graph file in which all the backup objects are included.
@
13
@
W-HPUX4@
The -B option on the pvcreate is used for
A. setting up spare or mirrored boot disks
B. setting up spare boot disks
C. defining bad blocks
D. allow the use of disks over 9Gb
@
b
@
you should refer to the pvcreate command. Pvcreate命令可以带多参数个如
-B -f 意义是什么PV的结构是什么样的参阅H30641第8章
@
8
@
W-HPUX4@
An example of a valid "mknod" commands to create the group file would be
A. mknod group 64 c 0x0i0000
B. mknod group b 64 0x010000
C. mknod group c 64 0x01000
D. mknod group c 64 0x010000
@
d
@
First of all, group file is a device file of volume group, its
characteristics is character. LVM device driver’s major number is 64, VG’s
minor number always looks like 0xnn0000.
@
8
@
W-HPUX4@
On HP-UX the file system, /stand must be loaded on a:
A. LVM volume
B. VXFS file system
C. Whole disk partition
D. HFS file system
@
d
@
/stand as a HFS file system, reside on the LV of /dev/vg00/lvol1 用bdf
命令可以查看另外也可以查看/etc/fstab文件
@
12
@
W-HPUX4@
When a logical volume is created the following device files are
automatically made
A. block and character device files in the /dev/dsk and /dev/rdsk
directories
B. block and character device files in the volume group directory
C. none
D. group
@
b
@
LV, like other physical device, also has device file in two forms: block
and raw. Both of them
Locate on its vg directory.
@
7
@
W-HPUX4@
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
@
b
@
The correct answer is: B. bdf
The df (disk free) command appeared in early UNIX to provide this
information. The Berkeley version of UNIX enhanced the df command such that
it’s output does not match that of the AT&T definition. HPUX is fully
compliant with the System-V Interface Definition and as such maintains the
older format of output for the df command. In order to provide HPUX
administrators with the convenience of the Berkeley version output we have
implemented it as bdf (berkley disk free).
@
12
@
W-HPUX4@
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
@
b
@
the procedure of setup a journal file system is: first create a lv with
lvcreate , then create a vxfs file system with newfs -F vxfs, after that
mount the file system onto a directory. If you would like to prefer this
fs to be automatically mounted at boot time, add an entry into /etc/fstab.
OK!
@
9
@
W-HPUX4@
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
@
d
@
there are several ways to create a device file : autoconfig, m knod, mksf,
sam, insf. Familiar with these command and the result.
@
7
@
W-HPUX4@
Patches are installed onto your system using:
A. patch_maker
B. swinstall
C. install
D. swcopy
@
b
@
In HPUX, all softwares include patch are installed through SD.
@
20
@
W-HPUX4@
By default the vgcreate command on HPUX 10 does the following.
A. create the volume group, updates /etc/lvmtab, activates the volume group
and runs the vgcfgbackup command
B. create the volune group, updates /etc/lvmtab, activates the volume group
C. sets up the entries in /dev/vgxx
D. create the volume group
@
a
@
pls refer to vgcreate command using online manual. You should familiar
with vgcreate vgdisplay vgextend vgcfgbackup /etc/lvmtab /etc/lvmconf
@
8
@
W-HPUX4@
When an update is made to a J FS 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.
@
a
@
The correct answer is: A. all the metadata updates are recorded in an intent
log transaction record which is physically written to the intent log on
the disk.
When a JFS file system is mounted with the log option, all transactions
which will modify metadata are logged to the physical file system before
control is passed back to the requesting process/thread (a physical write
to the intent log must be made before the process/thread may continue).
每一位考生需要了解VXFS HFS 文件系统更新的过程参阅9 17 和9 27
@
9
@
W-HPUX4@
vgreduce is used to
A. to remove physical volumes from volume groups
B. to get rid of a volume group
C. to remove the last physical volume from a volume group
D. remove one physical volume from a volume group leaving at least one
@
d
@
vgreduce is used to reduce a vg, that means pv would be removed from the
vg but at least one pv should be left.
@
12
@
W-HPUX4@
LVM was designed to
A. handle disks up to 9Gb
B. allow more than one file system on a single disk
C. increase system performance
D. allow greater flexibility in the management of disks
@
d
@
while use lvm instead of whole disk in HPUX?
@
8
@
W-HPUX4@
A volume group is
A. a collection of physical volumes grouped together to hold information
associated with an application
B. a collection of physical volumes grouped together to hold a file system
C. the structure used to hold boot information
D. a collection of whole disks or sectioned discs
@
a
@
pls refer to the definition of vg
@
8
@
W-HPUX4@
Possible examples of a pvcreate command would be
A. pvcreate -B /dev/rdsk/c0t0d0
B. none of these
C. pvcreate -B /dev/dsk/c0t1d0
D. pvcreate -F vxfs /dev/dsk/c0t1d0
@
a
@
pvcreate command must be used with raw disk device file. That is the main
point.
@
8
@
W-HPUX4@
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
@
d
@
The correct answer is: D. vgdisplay /dev/vgmyvol
The vgdisplay command reports : " PE Size (Mbytes)" .
@
8
@
W-HPUX4@
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
@
a
@
The correct answer is: A. lssf List Special File (lssf) determines the major
number of the special file and whether it is bloc or character. It then
scans the system for the device that is associated with the special file.
When the device is found, the minor number of the special file is also
decoded. A mnemonic description of the minor numer is printed on standard
output along with the hardware path of the device.
@
7
@
W-HPUX4@
The main internal structures of a JFS file system are
A. superblock, cylinder groups and inodes
B. allocation units and cylinder groups
C. intent log, cylinder group and inodes
D. superblock, intent log and allocation units
@
d
@
pls refer to chapter 9 which introduce the jfs
@
9
@
W-HPUX4@
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.
@
d
@
The correct answer is: D. HFS and JFS file systems.
The newfs command is a "friendly" front-end to the mkfs command. It
calculates the appropriate parameters and then builds the file system by
invoking mkfs. It is capable of creating all supported types of local file
systems.
@
10
@
W-HPUX4@
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
@
c
@
The correct answer is: C. /etc/default/fs
The directory "/etc/defaults" contains various plain text files in which
default values are stored for some system services and utilities. The
file"/etc/defaults/fs" is used by the various file system creation
routines if a file system type is not explicitly stated on the command
line.The directory "/etc/defaults" contains various plain text files in
which default values are stored for some system services and utilities.
The file"/etc/defaults/fs" is used by the various file system creation
routines if a file system type is not explicitly stated on the command line.
@
10
@
W-HPUX4@
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.
@
c
@
The correct answer is: C. major numbers for all drivers configured into
the kernel.
The lsdev command list the major device numbers, the name of the associated
driver and the class designation for all drivers/pseudo-drivers cinfigured
into the kernel and available for invocation via "special files".
@
7
@
W-HPUX4@
A logical extent is the
A. smaller than a physical extent
B. the smallest amount of space addressed by one disk access
C. smallest amount of space allocated to a logical volume
D. is always 4 Mb in size
@
c
@
remember?
@
8
@
W-HPUX4@
To place a logical volume on a specific disk you do the following
A. use lvcreate with no size option and use lvextend to specify the disk
and size
B. specify the physical volume on the end of the lvcreate
C. use SAM
D. use lvmove
@
a
@
It is a tip.
@
12
@
W-HPUX4@
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
@
b
@
the procedure of create a vg
@
8
@
W-HPUX4@
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
@
a
@
The correct answer is: A. /sbin/set_parms
This script was originally designed to help the administrator bring a
system up after a fresh load. It’s primary goal was to set some local
configurables and attach the system to the LAN and initialize the settings
for common network services (such as DNS, NIS, ....).
@
21
@
W-HPUX4@
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 .
@
d
@
HFS definition
@
9
@
W-HPUX4@
The Software Distributor can be used to :
A. all of these
B. install software
C. list installed software
D. copy software depots
@
a
@
SD工具的作用
@
19
@
W-HPUX4@
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
@
d
@
You should use make_recovery -C in advance.
@
13
@
W-HPUX4@
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 o f 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
@
b
@
pls refer to the sector of device naming convention in H30641 Chapter7
@
7
@
W-HPUX4@
The device file/ldev/cul0p1 would address
A. a dial out modem on port 1with a controller instance of 0
B. a dial out moden on port 0 with a controller instance of 1
C. a dial in modem on port 1 with a controller instance of 0
D. a terminal on port 1 with a controller instance of 0
@
a
@
pls refer to chapter 7 section of terminal and moden device name convention.
@
7
@
W-HPUX4@
Using LVM a collection of physical volumes are pulled together into a
A. logical volume
B. physical volume group
C. volume group
D. physical volume
@
c
@
pv->vg->lv->fs
@
8
@
W-HPUX4@
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
@
b
@
The correct answer is: B. insf -e
The install special file command install special files in the devices
directory (the -e option reinstalls missing special files for existing
devices).
@
7
@
W-HPUX4@
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
@
a
@
Refer to the command ioscan
@
7
@
W-HPUX4@
At HPUX 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
@
d
@
在安装PATCH时 需要加选项 patch_match_target 或 autoselect_patches
清楚作用
@
19
@
W-HPUX4@
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.
@
d
@
D. 关于 HP-UX 10.20及以上版本 "/" can be either hfs or vxfs but "/stand"
must be hfs. 参阅第9章HFS文件系统的HFS Implication.
@
9
@
W-HPUX4@
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
@
d
@
D. The "-L" option specifies MBs the "-n" option indicates a user defined
logical volume name instead of the default. The last argument is
the volume group in which the logical volume will be created.
@
8
@
W-HPUX4@
on HP-UX, the command for viewing disk space utilization is:
A. du
B. scandisk
C. bdf
D. diskinfo
@
c
@
@
12
@
W-HPUX4@
If a disk containing a mounted journal file system in /dev/vg01/|vo|1 has
reported errors and you want to check the intergrity of the whole
file system,which of the following steps should you see?
A. Remove all users with fuser -u ;run fsck using fsck -F vxfs
/mountpoint
B. Run fsck using fsck -F jfs -ofull,nolog /mounpoint
C. Unmount the file system; run fsck using fsck -F vxfs
/dev/vg01/|vo|01
D. Unmount the file system;run fsck using fsck-F vxfs -o full,nolog
/vg01/|vo|1
@
c
@
如何检查文件系统步骤是先卸载检查文件系统MOUNT文件系统查看LOST
FOUND目录
@
11
@
W-HPUX4@
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
@
d
@
D. The pvcreate command uses the character device file for a disk. The
character device file for a disk with SCSI address 5, attached to card
instance 0 with a LUN of 0 will be /dev/rdsk/c0t5d0.
@
8
@
W-HPUX4@
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
@
c
@
C. At HP-UX 10.20 and above the maximum file size and file system size is
128GB. Prior to HP-UX 10.20 the maximum file size was
2GB.
@
10
@
W-HPUX4@
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.
@
b
@
B. The /var/adm/sbtab file contains a list of the locations of the redundant
superblocks for each HFS file system.
@
11
@
W-HPUX4@
How do you validate that your make_recovery tape is up to date?
A. It is not possible. The make_recovery must be rerun when system changes
are made
B. Use the diff command
C. Run check_recovery, provided the make_recovery tape was created using
the "-C" option
D. Run makerec.last
@
c
@
@
13
@
W-HPUX4@
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
@
b
@
B. The bdf command is the only command listed that shows this information.
@
@
W-HPUX4@
The vgcfgbackup command provides a convenient method for:
A. making a bootable image of a volume group
B. saving a volume groups configuration information to a static file
C. backing up all the user data on a volume group
D. synchronizing the mirrors in a volume group
@
b
@
@
8
@
W-HPUX4@
The device file to address a DAT drive with controller instance of 1,a
device target address of 3 using best density and no rewind,would
be
A. /dev/rmt/c1t0d3BESTnr
B. /dev/rmt/c0t1d3BESTn
C. /dev/dsk/c1t3d0BEST
D. /dev/rmt/c1t3d0BESTn
@
d
@
设备名的命名规则要清楚
@
7
@
W-HPUX4@
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.
@
a
@
A. You must have a disk in a volume group in order to get "valid" information
from the pvdisplay command. All the other statements are
false.
@
8
@
W-HPUX4@
You have created a directory for the volume group named /dev/vg01. Which
command would you use to create the group file for this volume group?
A. mk_group
B. insf
C. mksf
D. mknod
@
d
@
VG创建的步骤每一步的意义必须清楚
@
8
@
W-HPUX4@
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
@
a
@
A. The lssf command with a device file as an argument, shows the H/W path.
@
7
@
W-HPUX4@
The file used by the system to automatically check and mount file systems
on HP-UX 10.X and above is called:
A./etc/chechlist
B./etc/fstab
C../etc/sbtab
D./var/adm/fstab
@
b
@
@
10
@
W-HPUX4@
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
@
b
@
B. The insf command with the " -e" option reinstalls special (device) files
in the /dev directory for any hardware devices with existing H/W
addresses.
@
7
@
W-HPUX4@
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.
@
b
@
B. Use lsdev to see the major number and the releated driver.
@
7
@
W-HPUX4@
For an HP-UX system to map a host name to an IP address, it can use
A. /etc/hosts only .
B. /etc/hosts or DNS or NIS
C. /etc/hosts or DNS only
D. /etc/hosts or NIS only
@
b
@
@
21
@
W-HPUX4@
In HP_UX 11. How do you create a bootable recovery system tape including
the entire root volume group? Use:
A. make_recovery
B. COPYUTIL at the ISL prompt
C. dd on each logical volume in vg00 to DAT
D. save_config
@
a
@
@
13
@
W-HPUX4@
The fsck command is used to:
A. check and repair HFS file systems only
B. check and repair HFS and JFS file systems
C. run the intent log roll back for JFS only
D. check and repair HFS and JFS at system boot time only
@
b
@
@
11
@
W-HPUX4@
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
@
c
@
@
@
W-HPUX4@
Which of the following archive utilities only runs on HP-UX?
A. fbackup
B. tar
C. cpio
D. pax
@
a
@
A. The fbackup command is a proprietary archive command used by HP-UX. The
other commands are standard UNIX archive utilities.
@
13
@
W-HPUX4@
The difference between block and character IO is:
A. character IO goes through the buffer cache and block IO does not
B. block IO is for large data transfers only and character IO is for small
data transfers only
C. character IO only used for tty devices
D. block IO goes through the buffer cache and character IO does not
@
a
@
@
8
@
W-HPUX4@
The main advantage of using the journal file system over an HFS is:
A. automatic defragmentation
B. better performance for all applications
C. faster recovery
D. guaranteed data integrity
@
c
@
@
9
@
W-HPUX4@
On HP_UX 10.X and 11.X, a list of currently installed software for the local
system is stored in:
A. /etc/filesets
B. the installed product database
C. /var/adm/sw/depot
D. the swinstall.log file
@
b
@
IPD在哪个路径下
@
19
@
W-HPUX4@
An HP-UX software "bundle" is
A. a collection of filesets, possibly from several different "products"
B. a collection of files
C. a collections of whole products
D. the smallest unit of software
@
a
@
bundle的定义
@
19
@
W-HPUX4@
A major number:
A. points to the device driver in the kernel
B. points to the device location and other characteristics
C. points to the instance
D. indicates the type of the file
@
a
@
设备文件中主号副号的作用和含意
@
7
@
W-HPUX4@
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
@
c
@
sync的作用和syncer的作用
@
11
@
W-HPUX4
第五部分 unix 系统网络管理
Which of the following is an access method?
A. RJ-45
B. CSMA/CD
C. token ring
D. token bus
@
b
@
CSMA/CD stands for carrier sense, multiple access with collision detection.
This method can be defined as wait, send, and l isten. CSMA/CD is the IEEE
802.3 and Ethernet access method.
Token passing can be implemented in a ring and a bus topology
@
2
@
W-HPUX5@
A bridge can perform translations up to an including which OSI layer
A. layer 1
B. layer 2
C. laver 3
D. laver 4
@
b
@
Bridges are used to connect two LAN segments at the OSI data link layer.
Bridges can only determine the link level address of the source and
destination stations involved in the data transfer; it cannot deal with
IP addresses.
@
2
@
W-HPUX5@
Which of the following is not a standard ARPA service ?
A. telnet
B. rlogin
C. ftp
D. BOOTP
@
b
@
rlogin, rcp,remexec are Berkeley services.
@
13
@
W-HPUX5@
Well known port number 23 is used universally for which service?
A. ftp
B. rlogin
C. telnet
D. finger
@
c
@
Refer to /etc/services. Port for ftp is 21.
@
13
@
W-HPUX5@
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
@
c
@
The /etc/hosts.equiv file associates remote hosts with a user s host.
This association identifies equivalent hosts that are frequently accessed
by the same users. If a remote host is listed in hosts.equiv, and the
remote user s login name matches a login name on the local host, the user
is not prompted for a password. This equivalency does not apply to
superusers.
$HOME/.rhosts can be created and configured by any user to specify remote
login names that are equivalent to the local user s login name.
$HOME/.rhosts must be owned by the local user.
In both files, comma is not allowed.
@
13
@
W-HPUX5@
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.
@
a
@
The IP network portion identifies which IP network the host s belongs to.
The IP host portion is a unique identifier on that IP network.
@
1
@
W-HPUX5@
Which protocol maps IP addresses of remote nodes to their corresponding
MAC addresses?
A. IP
B. ARP
C. TCP
D. ICMP
@
b
@
B. The Address Resolution Protocol (ARP) resolves a OSI network layer
address (like IP addresses) to the corresponding OSI data link layer
address (hardware (MAC) address).
@
1
@
W-HPUX5@
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)
@
c
@
C. Ethernet and IEEE 802.3 use the Carrier-Sense, Multiple-Access with
Collision Detection (CSMA/CD) access method.
@
2
@
W-HPUX5@
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
@
d
@
D. HP-UX uses the /etc/rc.config.d/netconf to configure the LAN interface
card with the ifconfig command at system boot.
@
3
@
W-HPUX5@
The ________________ command can be used to view the routing table on a
system.
A. route
B. netroute
C. netstat
D. nfsstat
@
c
@
C. The HP-UX netstat -r command displays the currently configured routing
table.
@
4
@
W-HPUX5@
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.
@
a
@
A. Subnetting is the technique to break up a large IP address space into
smaller networks called subnets. It uses the netmask to reassign IP host
portion bits to the IP network portion.
@
5
@
W-HPUX5@
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.
@
d
@
D. The HP-UX lanscan command displays all of the hardware paths,
corresponding hardware states, and hardware (MAC) addresses of all of the
LAN cards on the system.
@
6
@
W-HPUX5@
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
@
b
@
B. All HP-UX start-up/shutdown scripts are located in the /sbin/init.d
directory.
@
7
@
W-HPUX5@
The /etc/hosts.equiv and the ~/.rhosts files work with:
A. ftp
B. tcp
C. rcp
D. rsh
@
c
@
C. The /etc/hosts.equiv and ~/.rhosts files establish equivalency for the
Berkeley Internet Services that require password authentication
@
13
@
W-HPUX5@
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
@
a
@
It is traceroute.
@
6
@
W-HPUX5@
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.
@
a
@
A. The /var/adm/inetd.sec file in conjunction with the /etc/inetd.conf and
/etc/services is configured to allow|deny ARPA/Berkeley Internet
Services access to specified hosts and IP networks.
@
13
@
W-HPUX5@
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
@
c
@
C. The HP-UX nslookup command performs hostname-to-address name
resolution.
@
6
@
W-HPUX5@
The lanadmin command CANNOT be used to:
A. show IP address to LANIC address mappings
B. reset the LAN interface card
C. show operational status of the LAN interface
D. indicate basic input/output errors for the LAN interface
@
a
@
IP to MAC mapping should use arp.
@
6
@
W-HPUX5@
The internet daemon inetd is responsible for :
A. client rwho requests
B. sendmail requests
C. client telnet and ftp requests
D. www services
@
c
@
inetd take care the servises uncommented in /etc/services, s uch as telnet,
login, shell and ftp.
@
13
@
W-HPUX5@
You add a new gateway to your network that allows you access to a business
partner network whose network number is 15. The new gateway machine has
an IP address of 145.1.22.100, what command do you need to run on client
machines on your own network in order to communicate with machines on your
business partner network?
A. route add net 145.1.22.100 15.0.0.0 1
B. route add net 15.0.0.0 145.1.22.100 1
C. route add net 145.1.0.0 15.0.0.0 1
D. route add net 15.0.0.0 145.1.22.100 0
@
b
@
Be sure with gateway and destination.
@
4
@
W-HPUX5@
What is the broadcast address of a host which has an IP address 124.27.60.36?
(assume a default subnet mask)
A. 127.0.0.0
B. 124.27.255.255
C. 127.0.0.1
D. 124.255.255.255
@
d
@
A class address, right?
@
3
@
W-HPUX5@
During system startup and run-state changes, the /sbin/rc program runs
configuration scripts that are usually located in the ____________
directory.
A. /etc/rc.d
B. /sbin/init.d
C. sbin/config.d
D. etc/rc.confg.d
@
d
@
Where is netconf, namesvrs and nfsconf?
@
7
@
W-HPUX5@
The loopback address in TCP/IP networking is:
A. used by gateways to return undeliverable packets
B. a way in which a system can route datagrams to itself
C. used when the card is switched into promiscuous mode
D. a special route used for testing purposes only
@
b
@
The loopback address in TCP/IP networking is a way in which a system can
route datagrams to itself
@
3
@
W-HPUX5@
The linkloop command is useful for showing:
A. local LAN throughput
B. loopback address operational status
C. router activity
D. LANIC address connectivity
@
b
@
Use linkloop to test layer 2 connectivity.
@
6
@
W-HPUX5@
Which of the following files can NOT be used to prevent ftp access?
A. /etc/ftpusers
B. /var/adm/inetd.sec
C. /etc/inetd.conf
D. /etc/ftp.conf
@
d
@
/etc/ftpusers can deny certain users from clients.
/var/adm/inetd.sec can deny machines
/etc/inetd.conf can disable ftp services.
@
13
@
W-HPUX5@
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
@
d
@
Security is the top at list.
@
13
@
W-HPUX5@
Which of the following files turns the inetd daemon off at boot?
A. No file can prevent the inetd daemon from being started at boot.
B. /etc/rc.config.d/netdaemon
C. /etc/rc.config.d/netconf
D. /etc/rc.config.d/inetd
@
a
@
inetd is running by default. You can set its log option.
@
13
@
W-HPUX5@
The default packet size used by ping transmissions is:
A. 32 bytes.
B. 64 bytes.
C. 32 bits.
D. 64 bits.
@
b
@
The correct answer is: B. 64 bytes.
The default value is 64 (on HPUX systems at least).
@
6
@
W-HPUX5@
How does an HP-UX administrator turn the bootp daemon on at boot?Edit the:
A./etc/rc.config.d/netdaemon file and set the variable BOOTP=1
B./ etc/inted.conf file and uncomment the bootp line
C./etc/rc.config.d/bootp file and set the variable BOOTP=1
D./etc/rc.config.d/netconf file and set the variable BOOTP=1
@
b
@
bootp/tftp are inetd services.
@
14
@
W-HPUX5@
After modifying the internet Daemon (inetd), what should be done to
initiate the changes?
A. Use the kill command on the current inetd then re-run /usr/sbin/inetd
B. Run the inetd command with a -r option
C. The system must be rebooted
D. Run the inetd command with a -c option
@
d
@
inetd -c
swagentd -r
sig_named restart
@
13
@
W-HPUX5@
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
@
a
@
The correct answer is: A. /sbin/init.d , /etc/rc.config.d
By convention (System-V, Rel-4 file system layout) all startup scripts are
placed in /sbin/init.d and their corresponding configuration files are
located in /etc/rc.config.d . This is merely a convention and if the
administrator is knowledgeable they may relocate these files (not a
recommended practice!). What other directories are used during system
startup and run-state changes?
@
7
@
W-HPUX5@
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
@
c
@
The correct answer is: C. lanscan
lanscan provides the "station address" o f all Network Interface Cards on
the local system.
@
6
@
W-HPUX5@
The maximum cable length of each 10BaseT segment is:
A. 10 meters
B. 20 meters
C. 100 meters
D. 200 meters
@
c
@
The correct answer is: C. 100 meters
The stated length for 10 Mega-bit twisted pair cabling is 100 meters.
@
2
@
W-HPUX5@
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
@
a
@
The correct answer is: A. state of IP-Forwarding
The netstat command provides a wealth of networking information and
statistics but basic configuration flags such as IP-Forwarding can not be
viewed with it. Try the ndd command instead.
@
6
@
W-HPUX5@
Which of the following would never be used by a local host to deliver a
packet to another local host?
A. network number
B. the ARP cache
C. the default gateway
D. a DNS server
@
c
@
router is used to access remote host.
@
4
@
W-HPUX5@
Which of the followng netmasks is improperly configures for a IPV4 Class
B address?
A.255.255.128.0
B.255.255.160.0
C.255.255.192.0
D.255.255.254.0
@
c
@
128+64=192
@
5
@
W-HPUX5@
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
@
c
@
HPNP should be installed seperately.
@
14
@
W-HPUX5@
The default depot path for software distributor is:
A. /var/spool/sw
B. /sw/defsw
C. /var/sw
D. /tmp/sw
@
a
@
Recall the case when you use swinstall or swcopy.
@
16
@
W-HPUX5@
Which of the following is not a valid software distributor command?
A. swpackage
B. swacl
C. swconfig
D. swdelete
@
d
@
swremove
@
16
@
W-HPUX5@
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
@
a
@
linkloop mac-address
@
6
@
W-HPUX5@
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.
@
c
@
The correct answer is: C. Change the value of the CRON variable in
/etc/rc.config.d/cron from 1 to 0.
The configuration file that controls the startup of cron is
/etc/rc.config.d/cron.
@
7
@
W-HPUX5@
An HP ENVIZEX X Station would not have :
A. RAM
B. a SCSI interface
C. an audio interface
D. a hard disk
@
d
@
Diskless workstation.
@
14
@
W-HPUX5@
What is the maximum transmission unit (MTU) size for IEEE 802.3?
A. 64 brtes
B. 1024 bytes
C. 1500 bytes
D. 6024 bytes
@
c
@
netstat -in
@
6
@
W-HPUX5@
Which of the following commands use NTP to keep clocks in sync with other
nodes on the network?
A. /usr/sbin/ntpd.conf
B. /usr/sbin/ntpsync
C. /usr/sbin/ntpdate
D. /usr/sbin/ntpd
@
c
@
ntpdate sets the local date and time by polling the Network Time Protocol
server(s) on the host(s) given as arguments to determine the correct time.
It must be run as root on the local host. Typically, ntpdate can be inserted
in the startup script to set the time of day at boot time and/or can be
run from time-to-time via cron.
@
15
@
W-HPUX5@
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
@
d
@
Add the printer to your spooler.
@
14
@
W-HPUX5
第六部分unix 系统网络管理
第六部分
Which of the following is not an NFS server daemon?
A. biod
B. portmap
C. mountd
D. nfsd
@
a
@
The asynchronous block I/O daemons (default number 4), are used by NFS
clients to handle buffer cache read-ahead and write-behind.
@
9
@
W-HPUX6@
The Berkeley service BIND is used to:
A. bind an IP address to its appropriate LANIC address
B. bind an IP address to a well known port
C. provide name resolution services
D. provide remote login services
@
c
@
Remind that there are 3 mechanisms for name reolution.
@
12
@
W-HPUX6@
Which file is NOT used for DNS (BIND) configuration?
A. named.boot
B. db.cache
C. in-addr.arpa
D. db.127.0.0
@
c
@
C. The in-addr.arpa domain provides reverse address (address-to-name) name
resolution for the Domain Name Service.
@
12
@
W-HPUX6@
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
@
a
@
A. The HP-UX showmount -a command displays all of the NFS clients that
currently have NFS mount points from a NFS server.
@
9
@
W-HPUX6@
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.
@
b
@
B. The four types of automount maps are:
1. the master map (/etc/auto_master),
2. the direct map (/etc/auto_direct),
3. the indirect map (a single directory mapping of multiple (related)
NFS mount points),
4. and the special (also called built-in) map.
@
10
@
W-HPUX6@
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.
@
d
@
D. The direct map contains any number of unrelated NFS mount points for
the automount daemon to manage.
@
10
@
W-HPUX6@
Which of the following is NOT an NIS command?
A. ypinit
B. ypmatch
C. yphost
D. ypmake
@
c
@
C. The yphost command does not exist on an HP-UX host.
@
11
@
W-HPUX6@
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
@
a
@
A. The yppush command on an NIS master server signals all of the NIS slave
servers to invoke the ypxfr command to copy any modified NIS maps from
the master to the slave servers.
@
11
@
W-HPUX6@
Which of the following daemons only runs on a NIS master server?
A. ypserv
B. ypinit
C. rpc.yppasswd
D. ypxfrd
@
c
@
C. The rpc.yppasswd daemon only runs on a NIS master server to enable users
to change their passwords in the NIS passwd maps.
@
11
@
W-HPUX6@
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
@
c
@
Remind you of /etc/services and /etc/rpc.
@
8
@
W-HPUX6@
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
@
a
@
A. The /etc/nsswitch.conf file provides configuration for name service
switching on an HP-UX system.
@
12
@
W-HPUX6@
Which file is read when a network administrator runs the "exportfs -a"
command on an NFS Server?
A. /etc/xtab
B. /etc/rc.config.d/nfsconf
C. /etc/exports
D. /etc/fstab
@
c
@
Running "exportfs -a" uses /etc/exports as input , /etc/xtab is the result.
@
10
@
W-HPUX6@
You are setting up a new HP_UX workstation for a customer who will be
inserting the machine into a complex NIS_managed
environment with local maps enabled. What would you expect to see in the
/etc/nsswitch.conf file for the passwd entry?
A. passwd: nis files
B. passwd: nis
C. passwd: nis [NOTFOUND=continue] files
D. passwd: compat
@
d
@
passwd: files nis is also a right option.
@
12
@
W-HPUX6@
At which run level would NFS file systems be exported (on a default HPUX
installation)?
A. one
B. two
C. three
D. four
@
c
@
The correct answer is: C. three
For a default HPUX installation most networking server side daemons are
started at run-level 3.
@
9
@
W-HPUX6@
The rpcbind or portmap daemon listens for client for client requests
directed to which well known port(s)?
A. 23
B. 513
C. 111
D. 64
@
c
@
port 111 is rpc related.
@
8
@
W-HPUX6@
Which combination of NFS mount options would most likely provide the
best chance of avoiding client hangs?
A. retry=2,hard
B. retry=6,hard,intr
C. retry=3,soft,noitr
D. retry=4,soft
@
d
@
man mount_nfs.
Hard and nointr is not the answer.
@
9
@
W-HPUX6@
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
@
b
@
/etc, /dev,/tmp are not good candidates for exports.
@
9
@
W-HPUX6@
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
@
b
@
The correct answer is: B. sig_named restart
If the named daemon is currently running on a system and you change the
contents of it s configuration f ile (usually /etc/named.boot) the
sig_named restart command will instruct it to halt , re-read the boot file
and restart.
@
12
@
W-HPUX6@
The "automounter" can be used to:
A. perform automatic load balancing among alternate NFS servers.
B. automatically mounts and unmounts NFS mount points on demand.
C. automatically mounts CDs on the local host.
D. automatically increase file system swap.
@
b
@
The correct answer is: B. automatically mounts and unmounts NFS mount
points on demand.
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 unmount it.
@
10
@
W-HPUX6@
When configuring a secondary DNS name server, w hich of the following steps
is 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.
@
b
@
The correct answer is: B. Run the hosts_to_named command.
The hosts_to_named script only needs to be run when configuring a primary
DNS server.
@
12
@
W-HPUX6@
In DNS, how many server addresses may be configured through the
/etc/resolv.conf file ?
A. 2
B. 4
C. 5
D. 3
@
d
@
The correct answer is: 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.
@
12
@
W-HPUX6@
One of the items shown below is not a DNS record type, which one?
A. PTR
B. SOA
C. MX
D. FS
@
d
@
It needs an insight of DNS data. Revisit the db.* file in /etc/named.data.
You can also get the answer using "man named".
@
12
@
W-HPUX6@
A DNS primary nameserver is authoriative for every host
A. in its domain
B. in its domain and delegated subdomains
C. in its zone excluding all of its nondelgated subdomains
D. in its zone including all of nondelgated subdomains.
@
d
@
Name servers have c omplete information about a part of the domain name space
called a zone. The server has authority for that zone.
A zone is a subset of the domain. It excludes the delegated subdomains,
but includes the nondelegated subdomains. The delegated name servers
control their local name, IP addresses, and so on.
@
12
@
W-HPUX6@
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
@
d
@
ypinit -m
ypinit -s XXX (XXX is the master server)
@
11
@
W-HPUX6@
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
@
b
@
"in-addr.arpa" is also a name space to resolve ip to hostname.
@
12
@
W-HPUX6@
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
@
d
@
Be aware of the SOA record.
@
12
@
W-HPUX6@
Which of the following c annot be used to resolve host names to IP addresses?
A. /etc/hosts file
B. BIND
C. NFS
D. NIS+
@
c
@
NFS stands for network file system.
@
12
@
W-HPUX6@
The anonymous user (nobody) is pre-configured on HP -UX to have user ID:
A. -2
B. -1
C. 1
D. 2
@
a
@
Local root can be nobody if NFS server doesn t grant the authority.
@
9
@
W-HPUX6@
Which file on a NFS server stores the currently mounted NFS file syetem?
A /etc/mnttab
B /etc/fstab
C /etc/rmtab
D /etc/nfstab
@
c
@
showmount -a on server reads this file
@
9
@
W-HPUX6@
The following line is a segment from the file listing exported file systems
on host H:
/xly/fs -rw=saturn:pluto:neptune,root=pluto
The use of root=pluto is to provide which type of access to exported file
system /xly/fs? It allows:
A anyone from pluto read/write access.
B only user pluto to access the exported file system as root
C the root user on pluto to re-export the mounted file system to other NFS
nodes
D the root user on pluto read/write access
@
d
@
-root in /etc/exports makes root users on NFS client gain super access to
mounted NFS file systems.
@
9
@
W-HPUX6
模拟题一
If you wanted to mail the contents of a file to a user, how would you do
it?
A mail userfilename user
@
c
@
Use input redirection.
@
11
@
W-HPUX7@
Which command allows the system administrator to create a simple local
bulletin board to be seen by all users logging into their system?
A whatsup
B tin
C news
D readme
@
c
@
Use news to display system news in /var/news.
@
2
@
W-HPUX7@
At the ftp> prompt, what command will copy your local file to a remote host?
A push
B cpio
C put
D get
@
c
@
put-upload get---download
@
13
@
W-HPUX7@
The break command in the POSIX shell is used to break out of a
A shell script
B function
C loop structure
D sleep routine
@
c
@
exit to shell, break the loop, continue next
@
18
@
W-HPUX7@
What file names would be generated by "ab[cde]fg"?
A abcdefg
B abcfg abdfg abefg
C abfg abcfg abdfg abefg
D abcfg abdfg abefg abcdfg abcefg abdefg
@
b
@
[] defines a class of characters from which ONE will be matched.
@
9
@
W-HPUX7@
If you want to pull the second word out of a variable, how would you do
it, assuming that the words were separated by one space?
A echo $variable | cut -f2 -d" "
B echo $variable | cut -c2
C cut -f2 -d" "log-file
B trim log-file
C rm log-file; touch log-file
D cat log-file >log-file
@
a
@
See 11.4
@
11
@
W-HPUX7@
What is the difference between local and environmental variables?
A. Environmental variables bring values back to the parent process from
the child process
B. Only local variables can be set up by a normal user
C. A local variable is only known about in the current process whereas an
environmental variable is also known about in child processes
D. A local variable is only known about in the users own processes whereas
an environmental variable is known about by the whole
system
@
c
@
export can let local variable to be global.
@
8
@
W-HPUX7@
How do you prompt a shell script user for input and then retrieve it? Echo
a message and then use
A the read command to retrieve the results
B the get command to retrieve the results
C $* to see the results
D $1,$2 to see the results
@
a
@
read a var
@
16
@
W-HPUX7@
To print a document on HPUX, the user would enter the ____ command.
A lp
B lpr
C print
D spool
@
a
@
lp to use line printer.
@
5
@
W-HPUX7@
Quoting is used to
A remove the meaning of special characters
B ensure capital letters print
C establish command substitution
D print in bold type face
@
a
@
Need explain?
@
10
@
W-HPUX7@
How do you turn a local variable into an environmental variable in the posix
shell?
A export variable
B set variable
C env variable
D echo variable
@
a
@
export var
@
7
@
W-HPUX7@
If you entered"cat myfile > yourfile" what would be the result on your
screen?
A. the contents of myfile
B. the word "my file"
C. an error
D. nothing
@
d
@
That s the result of redirection.
@
11
@
W-HPUX7@
How do you see the local and environmental variables you have set up ?
A. env
B. echo
C. Is
D. set
@
d
@
Use "env" for your global variables.
Use "set" for both global and local variables.
@
8
@
W-HPUX7@
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.
@
d
@
The correct answer is: 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 to 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.
@
15
@
W-HPUX7@
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
@
b
@
pipes.
@
12
@
W-HPUX7@
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.
@
b
@
The correct answer is: B. Nobody can find out what a password was once it
has been encrypted.
UNIX/HPUX operating systems are not distributed with a decryption routine
only an encryption routine! The "root" user may replace a forgotten
password with a new one but there is no prescribed method to "crack" the
encryption.
@
2
@
W-HPUX7@
The alias shell command is used to create:
A. alternate names for files in your home directory
B. personal shortcuts for frequently used command strings
C. a nickname for you system
D. a second user login for your account
@
b
@
alias is for commands. You can unalias an alias.
@
7
@
W-HPUX7@
To shutdown command, with no options, takes you to run level
A s|S
B 1
C 2
D 0
@
a
@
singer user mode.
@
17
@
W-HPUX7@
Extensions to the basic HPUX security system are available through HPUX
s
A shadow password file
B trusted computing base
C POSIX security extensions
D password-plus
@
b
@
trusted system.
@
3
@
W-HPUX7@
Which of the following is NOT affected by the insf command?
A /etc/ioconfig
B the kernel resident I/O tree
C /dev/*
D /var/adm/iomap
@
d
@
Refer to 7.11 autoconfiguration.
@
7
@
W-HPUX7@
In HPUX 10.x and above most system log files are located in
A /var/adm
B /usr/adm
C /etc
D /tmp
@
a
@
/avr/adm is used for common administrative files,logs and database. See
5.2.
@
5
@
W-HPUX7@
During HPUX initialization, which utility is responsible for scheduling
the startup scripts for the various run states?
A /sbin/rc
B /etc/start
C /sbin/ioinitrc
D /sbin/bcheckrc
@
a
@
rc equals run command.
@
17
@
W-HPUX7@
The which command is used to determine
A the current version and realease of an executable
B pseudo terminal your session is running from
C the absolute path which an executable will be run
D which compiler options were used to create the program.
@
c
@
Use which to determine which version of a command will be used. Note the
version is determined by the order of directories in your $PATH. (See 5.4)
@
5
@
W-HPUX7@
The main function of the hpux utility is to
A load the kernel into memory
B list the standard directory
C execute ISL
D rebuild the kernel
@
a
@
Remember hpux -is to put your system in a singer user mode.
@
17
@
W-HPUX7@
By default, in which directory is execute permission only allowed for the
root user?
A /usr/bin
B /usr/local/bin
C /sbin
D /usr/contrib/bin
@
c
@
/sbin contains commands needed to boot the system and mount other file
systems.
@
5
@
W-HPUX7@
Which command can be used to recover lost device files online?
A reboot -d
B ioinitrc
C insf -e
D mk_kernel
@
c
@
See 7.14
@
7
@
W-HPUX7@
Utilizing the local root file system, the administrator must ______ to
bring an ailing system up to a "Singer-User" mode.
A get to the boot-ROM Boot Admin->INFOrmation
B get to the ISL->HP-UX command
C hold the TOC button down while powering up the computer
D enter boot singeruser at the initial boot prompt
@
b
@
See 17.9
@
17
@
W-HPUX7@
The command to list full details of a device file is:
A listf
B lsdev
C lssf
D ls
@
c
@
lssf = list special file. See 7.4
@
7
@
W-HPUX7@
The recommend method of halting HPUX from multi-user mode is
A init 6
B halt 0
C shutdown -h
D reboot -h
@
c
@
See 17.2 and 17.12
@
17
@
W-HPUX7@
PA-RISC defines
A a computer architecture and design guideline
B a UNIX only hardware set
C extensions to the RISC instruction set
D a programmable alarm utility
@
a
@
See 6.1. PA-RISC is built upon RISC principles, a design approach ...
@
6
@
W-HPUX7@
For HPUX11.0, a bootable tape image can be created using the command:
A boot_image
B make_recovery
C makeboot
D mkrs
@
b
@
See 13.10
@
13
@
W-HPUX7@
At HPUX 11.x, new drivers
A may only be added by re-compiling the kernel image
B may only be added using the sam utility
C are added automatically during boot time auto-configuration
D may be registered and added to the kernel dynamically
@
d
@
DLKM. See 18.3
@
18
@
W-HPUX7@
In HPUX11, how do you create a bootable recovery system tape including the
entire root volume group ? Use:
A make_recovery -A
B COPYUTIL at the ISL prompt
C dd on each logical volume in vg00 to DAT
D save_config
@
a
@
see "man make_recovery".
@
13
@
W-HPUX7@
Which of the following device file names point to the disk drive defined
by the following ioscan output?
Class I H/W Path
==================
ext_bus 4 8/16/5
disk 9 8/16/5.6.0
A /dev/rdsk/c5t4d9
B /dev/rdsk/c4t6d0
C /dev/rdsk/c5t5d0
D /dev/rdsk/c6t9d4
@
b
@
Card instance is 4 and SCSI target address is 6.
@
6
@
W-HPUX7@
To create a automated system backup based on the fbackup utility, which
of the following steps is NOT required?
A creation of graph file(s).
B scheduling of backup activity using cron
C building a backup list using find command
D Arrange for blank media to be available in device drives prior to the
scheduled backup time
@
c
@
find can be used for cpio. See 13.6
@
13
@
W-HPUX7@
"Transition Links" refer to
A the number of file names on the current system that point to the same
data
B a POSIX standard method for creating links across remotely mounted file
systems
C symbolic links created for commonly accessed pre-HPUX 10.x file and
directory paths
D symbolic links that are created with a limited TTL(time-to-live)
@
c
@
See 9.6. This is an advanced topic. The keyword is "transition".
@
9
@
W-HPUX7@
A file system swap area is
A space reserved and allocated within a mounted file system for use by the
kernel memory manager
B space reserved as a temporary data storage area used while synchronizing
mirrored disk volumes
C a logical volume on the boot disk set up at install time
D an area borrowed from the configured swap space to hold file system
overflow data until a fsck can be performed to clean up the full file system
@
a
@
See 15.3.
@
15
@
W-HPUX7@
The vgcfgbackup command provides a method for
A making a bootable image of a volume group
B saving a volume group configuration to a static file
C backing up all the user data on a volume group
D synchronizing the mirrors in a volume group
@
b
@
See 12.6
@
12
@
W-HPUX7@
To set up a device swap on a logical volume and ensure it is active at each
system startup, which of the following is FALSE?
A create the contiguous logical volume
B have bad block relocation turned off
C add an entry to /etc/fstab
D mount the volume to the file system at /swap
@
d
@
See 15.3
@
15
@
W-HPUX7@
The following command line: fbackup -f /dev/rmt/0mn -e /tmp -e /dev -i/
would backup all ____ to a local tape?
A local and imported files
B local files except for the /tmp and /dev directories
C local files and imported files except for the /tmp and /dev directories
D local files
@
b
@
See 13.6.
@
13
@
W-HPUX7@
The fsck command is used to:
A. check and repair HFS file systems only
B. check and repair HFS and JFS file systems
C. run the intent log roll back for JFS only
D. check and repair HFS and JFS at system boot time only
@
b
@
fsck can check both hfs and vxfs.
@
11
@
W-HPUX7@
The fbackup utility makes use of a graphfile to :
A. record statistical information on backup performance
B. target those files potentially requiring backup
C. optimise on-line backups to minimise impact on active users
D. store IP addresses of other network machines in the backup group
@
b
@
how to tell fbackup what is the backup objects? Two methods: one is with
-I option, another
is via graph file in which all the backup objects are included.
@
13
@
W-HPUX7@
The -B option on the pvcreate is used for
A. setting up spare or mirrored boot disks
B. setting up spare boot disks
C. defining bad blocks
D. allow the use of disks over 9Gb
@
b
@
you should refer to the pvcreate command.
@
7
@
W-HPUX7@
An example of a valid "mknod" commands to create the group file would be
A. mknod group 64 c 0x0i0000
B. mknod group b 64 0x010000
C. mknod group c 64 0x01000
D. mknod group c 64 0x010000
@
d
@
First of all, group file is a device file of volume group, its
characteristics is character. LVM device driver s major number is 64, VG
s minor number always looks like 0xnn0000.
@
7
@
W-HPUX7@
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 withlots 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
@
a
@
please read the guideline of selecting of file system swap space.
@
15
@
W-HPUX7@
A UID of zero indicates:
A. a super user.
B. a deactivated user.
C. an invalid user.
D. a restricted user.
@
a
@
The correct answer is: A. a super user.
The definition of a "super-user" is one who s User ID is set to "0". It
s not the name, "root", that gives extra capabilities to an account it is
the UID.
@
3
@
W-HPUX7@
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
@
d
@
sh is field 7.
@
3
@
W-HPUX7@
Which command can you use to obtain information on established sockets?
A ifconfig
B netstat
C lanadmin
D netsock
@
b
@
"netstat -a" can list sockets estabilished.
@
6
@
W-HPUX7@
Which file on a NFS server stores the currently mounted NFS file syetem?
A /etc/mnttab
B /etc/fstab
C /etc/rmtab
D /etc/nfstab
@
c
@
showmount -a on server reads this file
@
9
@
W-HPUX7@
NTP is a protocol which can be used to achieve
A transfer of NFS configuration information across the network.
B synchronization of sendmail transfers between gateway machines.
C UNIX to MS NT file transfers
D synchronization of system times across all machines in a network.
@
d
@
That s NTP
@
15
@
W-HPUX7@
Which of the following is true for the root user?
A /etc/hosts.equiv is nerver used for root users
B .rhosts is always checked before hosts.equiv
C .rhosts is always checked after hosts.equiv
D All of the Berkeley internet services always ask for a password.
@
a
@
Remember /etc/hosts.equiv is nerver used for root users
@
13
@
W-HPUX7@
You have configured a local printer on your system. To deny remote printer
access to a particular host which configuration file would you edit?
A /etc/rlp.conf
B /etc/services
C /var/adm/inetd.sec
D /.rhosts
@
c
@
rlpdaemon is an internet service.
@
13
@
W-HPUX7@
Port numbers are listed in which file?
A /etc/serviceport
B /etc/hosts
C /etc/services
D /etc/inetd.conf
@
d
@
/etc/services defines ports.
@
13
@
W-HPUX7@
Which step would be required when configuring a DNS client?
A modify /etc/rc.config.d/namesvrs
B modify /etc/dns.conf
C modify /etc/resolv.conf
D modify user/system equivalency files
@
c
@
You can list up to 3 nameservers in resolv.conf
@
12
@
W-HPUX7@
Which file is read when a network administrator runs the "exportfs -a"
command on an NFS server?
A /etc/xtab
B /etc/rc.config.d/nfsconf
C /etc/exports
D /etc/fstab
@
c
@
The result is in the /etc/xtab file.
@
9
@
W-HPUX7@
Which file contains the list of static routes to be configured at boot?
A /etc/rc.config.d/route
B /etc/rc.config.d/netdaemon
C /etc/rc.config.d/netconf
D /etc/route
@
c
@
netconf contains IP, netmask, route, etc.
@
4
@
W-HPUX7@
Identify the current run level for NFS components on a standard HPUX system
A run level 2 for core and client, 3 for server
B run level 2 for core, client and server
C run level 3 for core and client, 2 for server
D run level 3 for core, client and server
@
a
@
NFS server starts at run level 3.
@
9
@
W-HPUX7@
After setting the -async option for NFS exports, which of the following
is true?
A This would lead to better performance.
B This would lead to better data integrity.
C This would only be used on very quiet networks
D There is no -async option for NFS exports.
@
a
@
This is an advanced topic. You can refer to "man exportfs".
@
9
@
W-HPUX7@
One host on the local network has an IP of 17.10.132.3 with a netmask of
255.255.128.0. What network and broadcast address pair characterize this
network?
A network: 17.10.0.0 broadcast: 17.10.255.255
B network: 17.10.128.0 broadcast: 17.10.128.255
C network: 17.10.0.0 broadcast: 17.10.127.255
D network: 17.10.128.0 broadcast: 17.10.255.255
@
d
@
There are 2 subnets: 17.10.0.0 and 17.10.128.0
IP AND netmask=network address
Host bit are all 1s=broadcast address
@
5
@
W-HPUX7@
Which of the following commands will NOT execute without either a
hosts.equiv or .rhosts file properly configured?
A rlogin
B remsh
C ruptime
D rwho
@
b
@
You cannot run remsh without equivalency.
@
13
@
W-HPUX7@
Which script initially starts portmap/rpcbind at boot?
A /sbin/init.d/nfs.client
B /sbin/init.d/nfs.core
C /sbin/init.d/nfs.server
D /sbin/init.d/net
@
b
@
rpcbind is the core of RPC.
@
9
@
W-HPUX7@
In the context of TCP/IP static routing, select the only true statement:
A Static routing provides redundant routing paths
B Routing tables must have one default route defined
C Routing information is normally placed in the file
/etc/rc.config.d/netconf
D To list the routes on a HPUX host, use the command: route -l
@
c
@
See 4-3.
@
4
@
W-HPUX7@
Indicate which of the following statement is FALSE with respect to NFS
A Local NFS file system mounts can be exported to other systems.
B Full Unix semantics are not always supported on a remotely mounted file
system
C A client can mount any file or directory on the exported file system not
just the root.
D A server can export entire file systems, directories, or a file
@
a
@
Refer to ch8.
@
8
@
W-HPUX7@
On HPUX which of the following commands would NOT allow the user to execute
commands on another system via the network?
A remsh
B rsh
C telnet
D rlogin
@
b
@
rsh is a restricted shell
@
13
@
W-HPUX7@
IP 15.77.100.3 belongs to a host on a network. On this network, a subnet
mask of 255.255.252.0 would allow for how many hosts per subnet?
A 1022
B 2046
C 4094
D 8190
@
a
@
You should get the host bits is 10.
@
5
@
W-HPUX7@
The following line is a segment from the file listing exported file systems
on host H:
/xly/fs -rw=saturn:pluto:neptune,root=pluto
The use of root=pluto is to provide which type of access to exported file
system /xly/fs? It allows:
A anyone from pluto read/write access.
B only user pluto to access the exported file system as root
C the root user on pluto to re-export the mounted file system to other NFS
nodes
D the root user on pluto read/write access
@
d
@
-root in /etc/exports makes root users on NFS client gain super access to
mounted NFS file systems.
@
9
@
W-HPUX7@
In what situation would you normally see the error "Stale file handle" on
a :
A NFS client when a file the client has been accessing has had its mount
point removed by the NFS server
B NFS server when too many clients attempt to access a file simultaneously
C NFS client when an attempt is made to remount an already mounted mount
point
D NFS server when a file has been accidentally removed while one or more
clients are accessing.
@
a
@
See "man exportfs"
If an NFS-mounted directory is unexported by exportfs, any access by the
client to the directory causes an NFS stale file handle error. However,
if exportfs is used to remove a client from the access list of an exported
directory, an NFS stale file handle error does not result from any access
by the client to the directory.
@
9
@
W-HPUX7@
To access nodes beyond your local network, you must have access to
A /etc/hosts
B DNS
C a bridge
D a router
@
d
@
Need explain?
@
4
@
W-HPUX7@
The linkloop command is useful for showing:
A. local LAN throughput
B. loopback address operational status
C. router activity
D. LANIC address connectivity
@
b
@
Use linkloop to test layer 2 connectivity.
@
6
@
W-HPUX7@
How does an HP-UX administrator turn the bootp daemon on at boot?Edit the:
A./etc/rc.config.d/netdaemon file and set the variable BOOTP=1
B./ etc/inted.conf file and uncomment the bootp line
C./etc/rc.config.d/bootp file and set the variable BOOTP=1
D./etc/rc.config.d/netconf file and set the variable BOOTP=1
@
b
@
bootp/tftp are inetd services.
@
14
@
W-HPUX7@
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
@
d
@
D. HP-UX uses the /etc/rc.config.d/netconf to configure the LAN interface
card with the ifconfig command at system boot.
@
3
@
W-HPUX7@
Which of the following is an access method?
A. RJ-45
B. CSMA/CD
C. token ring
D. token bus
@
b
@
CSMA/CD stands for carrier sense, multiple access with collision detection.
This method can be defined as wait, send, and listen. CSMA/CD is the IEEE
802.3 and Ethernet access method.
Token passing can be implemented in a ring and a bus topology
@
2
@
W-HPUX7@
A bridge can perform translations up to an including which OSI layer
A. layer 1
B. layer 2
C. laver 3
D. laver 4
@
b
@
Bridges are used to connect two LAN segments at the OSI data link layer.
Bridges can only determine the link level address of the source and
destination stations involved in the data transfer; it cannot deal with
IP addresses.
@
2
@
W-HPUX7@
Which of the following is not a standard ARPA service ?
A. telnet
B. rlogin
C. ftp
D. BOOTP
@
b
@
rlogin, rcp,remexec are Berkeley services.
@
13
@
W-HPUX7@
Which of the following files turns the inetd daemon off at boot?
A. No file can prevent the inetd daemon from being started at boot.
B. /etc/rc.config.d/netdaemon
C. /etc/rc.config.d/netconf
D. /etc/rc.config.d/inetd
@
a
@
inetd is running by default. You can set its log option.
@
13
@
W-HPUX7@
The default packet size used by ping transmissions is:
A. 32 bytes.
B. 64 bytes.
C. 32 bits.
D. 64 bits.
@
b
@
The correct answer is: B. 64 bytes.
The default value is 64 (on HPUX systems at least).
@
6
@
W-HPUX7@
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
@
b
@
"in-addr.arpa" is also a name space to resolve ip to hostname.
@
12
@
W-HPUX7@
模拟题二
What access method does an Ethernet bus use?
A. BNC
B. CSMA/CD
C. token passing
D. ATM
@
B
@
在H3065S 第2 5 节有介绍
@
2
@
W-HPUX8@
For HP-UX 11.0 a bootable tape image may be created using the command:
A. boot_image
B. make_recovery
C. makeboot
D. mkrs
@
B
@
two backup commands fbackup and make_recovery are touched at the 13
chapter.
@
13
@
W-HPUX8@
What are the 4 key word in an "if" statement in the POSIX shell?
A. If, then, do, done
B. if, then, else, fi
C. if, then, begin, end
D. if, then, else, endif
@
B
@
分支的结构是 is always begin with if fi case esac
@
17
@
W-HPUX8@
Which of the follow device file names point to the disk drive defined by
the following ioscan-f
Output lines?
Class I H/W Path
--------------------------------------------------------------
ext_bus 4 8/16/5
disk 9 8/16/5.60
A. /dev/rdsk/c5t4d9
B. /dev/rdsk/c4t6d0
C. /dev/rdsk/c5t5d0
D. /dev/rdsk/c6t9d4
@
B
@
refer to SCSI name convention
@
7
@
W-HPUX8@
Which of the following files can NOT be used to prevent ftp access?
A /etc/ftpusers
B /var/adm/inetd.sec
C. /etc/inetd.conf
E. /etc/ftp.conf
@
E
@
@
13
@
W-HPUX8@
Which statement is not in a format suitable for either/etc/hosts.equiv
or .rhosts?
A. - pluto
B. + sally
C. saturn, pluto, -bob
D. saturn -bob
@
C
@
please refer to 13.10 and 13.11 sections, read carefully.
@
13
@
W-HPUX8@
You have created a directory for the volume group named /dev/vg01. Which
command would you
Use to create the group file for this volume group?
A. mk -group
B. insf
C. mksf
D. mknod
@
D
@
@
8
@
W-HPUX8@
The difference between block and character I/O is:
A. character I/O goes through the buffer cache and block I/O does nor.
B. B lock I/O is for large data transfers only and character I/O is for small
data transfers only.
C. Character I/O is only used for tty devices.
D. Block I/O goes through the buffer cache and character I/O does not
@
D
@
在H3064S 的第7 2 节有介绍
@
7
@
W-HPUX8@
The c ommand used to submit a file of commands to run under the cron process
is:
A. cronfile
B. crontab
C. cron.allow
D. /usr/sbin/cron
@
B
@
如何提交查看和撤销作业的命令是crontab. 另外定时作业的进程是cron, 所
涉及的目录是在哪儿/var/adm/cron.allow /var/adm/cron.deny 的作用是什
么要弄清
@
14
@
W-HPUX8@
IP address 15.77.100.3 belongs to a host on a network. On this network,
a subnet mask of
255.255.252.0 would allow for how many hosts per subnet?
A. 1022
B. 2046
C. 4094
D. 8190
@
A
@
IP 地址掩码和网络地址的作用多少网络以及每一网络支持多少主机要会算
参阅第5 章
@
5
@
W-HPUX8@
In HP_UX 10.X and above most system log files are located in :
A. /var/adm
B. /usr/adm
C. /etc
D. /tmp
@
A
@
参阅H3064S 第5 章的内容
@
5
@
W-HPUX8@
Which command would you use to obtain information on established sockets?
A. ifconfig
B. netstat
C. Ianadmin
D. Netsock
@
B
@
如何查看监控的断口如何查看路由以及查看网络配置信息所需要使用的命令
@
6
@
W-HPUX8@
at HP_UX 11.X new drivers:
A. may only be added by re-compiling the kernel image.
B. May only be added using the the sam utility.
C. Are added automatically during boot time auto-configuration.
D. May be registered and added to the kernel dynamically.
@
A
@
在HP UX11 版本上所有驱动程序和分系统都是静态的所以需要配置但是可
用手工也可用SAM 功能作
@
18
@
W-HPUX8@
Indicate which of the following statements is False with respect to NFS.
A. Local NFS file system mounts can be exported to other systems.
B. Full UNIX semantics are not always supported on a remotely mounted file
system.
C. A client can mount any file or directory on the exported file system
not just the root.
D. A server can export entire file systems, directories, or a file.
@
C
@
client 能否 mount 取决于服务器是否将响应权限放开所以大家一定要对权限的
设置弄清楚仔细研究H3065S 的表9 2 另外大家要指导两条命令showmount
和 exportfs 的作用及如何执行
@
9
@
W-HPUX8@
If you create a subdirectory named custom under the /etc/ske/ directory
and it contains a file named config then new user accounts created via sam
will:
A. contain a symbolic link to this file structure.
B. Have a local file ~/custom/config, which is read-only for the account
owner.
C. Not have and access to the file custom.
D. Have a local file ~/custom/config, belonging to the new user.
@
D
@
/etc/skel 目录的作用是提供静态的startup file,在创建新用户并主目录时
此用户的 startup file 来自于/etc/skel
@
3
@
W-HPUX8@
How do you set a value into a local variable in the POSIX shell?
A. variable=value
B. variable=[value]
C. set variable value
D. $variable=value
@
A
@
如何设置局部变量和环境变量及语法格式
@
7
@
W-HPUX8@
After setting the -async option for NFS exports, which of the following
statements would be true?
A. This would lead to better performance.
B. This would lead to better data integrity
C. This would only be used on very quiet networks
D. There is no -async option for NFS exports
@
A
@
文件系统的调优一个关键因素是mount 此文件系统时加选项-o async 可以实
现提高性能 async 的意义是数据写到BUFFER 区即返回确认结果
@
9
@
W-HPUX8@
Which of the following statements is true for the root user?
A. /etc/hosts.equiv is never used for root users.
B. .rhosts is always checked before hosts.equiv.
C. .rhosts is always checked after hosts.equiv.
D. all of the Berkeley Internet services always ask for a password.
@
A
@
在H3065S 第13 章详细介绍了BSD 服务的信任关系信任关系涉及到两个文件
/etc/hosts.equiv 和$HOME/.rhosts 对于普通用户而言系统首先读
/etc/hosts.equiv 然后是$HOME/.rhosts 而对于超级用户而言只读
$HOME/.rhosts 另外必须要清楚这两个文件的语法格式考试时会考的
@
13
@
W-HPUX8@
Extensions to the basic HP_UX security system are available through HP_UX
s:
A. shadow password file.
B. Trusted computing base.
C. POSIX security extensions.
D. Passwd-plus.
@
B
@
HP UX 提供了类似其它公司的 shadow password file 功能但是通过 Trusted
系统实现的
@
2
@
W-HPUX8@
The linkloop command is useful for showing:
A. local LAN throughput.
B. Loopback address operational status.
C. Router activity.
D. LANIC address connectivity.
@
D
@
H3065S 第6 章介绍的几条故障诊断命令一定要清楚每条命令能解决什么问提供
题有什么信息
@
6
@
W-HPUX8@
As a non root user, is it possible to influence the priority that a command
runs at?
A. yes, using the pri command
B. no.
C. yes, using the nice command
D. yes, using the priority command
@
C
@
51434 第15 章介绍了NICE 命令及作用
@
15
@
W-HPUX8@
Which command would print all of the dot files to the screen
excluding .and..?
A. echo.*
B. echo.?*
C. echo.[.]*
D. echo.[!.]*
@
D
@
参阅文件名生成符
@
8
@
W-HPUX8@
the follow line is a segment from the file listing NFS exported file
systems:
/mnt/db -rw=saturn:pluto:neptune
which statement describes access to the exported file system /mnt/db best?
A. allow anyone from system jupiter read/write access
B. allow anyone from system jupiter read only access
C. allow no access to anyone from system jupiter
D. allows user nobody access from system jupiter
@
D
@
@
@
W-HPUX8@
consider the fragment of hosts.equiv file for host H shown below. Select
the option that correctly describes the resulting security on host H
A -B
+ C
A. Deny password-free access to user A when attempting to log in from host
B, allow user C password-free access all accounts (except root) on host
H regardless of source host.
B. Deny password-free access to user B when attempting to log in from host
A, allow all users from host C password-free access to host H.
C. Deny password-free access to user B when attempting to log in from host
A, allow user C password-free access to C s accounts (except root) on
host H regardless of source host.
D. Deny password-free access to user B when attempting to log in from host
A, allow user C to password-free access all accounts(except root) on host
H regardless of source host.
@
C
@
@
@
W-HPUX8@
you would use a transceiver when:
A. your LAN card breaks and you require temporary solution.
B. Your LAN card does not have proper the native connector type.
C. You need tot eavesdrop on a LAN line to detect account password
information.
D. You need to split a LAN into two segment.
@
B
@
第二章的主要设备的作用要清楚
@
2
@
W-HPUX8@
which of the following commnds would print the file /etc/hosts on the
printer lj4?
A. lp -p lj4 /etc/hosts
B. lp -dlj4 /etc/hosts
C. lp /etc/hosts -dlj4
D. lp /etc/hosts to lj4
@
B
@
打印机的管理及命令lp, lpalt, lpmove, cancel. Lpsched 等命令
@
15
@
W-HPUX8@
A DNS primary nameserver is authoritative for every host.
A. in its domain
B. in its domain and its delegated subdomains
C. in its zone excluding all of its nondelgated subdomains
D. in its zone including all of its nondelgated subdomains
@
D
@
DNS 服务器的作用
@
12
@
W-HPUX8@
By default, in which of the following HP_UX directories is execute
permission only allowed for the super-user/
A. /usr/bin
B. /usr/local/bin
C. /sbin
D. /usr/contrib/bin
@
C
@
在H3064S 第5 章和51434S 第4 章都介绍了文件系统的布局其中提到了权限
@
@
W-HPUX8@
To set up a d evice swap on a logical volume and ensure it is active at each
system start-up, which of the following items is false?
A. Create a contiguous logical volume
B. Have bad block relocation turned off
C. Add an entry to /etc/fstab
D. Mount the logical volume to the file system at /swap
@
D
@
@
@
W-HPUX8@
The main advantage of using the journal file system over an HFS is:
A. automatic defragmentation
B. better performance for all applications
C. faster recovery
D. guaranteed data integrity
@
C
@
HFS 和VXFS 两个文件系统的比较
@
9
@
W-HPUX8@
The command to show all the physical volumes in volume group is:
A. vgexport -v
B. vgdiplay -v
C. pvdisplay -v
D. lvdisplay -v
@
B
@
@
8
@
W-HPUX8@
The loopback address in TCP/IP networking is:
A. used by gateways to return undeliverable packets
B. a way in which a system can route datagrams to itself
C. used when the card is switched into promiscuous mode
D. a special route used for testing purposes only
@
D
@
loopback address 的作用是测试操作系统网络子系统是否正常
@
@
W-HPUX8@
what is the difference between local and environmental variables?
A. Environmental variables bring values back to the parent process from
the child process
B. Only local variables can be set up by a normal user
C. A local variable is only known about in the current process whereas an
environmental variable is also known about in child processes
D. A local variable is only known about in the users own processes whereas
an environmental variable is known about by the whole system
@
C
@
local variable 和 environmental variable 的区别以及由 local 如何转化为
environmental
@
7
@
W-HPUX8@
In HP_UX 10.X and above, the following users can run SAM
A. super users(root) only
B. all users
C. all users in the groups root or sys
D. super users (root) and users set up in a restricted build of SAM
@
D
@
在H3064S 第二章介绍了 restricted SAM
@
2
@
W-HPUX8@
The alias shell command is used to creat:
A. alternate names for files in your home directory
B. personal shortcuts for frequently used command strings
C. a nickname for you system
D. a second user login for your account
@
B
@
@
@
W-HPUX8@
To create an automated system backup strategy based on the fbackup utility,
which of the following steps is not required?
A. Creation of graph file(s)
B. Scheduling of backup activity using cron
C. Building a backup list using the find command
D. Arrange for blank media to be available in device drives prior to the
scheduled backup time
@
C
@
@
@
W-HPUX8@
The rpcbind or portmap daemon listens for client requests directed to which
well known port(s)?
A. 23
B. 513
C. 111
D. 64
@
C
@
在H3065S 第8.7 节有详细介绍 rpcbind or portmap 的作用及监听断口111
@
8
@
W-HPUX8@
In HP_UX 11, how do you create a bootable recovery system tape including
the entire root volume group? Use
A. make-recovery -A
B. copyutil at the ISL prompt
C. dd on each logical volume in vg00 to DAT
D. save-config
@
A
@
在H3064S 第13 章如何备份有答案
@
13
@
W-HPUX8@
"codewords" are used to protect:
A. software distributed via CD_ROM
B. inter-process communications
C. secure socket layer protocol exchanges
D. locked terminals
@
A
@
用SD 工具安装受保护的软件必须提供的口令
@
19
@
W-HPUX8@
What file contains the list of static routes to be configured at boot?
A. /etc/rc.config.d/route
B. /etc/rc.config.d/netdaemon
C. /etc/rc.config.d/netconf
D. /etc/route
@
C
@
一台机器的网络配置参数是通过/etc/rc.config.d/netconf 文件实现的在此文
件中设置主机名主机IP 地址掩码以及静态路由信息此文件在系统引导时由
/sbin/init.d/net 和/sbin/init.d/hostname 执行在H3065S 第4.4 节有详细
的介绍
@
4
@
W-HPUX8@
a file system can be created on :
A. a logical volume
B. all of these items
C. a whole physical disk
D. a portion of a whole disk partition
@
B
@
在HP UX 系统中磁盘的使用形式是LV 整盘方式以及物理磁盘的一部分上物
理磁盘的首放引导信息然后放文件系统
@
8
@
W-HPUX8@
if the shell variable filenames contained a list of file name, separated
by spaces, how can you extract the second name in the list into a variable
called second?
A. echo $filenames I cut -f2 -d" "> second
B. second=$(echo $filename | cut -f2 -d" ")
C. cut-f2-d" "$filenames > second
D. second = cut -f2 -d" "$filename"
@
B
@
首先要指导怎样显示一个SHELL 变量的值( var ), 然后要指导过滤器cut 命令
的使用 最后是命令的替换形式A command)及作用
@
8
@
W-HPUX8@
The .rhosts file resides in which directory?
A. /etc
B. /net
C. /var/adm
D. $HOME
@
D
@
/etc/hosts.equiv 和.rhosts 文件的作用语法格式
@
13
@
W-HPUX8@
How does an HP_UX administrator turn the bootp daemon on at boot? Edit the :
A. /etc/rc.config.d/netdaemon file and set the variable BOOTP=1
B. /etc/inetd.conf file and uncomment the bootp line
C. /etc/rc.config.d/bootp file and set the variable BOOTP=1
D. /etc/rc.config.d/netconf file and set the variable BOOP=1
@
B
@
在H3065S 第14 2 节有介绍如何起动
@
14
@
W-HPUX8@
in the context of TCP/IP static routing , select the only true statement
A. static routing provides redundant routing paths
B. routing tables must have at least one default route defined
C. routing informtion is normally placed in the file /etc/rc.config.
d/netconf
D. to list the routes on a HP-UX host, use the command : route -1
@
C
@
在H3065S 第4 3 节介绍
@
4
@
W-HPUX8@
The shell pipe command " | " (vertical bar) allows:
A. the output of several commands to be appended to the same file
B. data to be rapidly transported to another user s session
C. the output of a command to be connected to the input of another command
D. the parallel execution of many commands
@
C
@
@
12
@
W-HPUX8@
The software distributor tools will only run if the following daemon is
running :
A. swinstalld
B. swdistd
C. swlogd
D. swgentd
@
D
@
SD-UX 的后台进程另外还需了解swagent 进程的作用
@
19
@
W-HPUX8@
During HP_UX initialization, which utility is responsible for scheduling
the startup scripts for the various run states?
A. /sbin/rc
B. /etc/start
C. /sbin/ioinitrc
D. /sbin/bcheckrc
@
A
@
如何起动网络服务流程是什么谁起动
@
7
@
W-HPUX8@
A socket address defines:
A. a destination IP address on a specific host machine
B. a combination of an IP address and hostname
C. a point-to-point connection between two hosts on the Internet
D. the concatenation of an IP address and a port number
@
D
@
socket address 作用如何生成工作在OSI 第几层
@
1
@
W-HPUX8@
In a " case" statement in the POSIX shell, what would a pattern of
"[eE]*|quit" represent?
A. all words starting with "e" or "E" or the word "quit"
B. all words starting with "e" or "E" and ending in * or the word "quit"
C. equit or Equit
D. None of the above
@
A
@
@
17
@
W-HPUX8@
The fsck command is used to
A. check and repair HFS file systems only
B. check and repair HFS and JFS file systems
C. run the intent log roll back for JFS only
D. check and repair HFS an JFS at system boot time only
@
B
@
@
11
@
W-HPUX8@
The file used by the system to automatically check and mount file systems
on HP_UX 10.X and above is called
A. /etc/checklist
B. /etc/fstab
C. /etc/sbtab
D. /var/adm/fstab
@
B
@
/etc/fstab 文件的作用有三点自动安装文件系统自动检查和交换区自动激

@
10
@
W-HPUX8@
A user account password may be changed by
A. the root user and the account owner
B. anyone who belongs to the group "sys"
C. only the root user
D. only the account owner once it is initially set by root
@
A
@
@
3
@
W-HPUX8@
Which of the following describes the lowest level to which the HP_UX file
system provides access level protection?
A. mounted file system
B. directory
C. sub-directory
D. file
@
D
@
保护目录和文件两种方式
@
6
@
W-HPUX8@
How do you rename a directory called "tmp" to a directory called "temp"
in the present working directory?
A. in tmp temp
B. rn tmp temp
C. mv tmp temp
D. cn tmp temp
@
C
@
@
5
@
W-HPUX8@
Which of the following is not one of the fields in the password file?
A. UID
B. TERM
C. HOME
D. SHELL
@
B
@
/etc/passwd 文件有哪些字段参阅H3064S 3 3 节
@
3
@
W-HPUX8@
The suggested method for allowing local configuration changes to be made
to start-up scripts is through the use of :
A. direct editing of the configuration scripts
B. configuration variables defined in /etc/system.conf
C. sourced configuration files created in the /etc/rc.config.d directory
D. interactive prompts issued to /dev/console during state changes
@
C
@
如何起动服务需要修改哪些目录涉及哪些目录
@
7
@
W-HPUX8@
If you wish to extract all the lines from a file that do not contain a
specified pattern, what command would you use?
A. sort-| filename
B. grep -v pattern filename
C. ext -M pattern filename
D. key -n pattern


本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u/8984/showart_92829.html
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP