1Z0-409 Oracle Linux Fundamentals Practice Test Set 2

You have executed the following command: find . -name "prg.conf" -exec chmod o+r '{}' \; What is the expected output of this command?


Options are :

  • Locate all the files named prg.conf only in the current working directory and process them by using the chmod o+r command.
  • Locate all the files named prg.conf in the current working directory and sub directories and add execute permissions for others on them
  • None of the above
  • Locate all the files named prg.conf in the current working directory and add execute permissions for others on them.
  • Locate all the files named prg.conf in the current working directory and its sub directories and add read permission for others. (Correct)

Answer : Locate all the files named prg.conf in the current working directory and its sub directories and add read permission for others.

Match the following backslash-escaped characters with their description:
1. \c a. newline
2 . \v b. carriage return
3 . \r c. vertical tab
4 . \n d. suppressing trailing newline 


Options are :

  • 1-a, 2-b, 3-d, 4-c
  • 1-d, 2-c, 3-b, 4-a (Correct)
  • 1-b, 2-d, 3-c, 4-a
  • 1-c, 2-b, 3-a, 4-d

Answer : 1-d, 2-c, 3-b, 4-a

Match the following rpm options with their functions:
1. -i a. replaces any older versions of a package with the new package
2. -U b. upgrades packages, but only if an earlier version exists on your system 

3. -F c. uninstalls the specified package
4. -e d. installs a new package


Options are :

  • 1-a, 2-b, 3-c, 4-d
  • 1-d, 2-b, 3-a, 4-c
  • 1-a, 2-c, 3-b, 4-d
  • 1-d, 2-a, 3-b, 4-c (Correct)

Answer : 1-d, 2-a, 3-b, 4-c

Identify the two true statements about screen. (Choose two.)
A. Terminal manager controls each session in a screen.
B. screen windows do not adhere to vt100 standards.
C. All windows in a screen are dependent on each other.
D. Each window in a screen has its own scroll-back buffer.
E. screen allows only one program to run using one terminal.


Options are :

  • A,B
  • C,D
  • D,E
  • A,D (Correct)

Answer : A,D

You have issued the following command: echo -e welcome\nTo Oracle\nEnterprise\rLinux What would be the impact of -e switch on the echo command?


Options are :

  • It honors the escape sequence only for the first new line character.
  • It honors the escape sequence for both the new line characters and carriage return (Correct)
  • It honors the escape sequence only for the carriage return.
  • It honors the escape sequence only for the two new line characters.

Answer : It honors the escape sequence for both the new line characters and carriage return

An attempt by bob to remotely access smith's shell results in an error as follows: [bob@server 100 ~]$ ssh server 200 The authenticity of host 'server 200 (192.168.0.200)' can't be established. RSA key fingerprint is 1c:6e:b7:8b:65:cc:04:e8:16:ca:7e:81:de:d6:5e:c4.
What would you infer from the error?


Options are :

  • This response is because ssh is unable to find server 200 in the ~/.ssh/known_hosts file of server 100. (Correct)
  • The host name could not be mapped to an IP address
  • The Pub key Authentication parameter is set to no in the /etc/ssh/ssd_config file
  • The ssh verified that the system claiming to be server 200 is server 200 and not any other host.

Answer : This response is because ssh is unable to find server 200 in the ~/.ssh/known_hosts file of server 100.

As user smith you issue the mesg command on the tty1 terminal to know its status. The output of the command is shown below:
[ smith@station 2 ]$ mesg is y [ smith@station 2 ]$ Which three statements are true in this context? (Choose three.)
A. The talkd daemon honors the current mesg status.
B. The wall command honors the current mesg status.
C. The talk command honors the current mesg status.

D. The talkd daemon does not honor the current mesg status.
E. The talk command does not honor the current mesg status.
F. The wall command does not honor the current mesg status.


Options are :

  • A,C,E
  • A,B,C (Correct)
  • D,E,F
  • C,D,E

Answer : A,B,C

A normal user sends a print job to the default printer but later finds the print queue is big and decides to cancel the job. What would the user do to perform this task?


Options are :

  • The user has to list the job using lpq and remove it using the command lprm with the job number as the argument (Correct)
  • The user has no permission to view job numbers using the jobs command and hence cannot delete the job.
  • The user can know the job number but cannot remove the job as he has no permission to use the lprm command
  • The user has no permission to view job numbers using the lpq command and hence cannot delete the job.

Answer : The user has to list the job using lpq and remove it using the command lprm with the job number as the argument

bob wants to send the contents of the /project/java class file to smith using mail through the command line. Which command would help him achieve the task?


Options are :

  • mail smith@example.com < /project/java class. (Correct)
  • mail smith@example.com > /project/java class.
  • mail smith@example.com << /project/java class.
  • mail smith@example.com >> /project/java class.

