Oracle Linux 5 and 6 System Administration
Question No: 11
Bash is invoked as an interactive login shell.
What is the order in which the bash configuration files are read, assuming that all the files exist in their correct location and are readable?
/etc/profile, ~/ .profile
/etc/profile, ~/ .bash_profile
/etc/profile, ~/ .bash_profile, ~/ .bash_login, ~/ .profile
/etc/profile, ~/ .bash_profile, ~/ .profile, ~/ .bash_login
Explanation: When Bash is invoked as an interactive login shell, or as a non-interactive shell with the -login option, it first reads and executes commands from the file /etc/profile, if that file exists. After reading that file, it looks for ~/.bash_profile, ~/.bash_login, and
~/.profile, in that order, and reads and executes commands from the first one that exists and is readable. The -noprofile option may be used when the shell is started to inhibit this behavior.
When a login shell exits, Bash reads and executes commands from the file ~/.bash_logout, if it exists.
Question No: 12
Examine the partition table: Disk /dev/sdd: 107 MB
Sector size (logical/physical): 512B/512B Partition Table: msdos
Number StartEndSizeTypeFileSystemFlags 11049KB79.7MB78.6MBPrimary
Which program cannot be used to add another partition on this device?
Explanation: kpartx – Create device maps from partition tables
Not A: fdisk (in the first form of invocation) is a menu driven program for creation and manipulation of partition tables.
Not B: cfdisk is a disk partition manipulation program, which allows you to create, destroy, resize, move and copy partitions on a hard drive
not C: parted
GNU Parted – a partition manipulation program
Question No: 13
Which three statements are true configuration files and the behavior of module parameters specified in those files, in the /etc/modprobe.d directory?
The files may contain options to be passed to a module only when it is a dependency of a module being inserted.
The file may contain shell commands to be run instead of inserting a particular module in the kernel.
The files may contain options to be passed to a module, only when it is inserted using a modprobe command.
The files may contain alias names for modules.
The file may contain instructions to ignore certain modules.
The files may contain options to be passed to a module only when it is Inserted using an insmod command.
Explanation: modprobe.d – Configuration directory for modprobe
Because the modprobe command can add or remove more than one module, due to modules having dependencies, we need a method of specifying
what options are to be used with those modules (A). All files underneath the /etc/modprobe.d directory which end with the .conf extension specify those options as required. They can also be used to create convenient aliases (D): alternate names for a module, or they can override the normal modprobe behavior altogether for those with special requirements (such as inserting more than one module).
C: options modulename option…
This command allows you to add options to the module modulename (which might be an alias) every time it is inserted into the
kernel: whether directly (using modprobemodulename or because the module being inserted depends on this module.
Question No: 14
Examine these configuration files:
# cat /etc/auto.master
/- auto.direct ro
# cat /etc/auto.direct
/nfs2 -sync o16:/export/share2
Which mount options will automounter use to mount the filesystems listed in
All three filesystems are mounted read-only, async.
/nfs1 and /nfs3 are mounted read-only, async whereas /nfs2 mounted read-write, sync.
/nfs1 and /nfs3 are mounted read-only, async whereas /nfs2 mounted read-only, sync.
All three filesystems are mounted read-write, sync.
Question No: 15
Which three statements are true concerning the use of the grub menu in Oracle Linux?
All changes made using the grub editor at boot time are saved by default to
Additional parameters may be passed to the selected kernel.
The initrd directive may not be changed.
Existing kernel parameters may be changed.
Some of the GRUB command-line functions may be password protected.
Explanation: A: GRUB requires only the file name and drive partitions to load a kernel. You can configure this information by editing the /boot/grub/grub.conf file, by using the GRUB menu, or by entering it on the command line.
not C: If you have set a GRUB password, you must press P and enter the valid password to be able to edit the titles or change kernel boot parameters. To edit any of the root, kernel, or initrd directives, press E. To edit the kernel directive only, press A. To use the GRUB command line, press C.
If you press E, select the root, kernel, or initrd directive, and press E to edit it. Not E: Grub can be password protected, but not individual functions.
Question No: 16
Which three statements are true about rpm package dependencies?
The RPM command can detect only direct package dependencies.
The RPM command can detect both direct and indirect package dependencies.
The YUM command can detect and resolve direct and indirect package dependencies.
The YUM command can detect and resolve indirect package dependencies only within the same repository.
The YUM command can only detect and resolve direct package dependencies.
A source RPM can have a dependency on a binary RPM.
Explanation: D: yum deplist lt;packagegt;
Produces a list of all dependencies and what packages provide those dependencies for the given packages.
Question No: 17
Examine some of the contents of the /boot/grub/grub.com file from an Oracle Linux system:
Splashimage=(hd0, 0)/grub/splash.xpm.gz Hiddenmenu
Title Oracle Linux Server (2.6.39-220.127.116.11uek.x86_64) Root (hd0, 0)
Kernet /vmlinuz-2.6.39-100.0.12.e16uek.x86_64 ro root=UUIP=a4b6049b-9aa1-44b4-87cf- aebb17alcdf9 rd_NO_LUKS re_NO_LVM rd_NO_DM LANG=en_US.UTF-8
SYSFONT=1atarcycreheb-sun16 KEYBOARDTYPE=PC KEYTABLE=us rhgb quiet numa=off
Initrd /initramfs-2.6.39-100.0.12.e16uek.x86_64.img Title Oracle Linux Server (2.6.32-131.0.15.e16.x86_64) Root (hd0, 0)
Kernel /vmlinuz-2.6.32-131.0.15.e16.x86_64 ro root=UUIS=a4b6049b-9aa1-44b4-87cf- aebb17a1cdf9 rd_NO_LUKS rd_NO_LVM rd_NO_LVM re_NO_MD rd_NO_DM
LANG=en_UD.UTF-8 SYSFONT=latarcyheb-sun16 KEYBOARDTYPE=PC KEYTABLE=us
Crashkernel=auto rhgp quiet numa = off
Which three statements are true about the behavior and configuration of GRUB on this system?
(hd0, 0) represents the first partition on device /dev/hd0.
The hiddenmenu directive hides the GRUB menu only for 5 seconds after which it becomes visible again.
The root directive specifies an initial root filesystem, allowing access to block device modules to mount the real root filesystem on disk.
(hd0, 0) represents the first partition on the first drive detected by the BIOS.
The initrd directive specifies the initamfs, an initial root filesystem in RAM, allowing access to block device modules to mount the real root filesystem.
Each kernel must have an initramfs that matches the version of the kernel.
Because there is an Unbreakable Enterprise Kernel installed, it must be the default kernel listed as shown by the default=0 directive.
Question No: 18
Examine the commands used by root to create the chrooted environments in the /jail directory:
# mkdir /jail/bin/jail/lib64
# cp /bin/bash/jail/bin
linux-vdso.so.1 =gt; (0x00007fff68dff000)
libtinfo.so.5 =gt; /lib64/libtinfo.so.5 (0x00000033e00000) lid1.so.2 =gt; /lib64/libc.so.6 (0x00000033e1600000)
# cp /lib64/libtinfo.so.5/jail/lib64
# cp /lib64/libd1.so.6 /jail/lib64
# cp /lib64/libc.so.6 /jail/lib64
# cp /lib64/id-linux-x86-64.so.2 /jail/lib64 The user root then issues this command:
# chroot /jail
What is the output from the cd, pwd, and 1s commands?
bash-4.1# cd bash-4.1# pwd
bash” 1s: command not found
bash: cd: /root: No such file or directory bash-4.1# pwd
bash-4.1 # 1s
bash: 1s: command not found
bash: cd: command not found bash: pwd: command not found bash-4.1# 1s
bash: 1s; # cd
bash: cd: /root: unable to access chrooted file or directory /root bash-4.1# pwd
bash-4.1 # 1s bin lib64
bash: cd: /root: No such file or directory bash-4.1# pwd
bash-4.1# 1s bin lib64
Question No: 19
Which type of nameserver is provided by the default bind configuration files on Oracle Linux?
A primary name server
A secondary name server
Recursive caching-only nameserver
An authoritative name server
Slave name server
Question No: 20
Which two statements are true concerning a GUID Partition Table (GPT)?
It supports named disk partitions.
It supports primary and extended partitions.
It supports disks greater than two terabytes.
It cannot be used on the system disk.
It supports only up to 16 partitions.
Answer: A,C Explanation:
not B, not E: On GUID Partition Table (GPT) hard disks, you can configure up to 128 partitions and there is no concept of extended or logical partitions.
Not D: You cannot boot from a GPT disk.
|Lowest Price Guarantee||Yes||No||No|
|Free VCE Simulator||Yes||No||No|