Introduction to Linux - Chapter 15 - 27

Pataasin ang iyong marka sa homework at exams ngayon gamit ang Quizwiz!

For GRUB Legacy, which of the following is used to specify the second partition of the second hard drive? (hd2,2) (hd1,2) (hd2,1) (hd1,1)

(hd1,1)

To have the quotacheck create or update all quota databases, use the ___ option. -a -u -g -o

-a

Which mke2fs option defines the block size of the filesystem? -block -blk -b -bk

-b

Which option to the dumpe2fs command will have the command display only version information and bad block information? -b -B -V -v

-b

Which option to the e2fsck command allows you to specify an alternative superblock? -b -a -d -c

-b

What option to the fdisk command is used for MS-DOS compatibility mode? -c -m -d -ms-dos

-c

Which option to the du command will allow you to specify a subdirectory to not include in the results? -x -exclude -e -noinclude

-exclude

Which option to the fsck command forces a system check? -F -f -FF -ff

-f

To create both user and group quota databases with the quotacheck command, use the ___ and ___ options. (choose two) -a -g -u -i

-g -u

Which option to the df command displays the size of a filesystem in "human readable" format? -g No option will provide this feature -h -human

-h

Which option to the df command shows "human readable" sizes? -i -d -h -s

-h

Which option to the dumpe2fs command will have the command display only superblock information? -h -g -s -d

-h

Which option to the df command displays the number of inodes in a filesystem? -i -I -ino -nodes

-i

Which option to the df command shows how many inodes are free in a filesystem? -f -free -inode -i

-i

Which options to the tune2fs command will change how often a full filesystem check is performed? (choose two) -i -w -c -g

-i -c

Which option to the tune2fs command will allow you to create a journal for an ext2 filesystem? -j -i -I -J

-j

What option to the fdisk command is used to display current partitions? -f -p -a -l

-l

Which option to the tune2fs command will display filesystem information? -S -L -s -l

-l

Which mke2fs option defines the percentage of the filesystem that is reserved for system use? -r -m -s -g

-m

Which option to the tune2fs command will change the space reserved for system use? -M -m -R -r

-m

To use an encrypted password in the GRUB Legacy configuration file, use the _____ option to the password directive. -crypt -md5 -encrypt -secure

-md5

Which option to the fsck command will answer "no" to all queries? -y -N -n -Y

-n

Which option of the lspci command would you use to troubleshoot a network interface card? -nn -r -t -a

-nn

Which option to the tune2fs command will change default mount options? -o -O -m -M

-o

The ____ option can be used with the edquota command to copy the quota limits from one user account to another. -u -d -p -c

-p

Which option to the quotaon command displays which filesystems have quotas turned on for? -fs -f -p -w

-p

What are the correct options for the rpm command to display a list of all installed packages? -a -qall -b -qa

-qa

What option to the who command will display the current runlevel? -t -r -a -s

-r

Which option to the du command shows a summary of the space used in a directory structure? -all -h -s -x

-s

What option to the mkfs command allows you to specify the type of filesystem to create? -fs -t -fstype -f

-t

Which option to the edquota command allows you to modify grace periods? -p -t -w -u

-t

Which option to the fsck command will allow you to specify the filesystem type? -F -t -T -f

-t

What option to the fdisk command is used to utilize sector unit sizes? -s -t -usize -u

-u

Which option to the fsck command will answer "yes" to all queries? -y -Y -n -N

-y

Which directory is the root file system mounted on? /rootfs /root / /home

/

The primary configuration file for GRUB 2 on an Ubuntu system is _____. /boot/grub2/grub.cfg /boot/grub/grub2.cfg /boot/grub/grub.cfg /boot/grub2.cfg

/boot/grub/grub.cfg

What is the real location of the GRUB Legacy configuration file? /var/local/grub.conf /boot/grub.conf /etc/grub/grub.conf /boot/grub/grub.conf

/boot/grub/grub.conf

The primary configuration file for the GRUB 2 on a Fedora system is _____. /boot/grub/grub2.cfg /boot/grub2.cfg /boot/grub/grub.cfg /boot/grub2/grub.cfg

