3. MANAGING YOUR SYSTEM

Réussis tes devoirs et examens dès maintenant avec Quizwiz!

You need to unload the abc module from the Linux kernel. This module does not have any dependencies. What is the best utility to use? A. insmod B. unload C. rmmod D. modprobe E. rm -f

C

hat folder does the udev program use to create a permanent link to a storage device based on its serial number? A. /dev/disk/by-path B. /dev/sdb C. /dev/disk/by-id D. /dev/disk/by-uuid E. /dev/mapper

C

What tools do you use to install packages from a Red Hat-based repository? (Choose two.) A. dpkg B. tar C. yum D. apt-get E. dnf

C E

Linux uses ___________ to add the filesystem on a new storage device to the virtual directory for users to access. A. Mount points B. Drive letters C. /dev files D. /proc folder E. /sys folder

A

The ___________ program is a handy tool for repairing corrupted filesystems. A. fsck B. mount C. umount D. fdisk E. mkfs

A

The modprobe utility uses the _____ file to determine any module dependencies. A. modules.dep B. /lib/modules C. /usr/lib/modules D. /etc/modprobe.d E. /lib/modprobe.d

A

User environment files typically come from where? A. /etc/skel B. /home/userid C. $HOME D. ~ E. /etc/

A

What application container format do Red Hat-based Linux distributions utilize for installing applications? A. flatpak B. rpm C. dpkg D. snap E. gcc

A

What is the most common compiler used for open source Linux applications? A. gcc B. make C. configure D. dpkg E. rpm

A

Which type of storage device uses integrated circuits to store data with no moving parts? A. SSD B. SATA C. SCSI D. HDD E. PATA

A

You need to create a low-level backup of all the data on the /dev/sdc drive and want to use the /dev/sde drive to store it on. Which dd command should you use? A. dd of=/dev/sde if=/dev/sdc B. dd of=/dev/sdc if=/dev/sde C. dd of=/dev/sde if=/dev/sdc count=5 D. dd if=/dev/sde of=/dev/sdc count=5 E. dd if=/dev/zero of=/dev/sdc

A

Which two programs should you use to download tarballs from an application's website? (Choose two.) A. wget B. cURL C. dpkg D. rpm E. yum

A B

Which of the following are fields in an /etc/shadow file record? (Choose all that apply.) A. Password expiration date B. Account expiration date C. Password D. Comment E. Default shell

A B C

Which of the following will allow you to change an account's /etc/shadow file record data? (Choose all that apply.) A. The passwd command B. The usermod command C. The userdel command D. The getent command E. The chage command

A B C E

Where can a module's configuration information be stored? (Choose all that apply.) A. The /etc/modules.conf file B. The /etc/modprobe.d/*.conf files C. The /etc/modules.d/*.conf files D. The /lib/modprobe.d/*.conf files E. The /usr/lib/modprobe.d/*.conf files

A B D E

Which of the following are fields within an /etc/passwd file record? (Choose all that apply.) A. User account's username B. Password C. Password change date D. Special flag E. UID

A B E

Which of the following commands displays information about the account issuing the command? (Choose all that apply.) A. whoami B. who am i C. cat $HOME/.bashrc D. cat $HOME/.profile E. id

A B E

Which of the following is true concerning the scp utility? (Choose all that apply.) A. Well suited for quickly transferring files between two systems on a network B. Is faster than the sftp utility C. An interactive utility useful for quickly transferring large files D. Can be interrupted during file transfers with no ill effects E. Uses OpenSSH for file transfers

A B E

Which of the following are options used in the /etc/fstab file to designate a filesystem as one that uses quotas? (Choose all that apply.) A. usrquota B. quotaon C. grpquota D. quotacheck E. aquota.user

A C

Which of the following is true concerning a kernel module? (Choose all that apply.) A. It is a self-contained driver library file. B. It is compiled into the Linux kernel. C. It allows the addition of functionality when required. D. It can be loaded when needed. E. It keeps the Linux kernel lighter and more agile.

A C D E

The last command, by default, pulls its data from what file? A. The /var/run/utmp file B. The /var/log/wtmp file C. The /var/log/wtmp.1 file D. The /etc/shadow file E. The /etc/passwd file

