- 论坛徽章:
- 0
|
- 1. What should be done to test the lines of a shell script?
- a) Use the exec command
- b) Run the shell syntax checker shck
- c) Model them with a high level language (e.g., "C") first
- d) Enter each one at the command line and check the results
- 2. A user is logged on to an AIX system as the guest user and the guest home directory is /guest. When switching from the guest id to the user's normal id, which command will keep the user in /tmp?
- A. cd
- B. cd /
- C. cd ..
- D. cd .
- 3. Which of the following commands will force a save of any changes and then exit vi?
- A. :wq
- B. :w!
- C. :x
- D. :wq!
- 4. Which of the following commands should be used to list all files in the current directory that have been changed during the current 24-hour period?
- A. find / -ls -name "*" -print
- B. find .. -mtime 24 -ls
- C. find . -ctime 1 -print
- D. find ./ -mtime 24 -ls
- 5. Which of the following commands should be used to search for a $ (dollar sign) only in file1?
- A. grep "$" file1
- B. grep \\$ file1
- C. grep -c $ file1
- D. grep $ file1
- 6. Which method would be used to cancel the print job number 321 that was submitted to the color print queue using the System V printer subsystem commands?a
- a. cancel color
- b. cancel -u 321
- c. cancel 321
- d. cancel -u color
复制代码 |
|