/boot/grub2/grub.cfg

In which file are repositories stored for Debian package management? /etc/apt/source.repo /etc/apt/repo.list /etc/apt/sources.list /etc/repo.list

/etc/apt/sources.list

Instead of modifying the primary configuration file for GRUB2, you should edit the _____ file. /etc/grub /etc/grub-default /etc/default/grub /etc/grub-config-all

/etc/default/grub

In which file are mount options placed to support disk quotas? /etc/mount /etc/ftab /etc/mtab /etc/fstab

/etc/fstab

The fsck utility uses which file to determine a filesystem type? /etc/fsck /etc/system /etc/fstab /etc/fsck.config

/etc/fstab

Which file provides persistent mapping of block devices to mount points? /etc/blk.map /etc/blk.id /etc/fstable /etc/fstab

/etc/fstab

Which of the following can be used to restart the HTTP service? (choose two) /etc/init.d/httpd restart service httpd restart service httpd re start service https restart

/etc/init.d/httpd restart service httpd restart

For traditional init, the _____ file is where the initial default runlevel is defined. /etc/initdefault /etc/init /etc/inittab /etc/sysinit

/etc/inittab

What is the full path to the LILO configuration file? /etc/lilo.conf /boot/lilo.conf /etc/lilo /var/lilo

/etc/lilo.conf

Where are the scripts used to manage the init process located? /etc/rc.init /rc.d/init.d /etc/rc.d/init.d /etc/init/rc.d

/etc/rc.d/init.d

What is the primary configuration file for yum? /etc/yum.conf /etc/yum.d/yum.conf /etc/yum/main.conf /etc/yum/yum.conf

/etc/yum.conf

In what directory are yum repository configuration files stored? /usr/share/yum /etc/yum /etc/yum.repos.d /var/lib/yum

/etc/yum.repos.d

If the _____ file exists, then filesystem checks are forced during the boot process. /fsck /forcefsck /autofsck /forcechk

/forcefsck

In what directory are you most likely to find user's home directories? /usr/third /home /var/lib /usr/local

/home

Which directory does not have to be a part of the root filesystem? /home /etc /lib /bin

/home

Which two directories are automatically searched for shared libraries? (choose two) /lib /usr/lib /usr/library /library

/lib /usr/lib

In which directory are you most likely to find software from third-party publishers? /opt /var/lib /usr/local /usr/third

/opt

Which directory structure contains the bulk of the operating system's files: /rootfs /usr /root /home

/usr

Which directory structure has directories which may have heavy activity for services like mail, ftp, httpd and printing? /root /home /var /rootfs

/var

Which directory is used primarily for storing log messages? /var/logging /var/tmp /var/log /var/spool

/var/log

Which file is overwritten at the end of each boot process with the messages that were generated while booting? /var/log/dmsg /var/log/dmesg /var/tmp/dmesg /var/msg/dmesg

/var/log/dmesg

Which directories are typically writable to all users? (choose two) /home /var/tmp / /tmp

/var/tmp /tmp

Which runlevel number defines halting the system? 0 3 2 6 4 5 1

0

By default, the df command displays filesystem use in: 1-K block size 1-M block size 1-G block size 1-T block size

1-K block size

What is the maximum memory that a 64 bit processor can theoretically use? 16 EiB 8 GiB 2 GiB 4 GiB

16 EiB

Which is the default runlevel for Debian based Linux systems? 3 5 4 2

2

Which runlevel number defines multi-user with no networking services? 2 0 5 1 6 4 3

2

Which runlevel number defines multi-user with networking services and no GUI? 4 3 6 2 1 0 5

3

Which runlevel number is defined as "user-definable"? 3 6 0 2 5 1 4

4

Which runlevel number defines multi-user with GUI? 1 6 4 0 2 3 5

5

Which runlevel number defines rebooting the system? 1 2 3 6 4 0 5

6

