Comptia Linux+ Prace test 1

Lakukan tugas rumah & ujian kamu dengan baik sekarang menggunakan Quizwiz!

Which option to grub-install will place the GRUB images into an alternate directory? - --boot-dir - -b - -boot - --boot-directory

- --boot-dir - -b - -boot - --boot-directory

Which option to mdadm watches a RAID array for anomalies? - --mon - --watch - --monitor - --examine

- --mon - --watch - --monitor - --examine

Which option to sysctl displays all values and their current settings? - -a - -b - -d - -c

- -a - -b - -d - -c

Which option to xfs_metadump displays a progress indicator? - -g - -p - -f - -v

- -g - -p - -f - -v

Which function of the hwclock command will set the hardware clock to the current system time? - -w - -s - -a - -m

- -w - -s - -a - -m

Information about logical volumes can be found in which of the following directories? - /dev/lvinfo - /dev/map - /dev/mapper - /dev/lvmap

- /dev/lvinfo - /dev/map - /dev/mapper - /dev/lvmap

Which file is used to store a list of encrypted devices that are to be mounted at boot? - /etc/cryptdev - /etc/crypttab - /etc/encrtab - /etc/fsencrypt

- /etc/cryptdev - /etc/crypttab - /etc/encrtab - /etc/fsencrypt

Within which partition will the EFI system partition typically be mounted? - /etc/efi - /efi - sys/efi - /boot/efi

- /etc/efi - /efi - sys/efi - /boot/efi

Which of the following directories contains configuration files related to networking? - /etc/netdevices/ - /etc/netcfg/ - /etc/config/network/ - /etc/sysconfig/network-scripts/

- /etc/netdevices/ - /etc/netcfg/ - /etc/config/network/ - /etc/sysconfig/network-scripts/

Which partition type is used to indicate a software RAID array, such as an array built with mdadm? - 0xmd - -x- - 0RD - 0xFD

- 0xmd - -x- - 0RD - 0xFD

Which of the following represents a correct configuration line for /etc/hosts? - 192.168.1.4 cwa.brainia.org.cwa - cwa/braingia.org cwa 192.168.14 - cwa.brainia.org 192.168.1.8 alias cwa - alias cwa.braingia.org cwa 192.168.1.4

- 192.168.1.4 cwa.brainia.org.cwa - cwa/braingia.org cwa 192.168.14 - cwa.brainia.org 192.168.1.8 alias cwa - alias cwa.braingia.org cwa 192.168.1.4

If you need to temporarily reconfigure all locale variables and settings for a given session, which environment variable can be used? - LC_LIST - LC_GLOBAL - LC_ALL ALL_LOCALE

- LC_LIST - LC_GLOBAL - LC_ALL ALL_LOCALE

Which environment variable controls the format of dates and times, such as a 12-hour or 24-hour formatted clock? - LOCALE_DATE - DATE_FORMAT - LC_TIME - LC_DATE

- LOCALE_DATE - DATE_FORMAT - LC_TIME - LC_DATE

During boot of a system with GRUB2, which key can be pressed to display the GRUB menu? - Shift - E - V - H

- Shift - E - V - H

The default format for an OVF template uses which document standard? - YML - XML - OVFMeta - HTML

- YML - XML - OVFMeta - HTML

Which of the following characters are valid for hostnames in /etc/hosts? - alphanumerics, minus, underscore, and dot - alphanumerics, minus and dot - alphanumberics and dot - alphanumerics

- alphanumerics, minus, underscore, and dot - alphanumerics, minus and dot - alphanumberics and dot - alphanumerics

Which of the following commands, executed from within the UEFI shell, controls the boot configuration? - bootcfg - bcfg - grub-install - grcfg

- bootcfg - bcfg - grub-install - grcfg

When using nslookup interactively, which of the following commands changes the destination to which queries will be sent? - dest - server - queryhost - destination

- dest - server - queryhost - destination

Which of the following dig commands sends the query for example.com directly to the server at 192.168.2.5 rather than to a locally configured resolver? - dig example.com @192.168.2.5 - dig -t 192.168.2.5 example.com - dig -s 192.168.2.5 example.com - dig server=192.168.2.5 example.com

- dig example.com @192.168.2.5 - dig -t 192.168.2.5 example.com - dig -s 192.168.2.5 example.com - dig server=192.168.2.5 example.com