Answer : mail smith@example.com < /project/java class.

The free command reports slightly less memory than the actual total memory available. Why is it so?


Options are :

  • The zombie processes that exist in the process table occupy a slightly less portion of the main memory that can only be freed on reboot.
  • The multiple instances of a program like shell, being run, consumes a portion of the main memory that cannot be freed
  • The kernel remains in the main memory while the computer is in operation and the memory it occupies can never be freed. (Correct)
  • The swap space occupies a portion of the main memory that can never be freed

Answer : The kernel remains in the main memory while the computer is in operation and the memory it occupies can never be freed.

The user smith is asked to replace all occurrences of the letter "e" with the letter "y" in file 1. txt and save the output to fix.txt. Which command would let the user smith do so? (Choose all that apply.)
A. sed s/e/y file1.txt > fix.txt
B. sed /y/e/g file1.txt > fix.txt
C. sed s/e/y/g file1.txt > fix.txt
D. sed /y/e/g file1.txt > ./fix.txt
E. sed s/e/y/g < file1.txt > ./fix.txt


Options are :

  • A,B
  • A,D
  • C,E (Correct)
  • C,D

Answer : C,E

What happens when you execute the lpq command without passing any arguments?


Options are :

  • It lists the jobs in all the available queues
  • It lists all the jobs in the default queue (Correct)
  • It removes all the jobs available in the default queue.
  • It removes the jobs available in all the available queues.

Answer : It lists all the jobs in the default queue

You have the /home/ file system on server 1 exported through NFS. You have a fresh installation of Linux on a workstation and want to setup the workstation to mount and un mount the /home/ file system automatically. Which default configuration files on the workstation would you edit to achieve this task?


Options are :

  • Edit only the /etc/auto.home file.
  • Edit both the /etc/auto.home and /etc/auto.master files. (Correct)
  • Edit the /etc/inittab file
  • Edit the /etc/fstab file.

Answer : Edit both the /etc/auto.home and /etc/auto.master files.

You are writing a script and add the following line at the beginning of the script: #!/bin/bash What implications does this have on the shell script if the script is called directly at the c shell prompt?


Options are :

  • The current shell will attempt to parse and execute the script
  • The script will be executed using bourne as the shell interpreter.
  • The script will treat the line as a comment
  • The script will be executed using bash as the shell interpreter. (Correct)

Answer : The script will be executed using bash as the shell interpreter.

Match the print commands with their functionalities.
1. lpq a. printer control program
2. lprm b. Send a job to the queue to be printed.
3. lpr c. Remove a job from the queue.
4. lpc d. View the contents of the queue.


Options are :

  • 1-a, 2-b, 3-c, 4-d
  • 1-a, 2-c, 3-b, 4-d
  • 1-d, 2-c, 3-b, 4-a (Correct)
  • 1-d, 2-b, 3-c, 4-a

Answer : 1-d, 2-c, 3-b, 4-a

View the script given below: for i in $(seq 5) do echo $i done What is the output of this script?


Options are :

  • 5 4 3 2 1
  • 12345 (Correct)
  • 54321
  • 1 2 3 4 5

Answer : 12345

The root user on server 1 is trying to switch to the normal user account scott for testing certain privileges he has and receives an error as shown below: [root@server1 ~]# su - scott This account is currently not available [root@server1 ~]# What do you infer from this error?


Options are :

  • The user scott has the shell set to /sbin/nologin. (Correct)
  • The user scott has the shell set to /bin/false
  • The user scott's account is locked
  • The user scott is assigned with a UID below 500

Answer : The user scott has the shell set to /sbin/nologin.

Match the bash file with its description:
File name Description
1. .bash_history a. a list of commands to be executed when you log in
2. .bash_logout b. contains a list of commands that is executed every time you open a new shell 

3. .bash_profile c. keeps a list of the commands you have been typing
4. .bashrc d. a list of auto run commands to be executed when you leave the shell 


Options are :

  • 1-b, 2-c, 3-d, 4-a
  • 1-c, 2-d, 3-a, 4-b (Correct)
  • 1-c, 2-d, 3-b, 4-a
  • 1-b, 2-c, 3-a, 4-d

Answer : 1-c, 2-d, 3-a, 4-b

You have logged in to a newly installed Oracle Enterprise Linux machine in the graphical mode. Which default desktop will be used after you log in?


Options are :

  • KDE
  • Xpde
  • Xfce
  • GNOME (Correct)

Answer : GNOME

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


Options are :

  • 1-d, 2-f, 3-a, 4-e, 5-b, 6-c (Correct)
  • 1-d, 2-f, 3-c, 4-b, 5-e, 6-a
  • 1-f, 2-b, 3-a, 4-e, 5-d, 6-c
  • 1-c, 2-b, 3-a, 4-f, 5-d, 6-e