Which of the following are true about hard limits? (choose two) The grace period starts once the hard limit is reached Hard limits can only be applied to blocks, not the number of inodes A user cannot exceed a hard limit An error will appear on the screen if a user reaches the hard limit

A user cannot exceed a hard limit An error will appear on the screen if a user reaches the hard limit

Which of the following are true about soft limits? (choose two) A user cannot exceed a soft limit Soft limits can only be applied to blocks, not the number of inodes A warning will appear on the screen if a user reaches the soft limit The grace period starts once the soft limit is reached

A warning will appear on the screen if a user reaches the soft limit The grace period starts once the soft limit is reached

Which of the following is not a function of the dmesg command? Check how the kernel has dealt with a new device Alter the level of messages that the kernel prints to the console Add a new network interface View the messages generated by the kernel during boot time

Add a new network interface

A mount point is: An empty directory that is used to access a filesystem A partition A way to specify mount options A device name used for mounting

An empty directory that is used to access a filesystem

How can you use quotas to limit the number of files a user can create? By setting an inode limit By setting a stat limit By setting an object limit By setting a node limit

By setting an inode limit

Which of the following is not a characteristic of firmware? Change settings to affect the use of external devices Change runlevels Tests the components upon startup Typically stored in ROM

Change runlevels

Which of the following is not an advantage of GRUB 2 over GRUB Legacy? Command-line interface Ability to work with architectures that don't have a PC BIOS Non-ASCII character support Ability to boot from partitions inside of Logical Volume Management (LVM) or RAID devices Dynamically loaded modules

Command-line interface

On a Ubuntu system, what variable defines the default runlevel in the /etc/init/rc-sysinit.conf file? RUNLEVEL DEFAULT DEFAULT_RUNLEVEL RUN

DEFAULT_RUNLEVEL

The number of inodes in a filesystem is: Always the same for every filesystem Something that can be changed at a later date Determined by the filesystem type Determined when the filesystem is created

Determined when the filesystem is created

To use "plug and play", which components must support hotplugging that device? Device Driver, Interface, Operating System Device, Interface, Operating System, RAM Device Driver, Interface, ROM Device Driver, USB, Operating System

Device Driver, Interface, Operating System

A system that contains Linux as well as a Microsoft Windows operating system is called a: This sort of system cannot exist Dual boot system A file base system Multi environment system

Dual boot system

The first step to creating a disk quota is: Edit the /etc/fstab file Use the quotaon command Reboot the system Use the edquota command

Edit the /etc/fstab file

Interrupts cannot be shared between devices. True or False?

False

The same set of services are started or stopped at different runlevels. True or False?

False

Which of the following are valid Linux bootloaders?(choose two) GRUB BIOS LILO UEFI

GRUB LILO

What version of GRUB is the most modern version? GRUB 3 GRUB Original GRUB 2 GRUB Legacy

GRUB 2

The GRUB2 setting that sets the default operating system to boot is called _____. GRUB_BOOT_DEFAULT GRUB_DEFAULT GRUB_TIMEOUT GRUB_DISTRIBUTOR

GRUB_DEFAULT

What is the notification mechanism used to inform programs about a change in state of hardware devices? DBUS sends notifications to HALD HALD uses dbus to send notifications Programs query HALD directly DBUS forwards queries from programs to HALD

HALD uses dbus to send notifications

HALD is the abbreviation for: Hardware Abstraction Layer Driver Hardware Abstraction Layer Daemon Hardware Availability Layer Daemon Hardware Attribute Layer Daemon

Hardware Abstraction Layer Daemon

With disk quotas you can limit: (choose two) How many files a user can use in a filesystem What permissions can be placed on files in a filesystem What type of files a user can have in a filesystem How much space a user can use in a filesystem

How many files a user can use in a filesystem How much space a user can use in a filesystem

A device name of /dev/hda1 indicates this partition is on which type of device? IDE CDROM Logical Volume SATA

IDE

Which of the following resources are used by devices to communicate with the system? IO Channels, IO Memory, Interrupts and DMA Ports IO Ports, RAM, Interrupts and DMA Channels IO Ports, IO Memory, Interrupts, and DMA Channels IO Ports, IO Memory, Signals and DMA Channels