Which of the following commands requests a zone transfer of example.org from the server at 192.168.1.4? - dig example.org @192.168.1.4 axfr - dig example.org @192.168.1.4 - dig example.org @192.168.1.4 xfer - dig example.org #192.168.1.4 xfer

- dig example.org @192.168.1.4 axfr - dig example.org @192.168.1.4 - dig example.org @192.168.1.4 xfer - dig example.org #192.168.1.4 xfer

The system is running out of disk space within the home directory partition, and quotas have not been enabled. Which command can you use to determine the directories that might contain large files? - du - df - ls - locate

- du - df - ls - locate

Which of the following configuration lines in /etc/nsswitch.conf causes a lookup for group information to first use local files and then use LDAP? - group: files ldap - lookup: group [local ldap] - group: [local ldap] - group:localfiles ldap

- group: files ldap - lookup: group [local ldap] - group: [local ldap] - group:localfiles ldap

Which command should be run after making a change to the /etc/default/grub file? - grub -grub-mkconfig - grub-inst - reboot

- grub -grub-mkconfig - grub-inst - reboot

Which of the following commands installs GRUB into the MBR of the second SATA disk? - grub2-install /dev/hdb2 - grub2-install /dev/sda2 - grub2-config /dev/sda - grub2-install /dev/sdb

- grub2-install /dev/hdb2 - grub2-install /dev/sda2 - grub2-config /dev/sda - grub2-install /dev/sdb

Which of the following commands will send the output of the grub2- mkconfig command to the correct location for booting? - grub2-mkconfig --output= /boot/grub2/grub/cfg - grub2-mkconfig -- file=/boot/grub2.menu - grub2-mkconfig --file=/boot/grub/lst - grub2- mkconfig --output= /boot/menu.lst

- grub2-mkconfig --output= /boot/grub2/grub/cfg - grub2-mkconfig -- file=/boot/grub2.menu - grub2-mkconfig --file=/boot/grub/lst - grub2- mkconfig --output= /boot/menu.lst

Which command within virsh obtains information about a domain? - info -dominfo - domainlist - infodom

- info -dominfo - domainlist - infodom

Which command can be used to obtain a list of currently loaded kernel modules? - insmod - modlist - ls --modules - lsmod

- insmod - modlist - ls --modules - lsmod

You are working with a network interface called ens3 and would like to determine which driver is being used for this device. Which command is valid for this purpose? - ip list ens3 - netstat ens3 - ethtool -i ens3 - ethlist ens3

- ip list ens3 - netstat ens3 - ethtool -i ens3 - ethlist ens3

Which of the following commands is used to change the keyboard layout settings? - keybrdctl - keyctl - localectl - localemap

- keybrdctl - keyctl - localectl - localemap

Which command can be used to view the kernel ring buffer in order to troubleshoot the boot process? - lsboot - bootleg - krblog - dmesg

- lsboot - bootleg - krblog - dmesg

Which of the following commands installs a kernel module, including dependencies - lsmod - modprobe - modinst - instmod

- lsmod - modprobe - modinst - instmod

Which command is used to search for physical volumes for use with LVM? - lvmcreate - pvcreate - lvmdiskscan - lvmscan

- lvmcreate - pvcreate - lvmdiskscan - lvmscan

Which of the following commands will create a btrfs filesystem on the first SATA drive? - mkfs /dev/sda1 - mkfs.btrfs /dev/sda - mkfs.btr2fs /dev/sda1 - mkfs -b /dev/sda

- mkfs /dev/sda1 - mkfs.btrfs /dev/sda - mkfs.btr2fs /dev/sda1 - mkfs -b /dev/sda

When working with a CentOS 6 system, which command is used to create the initial RAM disk? - mkinit - dracut - mkraminit - mkinitfs

- mkinit - dracut - mkraminit - mkinitfs

You are working with a legacy CentOS 5 system and need to re-create the initial RAM disk. Which of the following commands is used for this purpose? - mkinitrd - mkramdisk - mkdisk --init - mkfs.init

- mkinitrd - mkramdisk - mkdisk --init - mkfs.init

Which command is used to load a module and its dependencies automatically? - modprobe - lsmod - insmod -rmmod

- modprobe - lsmod - insmod -rmmod

