54. a user report that they cannot cd to /tmp/application. A system administrator enter the following command:
ls –ld /tmp/application
drw-r—r— 4 root system 512 jan 15 14:09 application Which of the following is the most likely cause of the problem? A. the /tmp/application should be globally writable B. the /tmp/application directory should be executable C. the /tmp/application directory should beowned by the user D. the /tmp/application directory should have the sticky bit set Answer: B
55. an administrator suspects someone is modifying a sensitive file, and wants to log access information for this file. Which of the following AIX component accomplishes this? A. audit B. syslog C. TCB D. sysck Answer: A
Audit 命令控制系统审计
56. an administrator can create logical volumes and then add file systems to them, or create the file system directly. What is an advantage of the two-step approach instead of the one-step approach? A. the number of bytes per inode can be specified B. placement of the filesystem on the disk can be specified C. the jfslog can be specified on crestion of the filesystem
D. either a jfs or jfs2 filesystem can be created on the logical volume Answer:B
57. an administrator needs to determine what the default run level of a system is. Which command would be used? A. lsitab init B. telinit -d C. cat /etc/.init.state D. init Answer:A 答案参见11题
58. an administrator requires a summary of current configuration for each system. This is needed for an audit trail. Which of the following will provide this information? A. configassist
B. prtconf C. lsattr D. listdgrp Answer: B
59. what is the ratio of physical partition to logical partition in rootvg in a non-mirrored environment? A. 0 B. 1 C. 2 D. 3 Answer: p
60. a system p customer has installed components from the linux toolbox. By default, which of the following directories will contain the open source commands such as gizp, group and zcat? A. /opt/freeware/bin B. /usr/bin/freeware C. /var/freeware/bin D./usr/sbin/freeware Answer: A
61. which of the following commands can be used to prepare a system to physically insert a PCI plug adapter? A. mkdev B. cfmgr C. drslot D. lsslot Answer: C
62. an administrator has a server experiencing performance problems with logical volumes within a particular volume group. Which command can report I/O statistics for logical partitions with each logical volume within the volume group. A. lslv B. vmstat C. iostat D. lvmstat Answer: D
63. an administrator was asked to log information on possible security breaches on a server. To which file should additional entries be added to capture this information? A. /var/adm/sulog
B. /etc/syslog.conf C. /etc/security/sysck.cfg D. /etc/security/syslog.conf Answer: B
64. which of the following commands will run myscript and redirect stdout and sterr to /tmp/myoutput? A. ./myscript >> /tmp/myoutput B. ./myscript 2 > 1 /tmp/myoutput C. ./myscript > /tmp/myoutput 1 > 2 D. ./myscript > /tmp/myoutput 2 >1 Answer: D 题目的意思是将脚本执行的结果使用stdout和stderr命令重定向到/tmp/myoutput中
当只使用 > 重定向输出时,只重定向命令的 stdout。但是,除了 stdout,还有 stderr 输出:前者表示为 1,后者表示为 2。在 UNIX 中输出重定向没有区别。只需在 > 前面加上所需的输出类型(例如,1>、2>),告诉 shell 要把输出路由到哪里 有时候,可能需要把 stdout 和 stderr 写到同一个文件或设备。这有两种方法。第一种方法是把 1> 和 2> 重定向到同一个文件: # ls fileA.tar.bz2 fileC.tar.bz2 1> ls.out 2> ls.out # cat ls.out fileA.tar.bz2 ls: 0653-341 The file fileC.tar.bz2 does not exist. 第二个方法更简单更快速,有经验的 UNIX 用户更喜欢采用这种方法: # ls fileA.tar.bz2 fileC.tar.bz2 > ls.out 2>&1 # cat ls.out fileA.tar.bz2 ls: 0653-341 The file fileC.tar.bz2 does not exist. 我们分解这个语句。首先,执行 ls fileA.tar.bz2 fileC.tar.bz2。然后使用 > ls.out 把 stdout 重定向到 ls.out,使用 2>&1 把 stderr 重定向到前面重定向的 stdout(ls.out)。