IO Ports, IO Memory, Interrupts, and DMA Channels

What is the main advantage in using yum over rpm? It can automatically resolve dependency issues between packages It is able to use multiple repositories It is able to install packages from internet addresses It will allow you to override dependencies

It can automatically resolve dependency issues between packages

Which of the following is true about the fsck command? It should only be executed on unmounted filesystems It should only be executed on mounted filesystems It can only be used to fix ext2 filesystems It can only be used to fix ext3 filesystems

It should only be executed on unmounted filesystems

Which environment variable can a user set, that will affect where shared libraries can be located and loaded? LD_LIBRARY_PATH LIBRARY_PATH LD_PATH LIBRARY_LD_PATH

LD_LIBRARY_PATH

The rpm2cpio command can be used to: (choose two) List the content of a ".rpm" file Create a new ".rpm" file Build a binary ".rpm" file from a source ".src.rpm" file Extract files from a ".rpm" file

List the content of a ".rpm" file Extract files from a ".rpm" file

Which of the following is not a function of the udev subsystem? Create device node when a new device is connected Maintain psuedo filesystem in the /dev directory Remove device node when a device is removed Maintain log files

Maintain log files

Inodes are used to store a file's: Name Contents Location Metadata

Metadata

How is the kernel package special for package management? New versions should be installed instead of upgraded It cannot be uninstalled It contains the core of the operating system New versions should be upgraded instead of installed

New versions should be installed instead of upgraded

Which of the following are benefits of a shared library: (choose two) Programs run slower Programs can be smaller Programs run faster Programs use a more consistent base of code

Programs can be smaller Programs use a more consistent base of code

When added to the /etc/fstab file, the userquota option will: Allow for both user and group quotas in the filesystem Result in an error message, since userquota is an invalid option Allow for user quotas in filesystem Allow for group quotas in the filesystem

Result in an error message, since userquota is an invalid option

A device name of /dev/sda1 indicates this partition is on which type of device? IDE SATA CDROM Logical Volume

SATA

The firmware bootloader for Sparc systems is called _____. BIOS LILO SILO BOOT

SILO

The _____ is a kernel module used by the kernel to manage hardware devices. Driver Configuration file Subsystem Interface

Subsystem

Virtual memory is also referred to as: Swap memory Test memory Soft memory Hard memory

Swap memory

Which of the following are considered replacements for the traditional init process? (choose two) Sysinit Upstart Starter Systemd

Sysinit Systemd

Instead of using traditional runlevels, Systemd uses: Targets Variables States Functions

Targets

Which of the following filesystems are good choices to implement disk quotas: (choose two) The /tmp filesystem The /home filesystem The /bin filesystem The /usr filesystem

The /tmp filesystem The /home filesystem

The second stage of the boot process is: The firmware (BIOS/UEFI) stage The kernel phase The init phase The Bootloader (LILO/GRUB) stage

The Bootloader (LILO/GRUB) stage

If you use the -f option when performing an rpm query: The command will display the full filename of the original package. The command output will wrap at half screen width. The command will show the package that owns a file. The command will output a list of the files in the packages.

The command will show the package that owns a file.

Which two arguments may the mount command require, in order to mount a filesystem? (choose two) The filesystem size The device pathname A directory pathname The filesystem type

The device pathname A directory pathname

The first field in the /etc/fstab file is used to specify: The fsck order The dump level The mount options The filesystem type The device to mount The mount point

The device to mount

The fifth field in the /etc/fstab file is used to specify: The fsck order The mount options The device to mount The filesystem type The mount point The dump level

The dump level

Which of the following will find and load shared libraries when a program is executed? The kernel The dynamic linker The scheduler The init process

The dynamic linker

The third field in the /etc/fstab file is used to specify: The fsck order The dump level The mount options The filesystem type The mount point The device to mount

The filesystem type

The first stage of the boot process is: The kernel phase The firmware (BIOS/UEFI) stage The init phase The Bootloader (LILO/GRUB) stage