Which of the following commands mounts /dev/sda1 in the /boot partition? - mount /dev/sda /boot - mount /boot /dev/sda1 - mount /dev/sda1 /boot - mount -dev sda1 /boot

- mount /dev/sda /boot - mount /boot /dev/sda1 - mount /dev/sda1 /boot - mount -dev sda1 /boot

Which of the following commands shows network services or sockets that are currently listening along with sockets that are not listening? - netstat -a - netlink -a - sockets -f - opensock -l

- netstat -a - netlink -a - sockets -f - opensock -l

Which command is used to create a logical volume with LVM? - pvcreate - lvmcreate - lvcreate - volcreate

- pvcreate - lvmcreate - lvcreate - volcreate

Which of the following commands displays information about a given physical volume in an LVM setup? - pvdisp - pvlist - pvdisplay - pvl

- pvdisp - pvlist - pvdisplay - pvl

Which command can be used to change the partitioning scheme for a disk, such as to change the size of existing partitions without deleting them? - resize2fs - parted - mkfs - rfdisk

- resize2fs - parted - mkfs - rfdisk

Which of the following commands adds a route to the server for the network 192.168.51.0/24 through its gateway 192.168.51.1? - route add -net 192.168.51.0 netmask 255.255.255.0 gw 192.168.51.1 - route add -net 192.168.51/24 gw 192.168.1.51 - route -net 192.168.51.0/24 192.168.51.1 - toute add 192 192.168.51.1 -n 192.168.51.0//255.255.0

- route add -net 192.168.51.0 netmask 255.255.255.0 gw 192.168.51.1 - route add -net 192.168.51/24 gw 192.168.1.51 - route -net 192.168.51.0/24 192.168.51.1 - toute add 192 192.168.51.1 -n 192.168.51.0//255.255.0

Which of the following commands adds a default gateway of 192.168.1.1 for interface eth0? - route add default gateway 192.168.1.1 eth0 - etho --dg 192.168.1.1 - route add default gw 192.168.1.1 eth0 - route define eth0 192.168.1.1

- route add default gateway 192.168.1.1 eth0 - etho --dg 192.168.1.1 - route add default gw 192.168.1.1 eth0 - route define eth0 192.168.1.1

When viewing the available routes using the route command, one route contains flags UG while the others contain U. What does the letter G signify in the route table? - the G signifies that the route is good - the G signifies that the route is unavailable - the G signifies that this is a gateway - the G signifies that the route is an aggregate

- the G signifies that the route is good - the G signifies that the route is unavailable - the G signifies that this is a gateway - the G signifies that the route is an aggregate

Which command is used to remove unused filesystem blocks from thinly provisioned storage? - thintrim - thtrim - fstrim - fsclean

- thintrim - thtrim - fstrim - fsclean

Which command can be used to view the available time zones on a system? - tzd - /etc/locale - timedatectl - tzsel

- tzd - /etc/locale - timedatectl - tzsel

Which command will output a new GRUB2 configuration file and send the output to the correct location for booting? - update-grub> /boot/grub/grub.cfg - update-grub> /boot/grub.cfg - grub-rc.d - grub-boot

- update-grub> /boot/grub/grub.cfg - update-grub> /boot/grub.cfg - grub-rc.d - grub-boot

When using UEFI, which of the following files can be used as a bootloader? -shim.uefi - shim.efi - shim.fx - efi.shim

-shim.uefi - shim.efi - shim.fx - efi.shim

On a Debian system, within which directory hierarchy will you find configuration information and directories to hold scripts to be run when an interface is brought up or taken down? /etc/netconf - /etc/netconfig - /etc/net/conf.d - /etc/network

/etc/netconf - /etc/netconfig - /etc/net/conf.d - /etc/network

What is the logical order for creation of an LVM logical volume? physical volume creation, volume group creation, logical volume creation - physical volume creation, logical volume creation, volume group - logical volume creation, physical volume creation, volume group creation - LVM creation, format, partition

physical volume creation, volume group creation, logical volume creation - physical volume creation, logical volume creation, volume group - logical volume creation, physical volume creation, volume group creation - LVM creation, format, partition


Set pelajaran terkait

Immune Function Practice Test NUR212

View Set

Strategic Management Capstone Final Exam

View Set

State Capitals and Largest Cities

View Set

AP History AP World Trade, Migration, and the Environment Quiz

View Set

Prep U Ch.10; Fundamentals of Nursing

View Set