Q13: Write a shell script. to append "snork" to the file "test" but only if "test" already exists.
[ -f test ] && echo "snork" >> test ||:Q13: Write a shell script. to append "snork" to the file "test" but only if "test" already exists.
[ -f test ] && echo "snork" >> test ||:Q14: how to get rid of a file named `-fr`?
rm -- -fr rm \-rf Q15: which steps should take to remove an unneeded, but active, paging space called paging6?
(1) Disable the paging space by using the chps command (2) reboot the system (3) remove the paging6 logical volume by using the rmps command. Q16: What commands can be used to find the files which size is larger than 100MB under /usr/local directory?
find /usr/local –size +200000Q13: UNIX PRG Apache doesn't start up on boot, and the thing above checks out okay. How do you track down the problem?
chkconfig httpd on httpd -t service httpd on netstat -tulpn | grep 80 tail -f /var/log/httpd/access_log tail -f /var/log/httpd/error_log Q14: You are assigned to a customer site in response to a complaint about slow system performance of aix system. What commands will you use to check the memory, cpu, paging space usage,disk io status and find out the process which is using excessive system resource?
(1) Vmstat (2) sar (3) topas (4) iostat (5) ps aux (6) svmon Q15: Using crontab, how would you specify a shell script. “/tmp/collectinfo.sh” to run every 1 hour from 1:00AM to 10:00PM on every Sunday?
Use crontab –e to edit crontab list Add a row “0 1-22/1 * * 0 /tmp/collectinfo.sh” Q16: A user on system SYSA telnet to system SYSB and attempts to run X-windows based application, receiving the following error message: unable to open display. What should the user do to resolve this problem?
(1) telnet SYSB (2) export DISPLAY=IP of SYSA:0 (3) run the application on SYSB Or (1) telnet SYSB (2) export DISPLAY=hostname of SYSA:0 (3) add SYSA and SYSA IP into /etc/hosts (4) run the application on SYSB Q13:(D) A system p administrator found a process on the server that should be stopped. Which of the following commands can be used to list all the signal actions defined for this process?
A. ps
B. pstat
C. lssig
D. procsig
Q14:(B) A system p administrator is looking at changing attributes of a logical volume. Which of the following must be defined when it is created?
A. placement of the logical volume
B. stripe size of the logical volume
C. inter-disk policy of the logical volume
D. intra-disk policy of the logical volume
Q15:(D) A System p administrator has determined that a recently applied APAR needs to be removed. Which of the following installp options will remove the APAR?
A. cleanup
B. uninstall
C. deinstall
D. reject
Q16:(B) Which of the following should be scheduled in adm's crontab to enable sar reporting?
A. sar
B. sal
C. vmo
D. iostat
Q13:(B) How can an administrator determine how many physical copies there are of a mirrored logical volume in rootvg?
A. lslv rootvg
B. lsvg rootvg
C. lsvg hdisk0
D. lspv hdisk0
Q14:(A) Which of the following commands may indicate hardware redundancy protection of a PV?
A. lsattr
B. lspv
C. lsvg
D. lsresource
Q15:(D) Which of the following command would an administrator use to add startup scripts to the system startup process?
A. chitab
B. vi /etc/inittab
C. vi /etc/rc.d
D. mkitab
Q16:(A) Which of the following command would an administrator use to automate monitoring and notification of filling file systems?
A. startcondresp
B. filemon
C. lsfs
D. mount
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/7899089/viewspace-623897/
,如需转载,请注明出处,否则将追究法律责任。