Answer : 1-d, 2-f, 3-a, 4-e, 5-b, 6-c

Where do the manual (man) pages for all commands reside in the File System Hierarchy (FSH)?


Options are :

  • /usr/man/share/locale
  • /usr/share/man (Correct)
  • /usr/share/locale/man
  • /usr/share/info/man

Answer : /usr/share/man

You have a file named new backup on the server 1.example.com server. To download the file through lftp as user bob, you issued the following command: [bob@station 2 ~]$ lftp ftp.server 1.example.com/pub/> get new backup & After a while, before the download is completed, you quit lftp. Which statement about lftp holds true in this context?


Options are :

  • It will continue to run in the background until the entire file has been downloaded (Correct)
  • It will run as a foreground process until the file is downloaded completely and then quits.
  • It ignores the quit signal and continues the download until it completes it.
  • It will continue to run in the background but stops downloading the file.

Answer : It will continue to run in the background until the entire file has been downloaded

You have logged in as the root user into run level 3. What happens if you execute the xinit command?


Options are :

  • The system changes to run level 5.
  • The system continues to run in run level 3. (Correct)
  • The system changes to run level 1 (single).
  • The system changes to run level 4.

Answer : The system continues to run in run level 3.

You have logged in at the tty1 terminal on your local machine and want to display all the child processes that have an associated terminal. Which command would help you achieve this task?


Options are :

  • ps
  • ps -a (Correct)
  • ps a
  • ps -e

Answer : ps -a

The user scott issues the cp -f ~/file1 /tmp/dir2 command. Which of these statements are true about this command? (Choose all that apply.)
A. The /root/file1 file is copied to the /tmp/dir2 directory.
B. If /tmp/dir2 exists and is a file, it will be overwritten by file1.
C. The file1 file is copied from scott's home directory to /tmp/dir2.
D. If /tmp/dir2 does not exist, ~/file1 will be copied as /tmp/file1.


Options are :

  • B,C (Correct)
  • C,D
  • A,C
  • A,B

Answer : B,C

You executed the following command to verify the integrity of sendmail: [root@station1 ~]# rpm -Va sendmail .......T. c /etc/mail/sendmail.cf S.5....T. c /var/log/mail/statistics [root@station1 ~]# What do infer about the /var/log/mail/statistics file from the output?


Options are :

  • The user ownership, group ownership and file type have changed.
  • The permissions, user ownership, and file type have changed.
  • The permissions, group ownership and file type have changed.
  • The MD5 signature, file size, and modification time have changed. (Correct)

Answer : The MD5 signature, file size, and modification time have changed.

Which statement is true about the privileges granted to a user with the UID of 0? 


Options are :

  • The system ignores all permissions when responding to commands from the user and provides read and write permissions to every file and device known to the system (Correct)
  • Privileges are granted as per the permissions set on every file and device known to the system
  • The system ignores privileges to modify software installed on the system
  • Privileges are granted only to read most of the configuration files and documentation files in the system directories, not modify them

Answer : The system ignores all permissions when responding to commands from the user and provides read and write permissions to every file and device known to the system

As user smith you want the CPU utilization of all the users logged on to server 1 server. You want the information available automatically as soon as you login to the bash login shell and want the information available only to smith. What would you do on server 1, which has all the default shell configuration files, to accomplish the task?


Options are :

  • Add the w command to ~/.profile file.
  • Add the who command to ~/.bash_profile file.
  • Add the w command to ~/.bash_profile file (Correct)
  • Add the who command to ~/.profile file

Answer : Add the w command to ~/.bash_profile file

You want a script to be automatically run for the default graphical desktop as soon as you log in. What would you do to achieve this task?


Options are :

  • Go to Applications > Preferences >More Preferences->Preferred Applications and add the absolute path of the script
  • Go to Applications > System Tools > Task Scheduler and add the absolute path of the script
  • Go to Applications > Preferences > More Preferences > Sessions and add the absolute path of the script in Startup programs (Correct)
  • Go to Applications > System Settings > Add/Remove Applications and add the absolute path of the script

Answer : Go to Applications > Preferences > More Preferences > Sessions and add the absolute path of the script in Startup programs

Which statements are correct about a command shell? (Choose all that apply.)
A. It initializes synchronous interrupts.
B. It enables task automation using scripts.
C. It handles all communications with devices attached to the system.
D. It handles interaction between the user and the kernel when a user is operating at the command line.


Options are :

  • A,B
  • A,C
  • C,D
  • B,D (Correct)

Answer : B,D

Comment / Suggestion Section
Point our Mistakes and Post Your Suggestions