B

The system admin took an archive file and applied a compression utility to it. The resulting file extension is .gz. Which compression utility was used? A. The xz utility B. The gzip utility C. The bzip2 utility D. The zip utility E. The dd utility

B

What filename extension does the Rocky Linux distribution use for packages? A. .deb B. .rpm C. .tgz D. .tar E. .gz

B

What raw device file would Linux create for the second SCSI drive connected to the system? A. /dev/hdb B. /dev/sdb C. /dev/sdb1 D. /dev/hdb1 E. /dev/sda

B

What tar command-line options are commonly used together to extract and decompress files from a tarball file? A. -Uvh B. -zxvf C. -xvf D. -zcvf E. -cvf

B

What tool do you use to create a new filesystem on a partition? A. fdisk B. mkfs C. fsck D. gdisk E. parted

B

What tool do you use to manually add a filesystem to the virtual directory? A. fsck B. mount C. umount D. fdisk E. mkfs

B

Which of the following commands will allow you to switch temporarily from your account's default group to another group you are a member of? A. The usermod command B. The newgrp command C. The groups command D. The groupadd command E. The groupmod command

B

Which partitioning tool provides a graphical interface? A. gdisk B. gparted C. fdisk D. parted E. fsck

B

You have completed a full archive and sent it to a remote system using the sftp utility. You employ the md5sum program on both the local archive and its remote copy. The numbers don't match. What most likely is the cause of this? A. The local archive was corrupted when it was created. B. The archive was corrupted when it was transferred. C. You used incorrect commands within the sftp utility. D. The numbers only match if corruption occurred. E. You used incorrect utility switches on md5sum.

B

You need to remove the xyz module and all of its dependencies. Which is the best command to employ? A. dmesg B. modprobe -r C. lsmod D. paste E. groupdel

B

problem has occurred concerning group quotas on three filesystems. You need to quickly remove all filesystems' quota limits to temporarily resolve this issue. What is the best command to employ? A. vi /etc/fstab B. quotaoff -a C. quotacheck -cg D. quotacheck -cu E. umount

B

Which of the following files and directories may be involved in setting up the environment for all system users? (Choose all that apply.) A. /etc/bash_pro../../content/comptia/html/file/ B. /etc/profile C. /etc/profile.d/ D. /etc/bashrc E. /etc/bash.bashrc

B C D E

Where are module files stored? (Choose all that apply.) A. A /lib/modules/kernel/ subdirectory B. A /lib/modules/KernelVersion/ subdirectory C. A /usr/lib/modules/kernel/ subdirectory D. A /usr/lib/modules/KernelVersion/ subdirectory E. A /lib/kernel/modules subdirectory

B D

Which of the following commands could be used to view the members of the NCC-1701 group? (Choose all that apply.) A. groups NCC-1701 B. getent group NCC-1701 C. getent groups NCC-1701 D. grep NCC-1701 /etc/group E. grep NCC-1701 /etc/groups

B D

Which of the following commands will allow you to view the NUhura account's record data in the /etc/passwd file? (Choose all that apply.) A. getent NUhura passwd B. cat /etc/passwd C. passwd NUhura D. grep NUhura /etc/passwd E. getent passwd NUhura

B D E

You need to install the xyz module, including all its needed dependencies. Which of the following utilities should you use? A. insmod B. modinfo C. modprobe D. lsmod E. depmod

C

Sherri is trying to compile an application from source code. Before she can create the application executable file, what script should she run to create the make script? A. make B. make install C. configure D. gcc E. dpkg

C

Which of the following commands is the best one to add JKirk as a member to a new group called the NCC-1701 group and not remove any of the account's previous group memberships? A. usermod -g NCC-1701 JKirk B. usermod -G NCC-1701 JKirk C. usermod -aG NCC-1701 JKirk D. groupadd NCC-1701 E. groupmod NCC-1701 JKirk

C

You create an account using the appropriate utility, except for some reason the account's home directory was not created. Which of the following most likely caused this to occur? A. The HOME directive is set to no. B. You did not employ super user privileges. C. The CREATE_HOME directive is not set. D. The INACTIVE directive is set to -1. E. The EXPIRE date is set and it is before today.

C

