Linux Final Review ch. 15-27
IDE
A device name of /dev/hda1 indicates this partition is on which type of device?
Dual boot system
A system that contains Linux as well as a Microsoft Windows operating system is called a:
t
After running fdisk -cu /dev/sdb, what fdisk command will allow you to change a partition type?
d
After running fdisk -cu /dev/sdb, what fdisk command will allow you to delete a partition?
q
After running fdisk -cu /dev/sdb, what fdisk command will allow you to quit without saving changes?
w
After running fdisk -cu /dev/sdb, what fdisk command will allow you to save changes and quit?
true
All RPM package management commands must be run as the root user. True or false?
vi
By default, the edquota command will use which editor?
True
Coldplug devices are devices that are connected when the power is off. True or false?
(hd1,1)
For GRUB Legacy, which of the following is used to specify the second partition of the second hard drive?
Hardware Abstraction Layer Daemon
HALD is the abbreviation for:
dpkg -S
How can you determine the Debian package that owns a file?
hiddenmenu
In GRUB Legacy, the _____ directive prevents GRUB from displaying all but the default bootable title until the user presses a key.
To boot a specific operating system, a password must be entered
In GRUB Legacy, the password directive in the title directive setting means:
/home
In what directory are you most likely to find user's home directories?
/etc/yum.repos.d
In what directory are yum repository configuration files stored?
lost+found
In which directory are "missing" files placed by the fsck utility?
inode
Missing files don't have their original file names, instead they are named with their _____ number?
GRUB_DEFAULT
The GRUB2 setting that sets the default operating system to boot is called _____.
-p
The ____ option can be used with the edquota command to copy the quota limits from one user account to another.
modprobe
The _____ command is used to load a module along with its dependencies.
du
The _____ command will display how much space a directory is using.
Subsystem
The _____ is a kernel module used by the kernel to manage hardware devices.
The kernel The ramdisk
The bootloader (GRUB/LILO) loads which of the following components into memory?
The firmware (BIOS/UEFI) stage
The first stage of the boot process is:
The init phase
The fourth stage of the boot process is
/etc/fstab
The fsck utility uses which file to determine a filesystem type?
Determined when the filesystem is created
The number of inodes in a filesystem is:
kernel
To specify a runlevel to boot at, add the run level to the end of the _____ directive line
--md5
To use an encrypted password in the GRUB Legacy configuration file, use the _____ option to the password directive.
-qa
What are the correct options for the rpm command to display a list of all installed packages?
df mount
What commands can display a list of mounted file systems?
/etc/lilo.conf
What is the full path to the LILO configuration file?
/etc/yum.conf
What is the primary configuration file for yum?
-t
What option to the mkfs command allows you to specify the type of filesystem to create?
GRUB 2
What version of GRUB is the most modern version?
Result in an error message, since userquota is an invalid option
When added to the /etc/fstab file, the userquota option will:
pvcreate
Which command is used to create a physical volume?
quotacheck
Which command is used to create or update the quota database files?
chkconfig
Which command is used to view the services that are set to start or stop automatically?
free
Which command is used to view the summary of the RAM and swap space?
dpkg -l
Which command may be used to get a list of the installed Debian packages?
rpm -q --scripts
Which command shows the scripts that may be part of a RPM package?
man mount
Which command will describe the mount options available for different filesystems?
blkid
Which command will display UUIDs?
yumdownloader
Which command will download RPM files from repositories?
apt-get purge
Which command will remove all files that belong to a Debian package?
apt-cache depends
Which command will show the dependencies of a Debian package?
apt-get update
Which command will update the list of available packages for APT?
d. rc0.d, rc1.d, rc2.d, rc3.d, rc4.d, rc5.d and rc6.d
Which directories exist in the /etc/rc.d directory?
/home
Which directory does not have to be a part of the root filesystem?
/
Which directory is the root file system mounted on?
shutdown -r reboot
Which of the following commands can be used to reboot the system?
lspci
Which of the following commands is used to view the network interface controller connected on the PCI bus?
lscpu
Which of the following commands is used to view the summary of CPUs in the system?
vgextend
Which of the following commands will allow you to add a physical volume to an existing volume group?
dumpe2fs tune2fs
Which of the following commands will display information about the Superblock?
ldd /bin/ls
Which of the following commands would display the libraries used by the /bin/ls command?
include ld.so.conf.d/*.conf
Which of the following contents is in the ldconfig configuration file by default?
ext2
Which of the following filesystems does not support journaling?
Change runlevels
Which of the following is not a characteristic of firmware?
ilogd
Which of the following is not a daemon used for logging?
Add a new network interface
Which of the following is not a function of the dmesg command?
There are symbolic links to files within the filesystem
Which of the following is not a reason why the umount command may fail?
-v
Which option to the fuser command displays verbose information about filesystem activity?
-o
Which option to the tune2fs command will change default mount options?
-m
Which option to the tune2fs command will change the space reserved for system use?
2
Which runlevel number defines multi-user with no networking services?
dpkg -s apt-cache show
Which two commands will show detailed information about a Debian package?
/lib /usr/lib
Which two directories are automatically searched for shared libraries?
df
You can display current filesystem space usage with the _____ command.
the device to mount
the first field in the /etc/fstab file is used to specify:
the number of inodes
what determines how many files can be stored in a filesystem?
16 EiB
what is the maximum memory that a 64 bit processor can theoretically use?
to query the package file, you have to add the p option you must use the full filename when querying
what two differences are there between querying an installed RPM and an RPM package file with the rpm command?
UEFI
which bootloader includes the Secure Boot feature?
ro
which mount option mounts a filesystem allowing read only?
mount -o remount
which mount option will remount a currently mounted filesystem?
4
which runlevel number is defined as "user-definable"
apt-get remove
How can you remove a package but not its configuration files with Debian package management
rpm -e
How can you remove a package using an rpm command?
By setting an inode limit
How can you use quotas to limit the number of files a user can create?
not found
If a library is not accessible due to an error, the the ldd would report which error message?
/forcefsck
If the _____ file exists, then filesystem checks are forced during the boot process.
The command will show the package that owns a file.
If you use the -f option when performing an rpm query:
mkfs mke2fs
If you want to create a Fourth Extended Filesystem on a partition, which commands could you use?
rpm -i figlet-1.1-0.3.i686.rpm rpm -U figlet-1.1-0.3.i686.rpm
If you you have a RPM package file named, figlet-1.1-0.3.i686.rpm, which rpm commands will install it?
title
In GRUB Legacy, the _____ directive defines an operating system to boot.
/etc/apt/sources.list
In which file are repositories stored for Debian package management?
Targets
Instead of using traditional runlevels, Systemd uses:
False
Interrupts cannot be shared between devices. True or false?
bootloader
The program that first starts the boot process is called the ____
List the content of a ".rpm" file Extract files from a ".rpm" file
The rpm2cpio command can be used to:
false
The same set of services are started or stopped at different runlevels. True or false?
The mount point
The second field in the /etc/fstab file is used to specify:
The Bootloader (LILO/GRUB) stage
The second stage of the boot process is:
The kernel phase
The third stage of the boot process is:
fdisk
Which command is used from the command line, to edit your disk's partition table?
/var/log
Which directory is used primarily for storing log messages?
/usr
Which directory structure contains the bulk of the operating system's files:
/var
Which directory structure has directories which may have heavy activity for services like mail, ftp, httpd and printing?
LD_LIBRARY_PATH
Which environment variable can a user set, that will affect where shared libraries can be located and loaded?
deb
Which is not a tool used for Debian package management?
2
Which is the default runlevel for Debian based Linux systems?
rw
Which mount option mounts a filesystem allowing both reading and writing?
suid
Which mount option mounts a filesystem allowing suid files?
Programs can be smaller Programs use a more consistent base of code
Which of the following are benefits of a shared library
It should only be executed on unmounted filesystems
Which of the following is true about the fsck command?
The dynamic linker
Which of the following will find and load shared libraries when a program is executed?
-nn
Which option of the lspci command would you use to troubleshoot a network interface card?
-i
Which option to the df command displays the number of inodes in a filesystem?
-h
Which option to the df command shows "human readable" sizes?
-i
Which option to the df command shows how many inodes are free in a filesystem?
-s
Which option to the du command shows a summary of the space used in a directory structure?
--exclude
Which option to the du command will allow you to specify a subdirectory to not include in the results?
-b
Which option to the dumpe2fs command will have the command display only version information and bad block information
-b
Which option to the e2fsck command allows you to specify an alternative superblock?
-t
Which option to the edquota command allows you to modify grace periods?
-f
Which option to the fsck command forces a system check?
-n
Which option to the fsck command will answer "no" to all queries?
-y
Which option to the fsck command will answer "yes" to all queries?
timeout=
in GRUB Legacy, the _____ directive indicates how long to wait before automatically booting the default operating system
/opt
in which directory are you most likely to find software from third-party publishers?
swapon
to activate a swap space that has been initialized, you can execute:
ln -s /tmp/test /tmp/data
which of the following commands will create a soft link to /tmp/ named tmp/data
IO ports, IO memory, interrupts and DMA channels
which resources are used by devices to communicate with the system?
2
which value represents the hard link count in the following output of the ls -li command 857589 -rw--rr-- root root 83 Mar 4 22:45 myhosts
87589
which value represents the inode number in the following output of the ls -li command 857589 -rw--rr-- root root 83 Mar 4 22:45 myhosts