The firmware (BIOS/UEFI) stage

The sixth field in the /etc/fstab file is used to specify: The mount options The dump level The device to mount The filesystem type The mount point The fsck order

The fsck order

The fourth stage of the boot process is: The Bootloader (LILO/GRUB) stage The kernel The firmware (BIOS/UEFI) stage The init phase

The init phase

The third stage of the boot process is: The Bootloader (LILO/GRUB) stage The init phase The firmware (BIOS/UEFI) stage The kernel phase

The kernel phase

The fourth field in the /etc/fstab file is used to specify: The dump level The mount options The mount point The filesystem type The fsck order The device to mount

The mount options

The second field in the /etc/fstab file is used to specify: The file system type The device to mount The mount point The dump level The mount options The fsck order

The mount point

What determines how many files can be stored in a filesystem? The number of data blocks The number of inodes The Superblock size The number of bytes

The number of inodes

The bootloader (GRUB/LILO) loads which of the following components into memory?(choose two) The ramdisk The root filesystem The kernel The init process

The ramdisk The kernel

If a user has exceeded the block soft quota and the grace period has expired, what happens? Nothing, the user can still continue to use files as normal The question is invalid because users cannot exceed block soft quota limits The user will lose data, as files will be deleted automatically by the kernel. The soft limit becomes a hard limit until the user goes below the soft limit again

The soft limit becomes a hard limit until the user goes below the soft limit again

In GRUB Legacy, the password directive in the global setting means: The user must submit the specified password before appending, editing or using the GRUB command line. The user must submit the password before GRUB will attempt to boot the title. You can't place a password directive in the global setting.

The user must submit the specified password before appending, editing or using the GRUB command line.

Which of the following is not a reason why the umount command may fail? There is an executable file running that is located within the filesystem There is a file open that is located within the filesystem There are symbolic links to files within the filesystem A user has a directory within the filesystem as their current working directory

There are symbolic links to files within the filesystem

Which of the following is not true about kernel modules? They can be compiled into the kernel itself They are loaded automatically by the kernel They are software to support devices They are plug and play hardware devices

They are plug and play hardware devices

Which of the following is not a mass storage device? FireWire SATA drive USB Thunderbird

Thunderbird

In GRUB Legacy, the password directive in the title directive setting means: To boot a specific operating system, a password must be entered The password must be entered to display a menu of operating systems that are bootable You can't place a password directive in the title directive setting To edit any GRUB values, a password must first be entered

To boot a specific operating system, a password must be entered

Which of the following is not a common reason to create a partition? To support multiple operating systems on a single computer To increase the security of a filesystem To make it easier to keep home directories during a software upgrade To increase fragmentation of free space across the disk

To increase fragmentation of free space across the disk

A primary function of a Linux bootloader is: To load the init process To configure devices To configure memory To load the kernel

To load the kernel

All RPM package management commands must be run as the root user. True or False?

True

Coldplug devices are devices that are connected when the power is off. True or False?

True

Which bootloader includes the Secure Boot feature? BIOS UEFI LILO GRUB

UEFI

The firmware bootloader for PowerPC systems is called _____. SILO YABOOT BIOS LILO

YABOOT

What two differences are there between querying an installed RPM and an RPM package file with the rpm command? (choose two) To query the installed RPM, you have to add the -i option. You must use the full filename when querying the installed RPM. You must use the full filename when querying the package. To query the package file, you have to add the -p option.

You must use the full filename when querying the package. To query the package file, you have to add the -p option.

Which command will show the dependencies of a Debian package? apt-cache requires apt-get requires apt-get depends apt-cache depends

apt-cache depends

Which two commands will show detailed information about a Debian package? (choose two) apt-cache info dpkg -i apt-cache show dpkg -s

apt-cache show dpkg -s

What command will update a single Debian package named figlet? apt-get install figlet apt-get freshen figlet apt-get upgrade figlet apt-get update figlet

apt-get install figlet

Which command will remove all files that belong to a Debian package? apt-get erase apt-get remove apt-get uninstall apt-get purge

