免费注册 查看新帖 |

Chinaunix

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

HP_UX Bible ----- 第一部分unix 系统基础 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2002-01-19 10:40 |只看该作者 |倒序浏览
@1@
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.
@ 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 @
@ 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.
@ 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 @
@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 @
@ 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 @

论坛徽章:
0
2 [报告]
发表于 2002-01-19 10:40 |只看该作者
<由于太长,去掉了一些注释!>
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP