Oracle Linux Fundamentals (Oracle PartnerNetwork) (1Z0-409) Free Practice Test
Question 1
You have executed the following command:
find . -name "prg.conf" -exec chmod o+r '{}' \;
What is the expected output of this command?
find . -name "prg.conf" -exec chmod o+r '{}' \;
What is the expected output of this command?
Correct Answer: B
Question 2
Match the following signal values with their description.
1. 9 a. Hangup
2 . 19 b. Terminate the process and dump core
3.11 c. Kill signal
4.1 d. Stop the process
1. 9 a. Hangup
2 . 19 b. Terminate the process and dump core
3.11 c. Kill signal
4.1 d. Stop the process
Correct Answer: C
Question 3
You have opened a file called newfile.txt in the vi editor and in command mode, you enter :0,$ s/hello/init/g. What could be the purpose of issuing this command?
Correct Answer: D
Question 4
As an administrator, you mounted the /exports/projects NFS exported directory from a server on a LAN using the default NFS settings. You find the performance to be low. Which NFS mount options can you use to increase the performance?
Correct Answer: B
Question 5
What would be the output of the nested for loop given below?
for (( i=1; i<=5; i++ ))
do
for (( j=1; j<=i; j++ ))
do
echo -n "$j"
done
echo " "
done
for (( i=1; i<=5; i++ ))
do
for (( j=1; j<=i; j++ ))
do
echo -n "$j"
done
echo " "
done
Correct Answer: B
Question 6
As root you execute the following command:
echo "Good\nMorning\nSmith"
You find the two newline characters in the output and do not want them to appear in the output. Which two among the following would help you achieve this task without effecting the content of echo command? (Choose two.)
echo "Good\nMorning\nSmith"
You find the two newline characters in the output and do not want them to appear in the output. Which two among the following would help you achieve this task without effecting the content of echo command? (Choose two.)
Correct Answer: E,F
Question 7
Match the following commands with their actions in the execute mode of the vi editor:
1) :e! a) save and exit 2) :X b) exit even if changes have not been saved 3) :wq c) save and exit even if the file is read only 4) :w! d) forget changes since last write 5) :q! e) save the file even if it is marked read only 6) :wq! f) encrypt the file along with a password
1) :e! a) save and exit 2) :X b) exit even if changes have not been saved 3) :wq c) save and exit even if the file is read only 4) :w! d) forget changes since last write 5) :q! e) save the file even if it is marked read only 6) :wq! f) encrypt the file along with a password
Correct Answer: C
Question 8
As per the Linux Documentation Project (LDP), which directory in the File System Hierarchy (FSH) holds the online distribution documentation that includes FAQs, How-to's, Web sites, and so on?
Correct Answer: B