apt-get purge

How can you remove a package but not its configuration files with Debian package management? dpkg -e dpkg -p apt-get remove apt-get erase

apt-get remove

Which command will update the list of available packages for APT? apt-cache update apt-cache upgrade apt-get upgrade apt-get update

apt-get update

The quotacheck command creates databases with which names? (choose two) aquota.group aquota.user group.quota user.quota

aquota.group aquota.user

In GRUB Legacy, which directive is not typically used after a title directive?(choose one) boot initrd kernel root

boot

The program that first starts the boot process is called the _____. start bootloader exec boot

bootloader

Which of the following is not a Linux boot system? bootup systemd upstart init

bootup

Which command is used to view the services that are set to start or stop automatically? lsconfig chkconfig initconfig config

chkconfig

Which of the following is used to turn off the atd service at runlevels 2 and 4? chkconfig -off 24 atd chkconfig -level 24 atd disable chkconfig -level 24 atd off chkconfig -level 24 atd auto off

chkconfig -level 24 atd off

After running fdisk -cu /dev/sdb, what fdisk command will allow you to delete a partition? d g s r

d

Which directories exist in the /etc/rc.d directory? d. rc0.d, rc1.d, rc2.d, rc3.d, rc4.d, rc5.d and rc6.d c. rc0d, rc1d, rc2d, rc3d, rc4d and rc5d rc0.d, rc2.d, rc4.d, and rc6.d b. rc0, rc1, rc2, rc3, rc4, rc5 and rc6

d. rc0.d, rc1.d, rc2.d, rc3.d, rc4.d, rc5.d and rc6.d

Which is not a tool used for Debian package management? aptitude synaptic dpkg deb

deb

In GRUB Legacy, the _____ directive defines the default operating system to boot. system= boot= default= grub=

default=

The _____ command will display how much space a filesystem has free? init df free du

df

You can display current filesystem space usage with the _____ command. ls dw df du

df

How can you determine the Debian package that owns a file? dpkg -f dpkg -o dpkg -S dpkg -i

dpkg -S

Which command may be used to get a list of the installed Debian packages? dpkg -L apt-get list apt-get show dpkg -l

dpkg -l

The _____ command will display how much space a directory is using. du dir df init

du

Which command will allow you to determine where the backup superblock is for a filesystem? dumpe2fs superblk e2fsck fsck

dumpe2fs

Which of the following is used to define the start of the Apache web server for runlevels 2-4 in the /etc/init.d/apache2.conf file? start on runlevel [2-4] start on run_level [234] enable runlevel [234] start on runlevel [234]

enable runlevel [234]

Which of the following filesystems does not support journaling? ext2 ext3 jfs ext4

ext2

In GRUB Legacy, the _____ directive indicates an operating system to boot if the default operating system fails to boot. root redo timeout= fallback=

fallback=

Which command is used from the command line, to edit your disk's partition table? gedit parttool fdisk dedit

fdisk

Which command is used to view the summary of the RAM and swap space? du lsmem iostat free

free

Which of the following commands can be used to create an encrypted password that can be used with the password directive in GRUB Legacy: crypt-md5-grub crypt-grub grub-crypt grub-md5-crypt

grub-md5-crypt

The primary GRUB 2 configuration is overwritten when the _____ command is executed on Fedora systems. update-grub nano lilo grub2-mkconfig

grub2-mkconfig

Which of the following commands can be used to halt the system? (choose two) shutdown reboot halt poweroff

halt poweroff

In GRUB Legacy, the _____ directive prevents GRUB from displaying all but the default bootable title until the user presses a key. securemenu title titleonly hiddenmenu

hiddenmenu

Which of the following is not a daemon used for logging? ilogd klogd syslogd rsyslogd

ilogd

