Final Exam (Ch15-26)
-
The _____ command is used to load a module along with its dependencies.
modprobe
ldmod
insmod
lsmod
-
The _____ is a kernel module used by the kernel to manage hardware devices.
- Interface
- Configuration file
- Subsystem
- Driver
-
Which command is used to view the summary of the RAM and swap space?
iostat
free
lsmem
du
-
Which of the following commands is used to view the summary of CPUs in the system?
more /proc/cpuinfo
cpustat
lscpu
ls -cpu
-
The first process that the kernel launches is called the _____ process.
- sys
- init
- startx
- kernel
-
The first stage of the boot process is:
- The Bootloader (LILO/GRUB) stage
- The init phase
- The kernel phase
- The firmware (BIOS/UEFI) stage
-
The second stage of the boot process is:
- The kernel phase
- The init phase
- The Bootloader stage
- The firmware (BIOS/UEFI) stage
-
In GRUB Legacy, the _____ directive defines an operating system to boot.
os
system
boot
title
-
In GRUB Legacy, the _____ directive indicates how long to wait before automatically booting the default operating system.
kernel
timeout=
password=
fallback=
-
Instead of using traditional runlevels,
systemd
uses:- Variables
- States
- Functions
- Targets
-
The same set of services are started or stopped at different runlevels. True or False?
- True
- False
-
Which command will display both the current runlevel and the previous runlevel?
level
run
rl
runlevel
-
Which directories exist in the
/etc/rc.d
directory?rc0, rc1, rc2, rc3, rc4, rc5 and rc6
rc0.d, rc2.d, rc4.d, and rc6.d
rc0d, rc1d, rc2d, rc3d, rc4d and rc5d
rc0.d, rc1.d, rc2.d, rc3.d, rc4.d, rc5.d and rc6.d
-
Which of the following can be used to restart the HTTP service?
(choose two)
service https restart
service start httpd
/etc/init.d/httpd restart
service httpd restart
-
A device name of
/dev/hda1
indicates this partition is on which type of device?- IDE
- SATA
- CDROM
- Logical Volume
-
In what directory are you most likely to find user’s home directories?
- home
- /user/third
- /var/lib
- /usr/local
-
Virtual memory is also referred to as:
- Swap memory
- Soft memory
- Test memory
- Hard memory
-
Which directory structure contains the bulk of the operating system’s files:
- /root
- /usr
- /rootfs
- /home
-
After running
fdisk -cu /dev/sdb
, whatfdisk
command will allow you to change a partition type?- t
- d
- f
- g
-
After running
fdisk -cu /dev/sdb
, whatfdisk
command will allow you to create a new partition?- w
- n
- g
- c
-
To activate a swap space that has been initialized, you can execute:
swapctl
swapcontrol
swapoff
swapon
-
A mount point is:
- A partition
- An empty directory that is used to access a filesystem
- A device name that is used for mounting
- A way to specify mount options
-
The first field in the
/etc/fstab
file is used to specify:- The dump field
- The fsck order
- The mount options
- The device to mount
- The mount point
- The filesystem type
-
What commands can display a list of mounted file systems?
(choose two)
lspt
mount
df
fdisk
-
By default, the
df
command displays filesystem use in:1-M block size
1-K block size
1-T block size
1-G block size
-
Inodes are used to store a file’s:
- Metadata
- Name
- Location
- Contents
-
The _____ command will display how much space a directory is using.
init
df
dir
du
-
Which of the following commands will shut down the system?
init 2
init 7
init 1
init 0
init 5
-
Missing files don’t have their original file names, instead they are named with their _____ number?
- inode
- device
- UID
- GID
-
Which of the following is true about the
fsck
command?- It can only be used to fix ext3 filesystems
- It is designed to be executed on currently used filesystems
- It should only be executed on mounted filesystems
- It should only be executed on unmounted filesystems
- It can only be used to fix ext2 filesystems
-
All RPM package management commands must be run as the root user. True or False?
- True
- False
-
How can you remove a package using an
rpm
command?rpm -x
rpm -r
rpm -e
rpm -d
-
The
rpm2cpio
command can be used to:(choose two)
- Build a binary
.rpm
file from a source.src.rpm
file - List the content of a
.rpm
file - Create a new .rpm file
- Extract files from a
.rpm
file
- Build a binary
-
If a library is not accessible due to an error, the
ldd
would report which error message?error: lib not configured
not found
library missing
lib missing
-
Which of the following are benefits of a shared library:
(choose two)
- Programs run faster
- Programs use a more consistent base of code
- Programs can be smaller
- Programs run slower
-
Which of the following will find and load shared libraries when a program is executed?
- The kernel
- The dynamic linker
- The init process
- The scheduler
-
a hypervisor allows:
(choose two)
- system calls to be directly executed by physical hardware
- application software to run without an operating system
- an operating system to be installed on virtual hardware
- virtual resources to be accessed by operating systems and application software
-
Container technology allows system designers to bypass traditional operating systems. True or False?
- True
- False
-
Virtualization software comes in both paid and open source variants:
True or False?
- True
- False
-
Which of the following is not an advantage of GRUB 2 over GRUB Legacy?
- Non-ASCII character support
- Ability to work with architectures that don’t have a PC BIOS
- Ability to boot from partitions inside of Logical Volume Management (LVM) or RAID devices
- Dynamically loaded modules
- Command-line interface
-
Integrated peripherals are embedded into the _______ of a system:
- Motherboard
- Bootloader
- RAM
- CPU
-
Which of the following are considered replacements for the traditional
init
process? (choose two)- Starter
- Upstart
- Systemd
- Sysinit
-
The
systemd
equivalent of runlevels are called?- initstages
- bootlevels
- BIOS
- targets
-
What is the real location of the GRUB Legacy configuration file?
- /etc/grub/grub.conf
- /boot/grub/grub.conf
- /boot/grub.conf
- /var/local/grub.conf
-
Which command is useful for booting a corrupted disk drive?
grub-install
grub-mkconfig
update-grub
grub-set-default
-
Which of the following commands can be used to halt the system? (choose two)
halt
shutdown
reboot
poweroff
-
Which of the following commands is used as a traditional replacement for the
init
process?iostat
systemctl
sudo
ioctl
-
Which of the following commands is used to view the status of all services?
systemctl -l
systemctl --Z
systemctl --l
systemctl --all
-
Which runlevel number defines halting the system?
- 0
- 3
- 4
- 2
- 6
- 5
- 1
-
What directory contains information about symbolic links that enable services?
- /proc/acpi
- /etc/rc.d
- /usr/lib/systemd
- /etc/init.d/httpd
-
What option to the
mkfs
command allows you to specify the type of filesystem to create?- -f
- -fs
- -fstype
- -t
-
Which command is used to create a logical volume?
create
lvadd
lvcreate
createlv
-
Which command is used to create a physical volume?
createpv
create
pvadd
pvcreate
-
Which program will non-destructively resize a partition and its installed filesystem?
fdisk
parted
lvcreate
sgdisk
-
Which command will create disk labels on an ext3 filesystem?
label
elabel
ext3label
e2label
-
Which command will describe the mount options available for different filesystems?
mount --list
mount -a
mount --options
man mount
-
Which file provides persistent mapping of block devices to mount points?
- /etc/blk.id
- /etc/fstable
- /etc/blk.map
- /etc/fstab
-
You wish to see an output of the devices on your system that are block-based. Which of the following will list them out?
enum-disk
lsblk
ls -ld
block-id
-
What is the primary configuration file for
yum?
- /etc/yum/main.conf
- /etc/yum.d/yum.conf
- /etc/yum.conf
- /etc/yum/yum.conf
-
Which command will show the dependencies of an RPM package?
rpm -qpR
yum requires
yum provides
rpm -qpd
-
In which file are repositories stored for Debian package management?
- /etc/apt/source.repo
- /etc/repo.list
- /etc/apt/sources.list
- /etc/apt/repo.list
-
Which command may be used to get a list of the installed Debian packages?
apt-get list
apt-get show
dpkg -L
dpkg -l
-
Which command will remove all files that belong to a Debian package?
apt-get purge
apt-get uninstall
apt-get remove
apt-get erase
-
Which command will update the list of available packages for APT?
apt-get upgrade
apt-get update
apt-cache update
apt-cache upgrade
-
Which utility can automate changes needed for a base virtual machine image?
cloud-init
minions
lscpu
KVM
Subscribe
0 Comments
Newest