You need to create a backup of a user directory tree. You want to ensure that all the file metadata is retained. Employing super user privileges, which of the following should you use with the rsync utility? A. The -r option B. The -z option C. The -a option D. The -e option E. The --rsh option

C

You need to edit quota grace periods. Which of the following commands should you use? A. edquota -u B. edquota -g C. edquota -t D. edquota -G E. edquota --grace

C

Fred received an application in source code format. What script should he run to create the executable application program? A. dpkg B. rpm C. yum D. make E. wget

D

Sally needs to install a new package on her Ubuntu Linux system. The package was distributed as a DEB file. What tool should she use? A. rpm B. yum C. dnf D. dpkg E. tar

D

What filesystem is the latest version of the first Linux filesystem? A. reiserFS B. btrfs C. ext3 D. ext4 E. nfs

D

When you install a USB device on a Linux system, it appears that the device is not being detected. Which of the following is the best command to troubleshoot this particular situation? A. lsmod B. modinfo C. dmesg D. depmod E. insmod

D

Which of the following commands will display CPU load data along with information concerning users who are currently logged into the system? A. The who command B. The id command C. The whoami command D. The w command E. The last command

D

You need to quickly create a special archive. This archive will be a single compressed file, which contains any files with the extension .snar across the virtual directory structure. Which archive utility should you use? A. The tar utility B. The dd utility C. The rsync utility D. The cpio utility E. The zip utility

D

Your boss has asked you to remove KSingh's account and all his home directory files from the system immediately. Which command should you use? A. usermod -r KSingh B. rm -r /home/KSingh C. userdel Ksingh D. userdel -r KSingh E. usermod -d KSingh

D

A user has logged into the tty3 terminal. Which of the following user environment files is executed first if found in the user's home directory? A. The .bash_login file B. The .bashrc file C. The .profile file D. The .bash.bashrc file E. The .bash_profile file

E

An administrator needs to create a full backup using the tar utility, compress it as much as possible, and view the files as they are being copied into the archive. What tar options should the admin employ? A. -xzvf B. -xJvf C. -czvf D. -cJf E. -cJvf

E

Harry has finished writing his application source code but needs to package it for distribution. What tool should he use so that it can be extracted in any Linux distribution? A. dpkg B. rpm C. yum D. apt-get E. tar

E

Time and space to generate archives are not an issue, and your system's environment is not a high I/O one. You want to create full backups for your system only once per week and need to restore data as quickly as possible. Which backup type plan should you use? A. Full archive daily B. Incremental archive daily C. Differential archive daily D. Full archive weekly; incremental daily E. Full archive weekly; differential daily

E

What program runs in the background to automatically detect and mount new storage devices? A. mkfs B. fsck C. umount D. mount E. udev

E

Which field contains the same data for both an /etc/passwd and an /etc/shadow file record? A. Password B. Account expiration date C. UID D. GID E. User account's username

E

You are transferring files for a local backup using the sftp utility to a remote system and the process gets interrupted. What sftp utility command should you use next? A. The progress command B. The get command C. The reget command D. The put command E. The reput command

E

You decide to compress the archive you are creating with the rsync utility and employ the -z option. Which compression method are you using? A. compress B. gzip C. bzip2 D. xz E. zlib

E

You need to determine the dependencies of the unloaded xyz module. Which is the best utility to employ to accomplish this task? A. dmesg B. insmod C. lsmod D. modprobe E. modinfo

E

You need to insert the abc module into the Linux kernel. This module does not have any dependencies. What is the best utility to use? A. lsmod B. modinfo C. dmesg D. depmod E. insmod

E

You use the useradd -D command to view account creation configuration directives. What file does this command pull its displayed information from? A. The /etc/passwd file B. The /etc/shadow file C. The /etc/group file D. The /etc/login.defs file E. The /etc/default/useradd file

E


Ensembles d'études connexes

AP gov chapter 14 the bureaucracy

View Set

ch 7 pg 45 Final Check. A Phony Friend

View Set

Q4 Opening Questions & Exit Tickets

View Set

Chapter 7 Terms - Small Business Management

View Set

US History 1 - Chapter 10 - Sec 1

View Set

Unit 2- Stellar Motion and the Doppler Shift

View Set