"A script enabled browser is required for this page to function properly"

Oracle Certification

Oracle Linux Fundamentals Exam

Sample Questions

View answers below

Sample questions are provided solely to familiarize candidates with the multiple-choice format and writing style of questions that will be found on the exam.  Sample questions may not cover the full spectrum of difficulty that is covered by the exam questions. Success on the sample questions does not predict success on the exam.

1. As a system administrator, you have created the /public directory. The permission to the directory is shown below:
[root@server1 ~]# ll -d /public/
drwxr-xr-x  3 root root 4096 Dec 17 04:35 /public/


You have a requirement that all the normal users in the system should be able to create files in the /public directory, but they should not be able to delete one another's files.

Which command will achieve this task?

  1. chmod 777 /public
  2. chmod 1777 /public
  3. chmod 2777 /public
  4. chmod 4777 /public
2. Which statement is true about symbolic link?
  1. It cannot span file systems.
  2. It cannot reference directories.
  3. It can reference nonexistent files.
  4. It does not occupy storage space (that is, blocks).
3. Which statement is true about the command shown below?

[r1@server1 ~]$ head -15 /etc/passwd | tail –5

  1. It will display the first 15 lines of the /etc/passwd file.
  2. It will display the last five lines of the /etc/passwd file.
  3. It will display the lines 11 through 15 in the /etc/passwd file.
  4. It will display the lines between 5 and 15 in the /etc/passwd file.
4. You have opened file1 in the vi editor. The contents of file1 is shown below:

[root@server1 ~]# vi file1
green
red
pink
blue green pink
white green blue green
blue green pink green


At the vi editor command mode, you execute the following command to edit the contents of file 1:

:1,$s/green/yellow/

What will be the result of this command?

  1. It will search only the first line for all occurrences of the regex green and replace it with the word yellow.
  2. It will search the entire file for the first occurrence of the regex green and replace it with the word yellow.
  3. It will search only the first line for the first occurrence of the regex green and replace it with the word yellow.
  4. It will search the entire file for all occurrences of the regular expression (regex) green and replace it with the word yellow.
5. Match the items in the two columns below. Choose the option that matches them correctly
 

1) /etc/ssh/sshd_config

a) The private key file that the server uses

2) /etc/ssh/ssh_host_key

b) The main configuration file for sshd

3) /etc/ssh/ssh_config

c) The user specific file for the SSH client commands

4) ~/.ssh/config

d) The main configuration file for the SSH client commands


  1. 1-c, 2-a, 3-b, 4-d
  2. 1-d, 2-a, 3-c, 4-b
  3. 1-b, 2-d, 3-a, 4-c
  4. 1-b, 2-a, 3-d, 4-c
6. Which statement is true about the command shown below?

[root@server1 ~]# mount -a -O no_netdev

  1. It mounts all file systems that have the option _netdev specified in the Options field in the /etc/fstab file.
  2. It mounts only ext3 file systems that have the option _netdev specified in the Options field in the /etc/fstab file.
  3. It mounts only msdos file systems that have the option _netdev specified in the Options field in the /etc/fstab file.
  4. It mounts all file systems except those with the option _netdev specified in the Options field in the /etc/fstab file.

Answers

  1. B
  2. C
  3. C
  4. B
  5. D
  6. D