1.Which command can be used to enter the vi editor and create the file "myfile" without generating any errors?
A: vi myfile
B: vi -c myfile
C: vi -y myfile
D: vi -t myfile
Correct Answers: A
2.AIX documentation Library Service allows HTML pages to be written and added to the library. Who has the authority to add these HTML pages to the Documentation Library?
A: The adm user
B: Any user that can write HTML
C: The System Administrator
D: The user who creates the HTML document
Correct Answers: C
3.When executed on a single line, which commands will cause a syntax error?
A: cd ; ./.profile
B: ps -ef | grep init
C: TERM=ibm3151 / export TERM
D: find /etc -print | grep motd
Correct Answers: C
4.Which vi command can be used to change the location of the cursor position to line 16 of a file?
A: 16
B: j16
C: /16
D: :16
Correct Answers: D
5.What is displayed by the command grep -v "^#" ?
A: All lines that begin with a ^
B: All lines that begin with a ^ or #
C: All lines that do not begin with a #
D: Lines that do not begin with a # or ^
Correct Answers: C
6.Which of the following is one way a user could copy several words to the command prompt in an AIXTerm window?
A: Move the cursor to the beginning of the first word to be copied, click and hold down the center mouse button, move the cursor to the end of the last word to be copied highlighting the text, and release the center mouse button, move the cursor to command prompt and click the right mouse button.
B: Move the cursor to the beginning of the first word to be copied, click the left mouse button, move the cursor to the end of the last word to be copied, click the right mouse button, click the center mouse button.
C: Move the cursor to the beginning of the first word to be copied, click and hold down the left mouse button, move the cursor to the end of the last word to be copied highlighting the text, and release the left mouse button, type CTRL-C, move the cursor to command prompt, type CTRL-V.
D: Move the cursor to the beginning of the first word to be copied, double-click the right mouse button for each word to be copied highlighting each word. When all words have been highlighted, move the cursor to the command prompt and click the left mouse button.
Correct Answers: B
7.What is the correct way for a user to change the user's name in the password file?
A: Edit the /etc/passwd file and change the user's name
B: Type the passwd command
C: Type the logname command followed by the user's name
D: Type the passwd -f command
Correct Answers: D
8.Which command should be used to permit ONLY the owner to use the script file named savemachine as an executable script?
A: chmod 777 savemachine
B: chmod -x ./savemachine
C: chmod u=rwx,go= savemachine
D: chmod go-w+x savemachine
Correct Answers: C
9.Which command will stop a background process?
A: ps -ef | grep <process_id> | kill -1 <process_id>
B: Ctrl-c
C: kill -9 <process_id>
D: ps -ef | grep <process_id>
Correct Answers: C
10.Which of the following commands would be used to insert the text in buffer a on the line above the current line?
A: :"a
B: "ap
C: "aI
D: "aP
Correct Answers: D