Which of the following contents is in the ldconfig configuration file by default? include ld.so.conf.d/*.conf include ldconfig include /etc/ldconfig include all

include ld.so.conf.d/*.conf

The first process that the kernel launches is called the _____ process. kernel startx sys init

init

Which of the following commands will shut down the system? init 5 init 1 init 7 init 0

init 0

Missing files don't have their original file names, instead they are named with their _____ number? device GID UID inode

inode

To specify a runlevel to boot at, add the run level to the end of the _____ directive line. kernel system title boot

kernel

Which command can an administrator run to rebuild the cache of shared libraries? ldd ldlist ld.so ldconfig

ldconfig

Which command is used to display the shared libraries of a dynamically linked executable? ldlist ldd ld.so ldconfig

ldd

Which of the following commands would display the libraries used by the /bin/ls command? ls -lib /bin/ls ldconfig /bin/ls listlib /bin/ls ldd /bin/ls

ldd /bin/ls

Which command needs to be executed after modifying the LILO configuration file? lilo redo reload modconfig

lilo

Which of the following commands will have the httpd service start at runlevel 5? ln -s /etc/init.d/httpd /etc/rc.d/rc5.d/S85httd cp /etc/init.d/httpd /etc/init.d/rc5.d ln -s /etc/init.d/httpd /etc/rc.d/rc5.d/K85httpd cp /etc/init.d/httpd /etc/rc.d

ln -s /etc/init.d/httpd /etc/rc.d/rc5.d/S85httd

In which directory are "missing" files placed by the fsck utility? missing tmp fsck lost+found

lost+found

Which of the following commands is used to view the summary of CPUs in the system? cpustat more /proc/cpuinfo ls -cpu lscpu

lscpu

If the command you used to unmount a partition fails, which commands can you use to check what is keeping the partition busy? (choose two) chkdsk lsof partchk fuser

lsof fuser

Which of the following commands is used to view the network interface controller connected on the PCI bus? lsmod lsusb lspci lsnet

lspci

Which of the following commands is used to view the details of an external drive connected to a USB port? lsusb -v lsusb-u lspci -u lsmod -u

lsusb -v

Which command is used to create a logical volume? lvcreate create lvadd createlv

lvcreate

If you want to create a Fourth Extended Filesystem on a partition, which commands could you use? (choose two) mkdosfs mke2fs mkfs mkextfs

mke2fs mkfs

If you want to initialize swap space that you've just created, which command would you run? swapon initswap mkswap swapinit

mkswap

The _____ command is used to load a module along with its dependencies. insmod modprobe ldmod lsmod

modprobe

What commands can display a list of mounted file systems? (choose two) mount lspt fdisk df

mount df

Which of the following will mount an ISO file named cdrom.iso? mount -t ufs cdrom.iso /mnt mount -o loopback cdrom.iso /mnt mount -o loop cdrom.iso /mnt mount -t cdrom cdrom.iso /mntb

mount -o loop cdrom.iso /mnt

Which mount option will remount a currently mounted filesystem? mount -o reset mount -o remount mount -o mount mount -o reload

mount -o remount

Which command will remount the /data filesystem using the option from the /etc/fstab file? mount -o remount /dev/sda1 /data mount -o remount /data mount -o mount /data

mount -o remount /data

After running fdisk -cu /dev/sdb, what fdisk command will allow you to create a new partition? c w n g

n

If a library is not accessible due to an error, the the ldd would report which error message? lib missing error: lib not configured library missing not found

not found

After running fdisk -cu /dev/sdb, what fdisk command will allow you to list the current partition table? s p w l

p

Which command is used to create a physical volume? pvadd create createpv pvcreate

pvcreate

After running fdisk -cu /dev/sdb, what fdisk command will allow you to quit without saving changes? h w g q

q

To view an individual's quota usage, an administrator can use: quotactl stat quota sedquota

quota

Which command is used to create or update the quota database files? quotactl quotadb dbquota quotacheck

quotacheck

If you want to enable or disable the enforcement of quotas, as administrator you can use _____ and _____. (choose two) quotaon quotauncheck quotacheck quotaoff

quotaon quotaoff

Which command produces a list of users of groups and their quota statistics? warnquota quotarpt repquota quota

repquota

If you you have a RPM package file named, figlet-1.1-0.3.i686.rpm, which rpm commands will install it? (choose two) rpm -F figlet-1.1-0.3.i686.rpm rpm -U figlet-1.1-0.3.i686.rpm rpm -e figlet-1.1-0.3.i686.rpm rpm -i figlet-1.1-0.3.i686.rpm

rpm -U figlet-1.1-0.3.i686.rpm rpm -i figlet-1.1-0.3.i686.rpm

How can you remove a package using an rpm command? rpm -r rpm -d rpm -e rpm -x

rpm -e

Which command shows the scripts that may be part of a RPM package? yum info yum scripts rpm -q -scripts rpm -qs

rpm -q -scripts

Which command will check the integrity of an RPM file? rpm -qcp rpm -qKp rpm -qCp rpm -qkp

rpm -qKp

Which command will show the dependencies of an RPM package? yum requires yum provides rpm -qpd rpm -qpR

rpm -qpR

Which command will display both the current runlevel and the previous runlevel? run level rl runlevel

runlevel

To be able to modify a user's quotas with a non-interactive command, you can use: quota edquota setquota sedquota

setquota

Which of the following commands will allow you to backup a partition table to a file and restore it at a later time? ddisk sfdisk pdisk edisk

sfdisk

Which of the following commands can be used to reboot the system? (choose two) shutdown -r shutdown halt reboot

shutdown -r reboot

To activate a swap space that has been initialized, you can execute: swapon swapctl swapoff swapcontrol

swapon

Which of the following commands is used as a traditional replacement for the init process? iostat ioctl systemctl sudo

systemctl

Which of the following commands will allow you to change the system to another runlevel, on a system with Systemd? (choose two) telinit systemctl chginit init

systemctl init

Which of the following commands is used to view the status of all services? systemctl -a systemctl -l systemctl -l systemctl -all

systemctl -all

After running fdisk -cu /dev/sdb, what fdisk command will allow you to change a partition type? g f t d

t

Which of the following commands will allow you to change the system runlevel, on a system with traditional init? (choose two) telinit systemctl init chginit

telinit init

In GRUB Legacy, the _____ directive indicates how long to wait before automatically booting the default operating system. timeout= fallback= kernel password=

timeout=

In GRUB Legacy, the _____ directive defines an operating system to boot. boot os title system

title

Which command will display the block size of a filesystem? showe2fs displaye2fs tune2fs printe2fs

tune2fs

Which of the following commands will display information about the Superblock? (choose two) tune2fs dumpe2fs superblk -a init 0

tune2fs dumpe2fs

If you want to unmount a partition, which command should you use? dismount unmount umount mount

umount

The primary GRUB 2 configuration is overwritten when the _____ command is executed on Ubuntu systems. redo update-grub grub2-mkconfig silo

update-grub

Which of the following are mount options used for disk quotes? (choose two) usrquota groupquota userquota grpquota

usrquota grpquota

Which command is used to create a volume group? create creategv vgadd vgcreate

vgcreate

Which of the following commands will allow you to add a physical volume to an existing volume group? vgextend vgcreate vgadd vgreduce

vgextend

By default, the edquota command will use which editor? gedit joe vi emacs

vi

After running fdisk -cu /dev/sdb, what fdisk command will allow you to save changes and quit? q w g f

w

How can you determine the RPM package that owns a file? yum info yum find yum owns yum provides

yum provides

Which command will download RPM files from repositories? yumupdate yumdownloader rpmupdate rpmdownloader

yumdownloader


Kaugnay na mga set ng pag-aaral

CH15: The Deduction for Qualified Business Income for Noncorporate Taxpayers

View Set

Chapter 6 - Audit Planning, Understanding the Client, Assessing Risks and Reporting

View Set

Metamorphic Rock and Resources, Metamorphic Study Guide

View Set

chapter 1: types of life policies

View Set

Aribex NOMAD Pro Dental X-Ray Apparatus Operator Course (1 hr) JKO

View Set

Chapter 30 Potter & Perry Nursing Skills Related to Vital Signs

View Set

TOPIC 1: Central Problem of Economics

View Set