1Z0-409 Oracle Linux Fundamentals Practice Test Set 7

A group of users on a Linux system have a common working directory /documents with 1770 permissions. You have a scenario where you have to let all users of the group delete any file or directory in /documents. What would you do in this situation to let them delete any file or directory in /documents?


Options are :

  • Set rwx permissions for others on /documents
  • Remove sticky bit on the directory (Correct)
  • Set 777 permissions on all files and directories in /documents.
  • Set 3770 permissions on /documents

Answer : Remove sticky bit on the directory

Identify the true statement about Auto FS


Options are :

  • AutoFS requires manual mounting of file systems but un mounts them without user intervention.
  • AutoFS automatically mounts the file systems on demand but requires manual un mounting
  • AutoFS mounting can be triggered only by a root user
  • Both on demand mounting and un mounting of file systems is taken care of by AutoFS. (Correct)

Answer : Both on demand mounting and un mounting of file systems is taken care of by AutoFS.

Identify the option that has the correct match for an Enterprise Linux standard/feature with its description:
1) POSIX a) helps software to predict the location of installed files and directories
2) FHS b) helps provide compatibility among distributions
3) LSB c) GNU project's replacement for the UNIX kernel to work in Linux
4) HURD d) assures code portability between systems


Options are :

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

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

Identify the true statements about the nice value. (Choose two.)

A. It only accepts priority values less than 19.
B. By default it reduces the priority of a process by 10.
C. A higher nice value makes a process run at a lower priority.
D. By default a normal user can make a process run at a higher priority. 


Options are :

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

Answer : B,C

As an administrator you want to make sure that accidentally you do not delete files using rm command. You also want to make sure that even the use of rm command without any valid  switches prompts for confirmation before file deletion. Which option would help you achieve this task?


Options are :

  • alias rm="rm -i" (Correct)
  • alias rm="rm -f"
  • alias rm="rm -v".
  • alias rm="rm -r".

Answer : alias rm="rm -i"

The user smith wants to navigate to the /usr/share/doc directory. His current working directory is /home/smith. Which of these commands would help smith to navigate to the /usr/share/doc directory? (Choose all that apply.)
A. cd /usr/share/doc
B. cd ../usr/share/doc
C. cd / ; usr/share/doc
D. cd ../../usr/share/doc
E. cd / ; cd usr/share/doc 


Options are :

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

Answer : A,D,E

When bash is invoked as an interactive login shell, what is the order in which the bash configuration files are read with the assumption that all the files exist and are readable?


Options are :

  • /etc/profile,~/.bash_profile,~/.bash_login,~/.profile (Correct)
  • ~/.profile,~/.bash_login,/etc/profile,~/.bash_profile
  • ~/.bash_profile,~/.bash_login,/etc/profile,~/.profile
  • ~/.bash_login,/etc/profile,~/.profile,~/.bash_profile

Answer : /etc/profile,~/.bash_profile,~/.bash_login,~/.profile

Identify the XDMCP query type in which a client machine connects to the first available machine to get a list of all machines to which it can connect.


Options are :

  • Parallel
  • Indirect (Correct)
  • Direct
  • Broadcast

Answer : Indirect

You execute the command given below: find / -perm +7000 -ls What is the expected output from this command? (Choose all that apply.)
A. List (ls) all files and directories on the system with full permissions set.
B. List (ls) all files and directories on the system with all special permissions set.
C. List (ls) all files and directories on the system with any of the special permissions set.
D. Long-list (ls -l) all files and directories on the system with all the special permissions set.
E. Long-list (ls -l) all files and directories on the system with any of the special permissions set. 


Options are :

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

Answer : C,E

Match the positional parameter with its functionality.
1.$0 a. lists the number of arguments passed
2. $# b. name of the shell script
3. $@ c. lists the arguments passed


Options are :

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

Answer : 1-b, 2-a, 3-c.

As user smith you have executed the following command at station 1: [smith@station 1 ~]$ ssh root@server 1 /etc/init.d/send mail restart
Which statement is true about the execution of this command?


Options are :

  • The command is executed by the server 1 server without sending back the output to station 1.
  • The command is executed by server 1 after the correct password is entered by the user and the output is sent back to station 1. (Correct)
  • The command fails with an error command not found.
  • The command is executed by station 1 without logging in to server 1.

Answer : The command is executed by server 1 after the correct password is entered by the user and the output is sent back to station 1.

You receive a file that has the extension .tar and you are unable to open it. How would you find what type of file it is?


Options are :

  • By issuing -t switch with the tar command
  • By issuing the md5 command
  • By issuing the file command (Correct)
  • By issuing the strings command

Answer : By issuing the file command

You have set HIST CONTROL=ignore both. What are the implications of this setting on history?


Options are :

  • It saves both duplicates and commands prefixed with a space
  • It ignores duplicates but saves the commands prefixed with space.
  • It ignores commands prefixed with a space but saves duplicates
  • It ignores both the duplicate commands and commands prefixed with a space. (Correct)

Answer : It ignores both the duplicate commands and commands prefixed with a space.

As a root user, you have configured a file system using AutoFS with the default settings. You changed to one of the directories under AutoFS control at the tty1 terminal and started working at the tty2 terminal. What is the status of the file system mounted in the tty1 terminal after the idle time as mentioned in the /etc/auto.master file?


Options are :

  • The file system is unmounted the moment you start working at the tty2 terminal.
  • The file system gets unmounted automatically after left idle for 5 minutes irrespective of the AutoFS configuration file time settings.
  • The file system remains mounted until you logout from tty1 terminal. (Correct)
  • The file system remains mounted as long as the system is up and running.

Answer : The file system remains mounted until you logout from tty1 terminal.

Which two statements are true about lp? (Choose two.)
A. It submits files for printing.
B. It cannot alter a pending job.
C. By default it sets a priority of 100 to any print job.
D. It uses "localhost" or the value of the CUPS_SERVER environment variable as the default
hostname. 


Options are :

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

Answer : A,D

As a root user you want to modify the default shell prompt to include the host name as part of the prompt. Also you want the change in the host name to reflect on the prompt immediately. Which option would help you achieve this task?


Options are :

  • PS1='[`host name`]' (Correct)
  • PS2='[`host name`]'
  • PS2=''[`host name`]''
  • PS1=''[`host name`]''

Answer : PS1='[`host name`]'

You have logged in as a normal user bob and use write and wall to chat with other users. How are you able to chat with other user terminals?


Options are :

  • because the SGID bit is set on both the write and wall commands, and group ownership is set to tty (Correct)
  • because the SGID bit is set on both the write and wall commands, and the group ownership is set to root
  • because the SUID bit is set on both the write and wall commands, and the group ownership is set to root
  • because the SUID bit is set on both the write and wall commands, and the group ownership is set to tty

Answer : because the SGID bit is set on both the write and wall commands, and group ownership is set to tty

The root user tries to create the hard link link1 to /root/text file in /boot and receives the error: [root@server 1 ~]# ln text file /boot/link 1
ln: creating hard link `/boot/link' to `text file': Invalid cross-device link Which two statements are true? (Choose two.)
A. Hard links cannot span file systems.
B. /boot file system does not exist or it is not mounted.
C. /boot can occupy files that are required at boot time only.
D. Hard links cannot be created to the nonexistent file /root/textfile.
E. Hard link is supposed to be another physical presence of a file on the same file system


Options are :

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

Answer : A,E

Comment / Suggestion Section
Point our Mistakes and Post Your Suggestions