linux

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

Which of the following files does the hostnamectl command modify to set the hostname on a machine? a. /etc/hostname b. /etc/host.conf c. /etc/hosts.conf d. /etc/hostname.conf

a. /etc/hostname

Which of the following commands will show the current runlevel along with the previous runlevel? (Choose all that apply.) a. runlevel b. telinit -r c. init -r d. echo $RUNLEVEL

a. runlevel

Which of the following results would be created by the command sequence:echo 'apple banana carrot dog elephant' | while read a b c; do echo result: $c $b $a; done

c. carrot dog elephant banana apple

Leonard wants to find detailed information about the Bluetooth kernel module. Which of the following commands can he use to display this information?

c. modinfo bluetooth

Which of the following will take output from a command and append it to the end of a file? a. < b. << c. > d. >>

d. >>

In order to create and manage KVM or Qemu virtual machines, a Linux system must have which of the following installed?

d. libvert

Which of the following can be used for comparing values within an if statement? (Choose two.) a. -lt b. -neq c. = d. -grt

a. -lt c. =

Which of the following files can you add filenames to so that the git add * command will not stage them? a. .gitignore b. .gitnopush c. .ignore d. .nopush

a. .gitignore

Which of the following commands can be used to display any email messages awaiting delivery alongside the reason that they were not delivered? a. mailqueue b. mailq c. mail --queue d. mail -q

b. mailq

Which of the following will the split command do on a file when no other options are specified? a. It will split a file into new files that are 1 kilobyte each. b. It will split a file into new files that are 1 megabyte each. c. It will split a file into new equally sized files that are 1/10th of the original file size. d. It will split a file into new files that are 1,000 lines each.

c. It will split a file into new equally sized files that are 1/10th of the original file size.

Which of the following statements should be used at the end of a SQL statement where an aggregate function such as SUM or COUNT is used? a. ORDER BY b. HAVING c. JOIN d. GROUP BY

c. JOIN

Which of the following key combinations would switch from tty1 to tty3? a. Ctrl+Shift+F3 b. Alt+Shift+F3 c. Ctrl+Shift+3 d. Ctrl+Alt+F3

d. Ctrl+Alt+F3

Which command should you run after installing a new kernel module to update the module dependency database?

d. depmod

Which of the following can be used to compare the hardware clock to the system clock, writing a new result to a new line every 10 seconds? a. systohc --compare b. compare --hw2sys c. hwtosys -c d. hwclock -c

d. hwclock -c

Which of the following would be the correct device for the primary master PATA hard disk? a. /dev/hda b. /dev/sda c. /dev/pataa d. /dev/drive0

a. /dev/hda

A system administrator wants to allow most users to be able to run cron jobs, but wants to specifically prevent a couple of users from doing so. Which of the following files could the administrator edit to disallow these users from creating cron jobs? a. /etc/cron.deny b. /etc/cron.d/cron.deny c. /etc/cron.allow d. /etc/cron.d/cron.allow

a. /etc/cron.deny

Which of the following files stores information about failed logins on a Linux system? a. /var/log/btmp b. /var/log/wtmp c. /var/log/nolo d. /var/log/failed

a. /var/log/btmp

Which of the following umask settings will result in new files receiving the default permissions -rw-------?

a. 0177

When using the vi text editor, which of the following keys, when in command mode, will move to the last line in the document? a. G b. L c. P d. W

a. G

Which of the following options can be used with the usermod command to change the description of the user account that is stored in the GECOS field? a. -g b. -d c. -c d. -s

c. -c

Sandra needs to obtain the latest image of Fedora so that she can install it as a virtual machine on her Windows workstation. Which of the following file formats is Sandra likely to find available for download from Fedora's website in order to allow her to use the file as the source for booting and installing Linux as a VM? a. .zip b. .tar.gz c. .iso d. .tgz

c. .iso

Upon running the ifconfig command, the IP address is listed along with the subnet mask in dotted decimal notation listed as 255.255.255.224. You have installed a remote access software that has an address field that requires the address to be configured in CIDR notation. Which of the following is the equivalent CIDR notation for the subnet mask listed? a. /23 b. /24 c. /27 d. /28

c. /27

The output of the ifconfig shows a HWaddr expressed in hexadecimal. How many bits is the hardware address shown made up of? a. 8 b. 32 c. 48 d. 128

c. 48

Kate wants to compare two text files to identify what might have been changed from one version to another. Which of the following commands can she use to do this? a. match document1.txt document2.txt b. version --compare document1.txt document2.txt c. compare document1.txt document2.txt d. diff document1.txt document2.txt

d. diff document1.txt document2.txt

Which of the following server roles does Apache perform? a. web server b. mail server c. name server d. certificate authority

a. web server

Which of the following can be used at the command line to download a file using the HTTP protocol? (Choose two.) a. GET b. wget c. curl d. wwwretr

b. wget c. curl

Which of the following characters, when pressed while the top program is running, will allow you to change the niceness of a process? a. n b. p c. r d. d

c. r

Which of the following is the highest value that can be set for the nice value which would result in a greater chance of a lower priority? a. 20 b. 19 c. 10 d. 0

b. 19

Which of the following commands will display the current CPU(s) detected by a Linux system?

b. cat /proc/cpuinfo

Which of the following commands can be used to convert files between different character encodings? a. iconv b. conv c. convert d. transform

a. iconv

Which of the following commands will display the print jobs in the print queue for printer1 only? a. lpstat -o printer1 b. lpq -d printer1 c. lpq -p printer1 d. lp -j printer1

a. lpstat -o printer1

Callie wants to make sure that a filesystem is checked every 20 days. Which of the following options, when used with the tune2fs command, would set a full filesystem check to run every 14 days?

b. -i 14d

Which of the following file extensions are used by the Debian Package Manager? a. .dpm b. .deb c. .dpkg d. .d

b. .deb

Which of the following is the full path and file name where the Debian Package Manager repositories can be configured? a. /etc/dpm/repositories.conf b. /etc/apt/sources.list c. /etc/apt.source.conf d. /etc/dpm.conf

b. /etc/apt/sources.list

Aria has modified the hard disk that hosts the operating system by using the fdisk command. The fdisk command indicates that the new partition information must be manually reloaded. Which of the following should she do next? (Choose two. Either answer is independently correct.)

b. Run the partprobe command d. Reboot the system

Which of the following types of encryption uses a pair of keys known as a public and private? a. symmetric b. asymmetric c. SHA1 hashing d. message digest

b. asymmetric

Jo has received a text file which contains multiple instances of his name spelled correctly as well as multiple instances spelled as Joe. Which of the following commands would search a text file for any occurrences of either spelling and display them out to the terminal? (Choose three.) a. grep "Joe?" document1.txt b. grep -E "Joe?" document1.txt c. grep "Joe*" document1.txt d. grep -E "Joe*" document1.txt

b. grep -E "Joe?" document1.txt c. grep "Joe*" document1.txt d. grep -E "Joe*" document1.txt

Which of the following commands can be used to set the default printer for all users on a Linux system where printer1 is the name of the printer? a. lp -d printer1 b. lpoptions -d printer1 c. lpd -d printer1 d. lpq --set-default printer1

b. lpoptions -d printer1

Wayne is using the command line and is in his home directory. Which of the following will display a list of all files and their sizes from his home directory? (Choose two.) a. ls -ax b. ls -al ~ c. ls -ax ~ d. ls -al /home/wayne

b. ls -al ~ d. ls -al /home/wayne

On a system using the KVM hypervisor, which of the following modules would you expect to see as part of the output of the lsmod command on a guest Linux virtual machine?

b. virtio

Which of the following commands will count the number of lines in a file named data.csv? a. lc data.csv b. wc -l data.csv c. lines data.csv d. count -l data.csv

b. wc -l data.csv

Which of the following would be a term applicable to an e-mail program on a workstation that is used to view email? a. MTA b. MDA c. MUA d. MBR

c. MUA

Which of the following types of DNS records need to be configured to facilitate email delivery? a. CNAME b. PTR c. MX d. IMAP

c. MX

Which type of CM software can connect to inventory members via SSH to perform configuration management activities? a. Agent-based b. BLOB c. agentless d. Kickstart

c. agentless

Which of the following states describe a process that is waiting for a parent process to release its PID? a. wait b. suspended c. zombie d. dead

c. zombie

Which of the following can be used to synchronize the time between a number of Linux servers and workstations on a network with a time clock source on the Internet? a. SFTP b. IMAP c. SMTP d. NTP

d. NTP

In which of the following directories can you place files that will be copied to new user directories when new users are created? a. /etc/rc.d b. /etc/skel c. /usr/local/template d. /usr/local/useradd

b. /etc/skel

Which of the following is a valid APIPA address? a. 127.0.0.1 b. 169.254.38.101 c. 10.11.12.13 d. 192.168.1.17

b. 169.254.38.101

Which of the following RPM options will update a software package to the newest version, or install the package if it does not already exist on a system? a. -i b. -U c. -u d. -F

b. -U

Which of the following permissions would show for a symbolic link when displayed with the ls -l command?

c. lrwxrwxrwx

Which of the following would be the device file for the third partition on the second SATA drive on a Linux system?

c. /dev/sdb3

Which of the following files contain the path and filename where DNS servers should be configured? a. /etc/nsswitch.conf b. /etc/named.conf c. /etc/resolv.conf d. /etc/hosts

c. /etc/resolv.conf

Lynn runs the locate command and the results include many files from a directory that she doesn't want to include in her search. Which of the following files could Lynn modify so that the locate command no longer includes those results?

c. /etc/updatedb.conf

Which of the following commands will create a symbolic link named foo.txt to an original file named bar.txt

c. ln -s bar.txt foo.txt

Which of the following is a tool that can be used to search Internet software repositories for RPM packages that map to your system's architecture, and automatically install or upgrade those packages on your system? a. tar b. wget c. APT d. YUM

d. YUM

Which of the following package managers are used to install RPM packages on the SUSE or openSUSE distributions by default? a. APT b. DPM c. DNF d. Zypper

d. Zypper

Which of the following commands can be used to see files that are currently being used by a specific process ID (PID)? a. psfiles b. lsof c. pstatus d. pids

b. lsof

Which of the following commands will power off a Linux system after a 10 minute delay? a. shutdown -t 600 b. shutdown -P 10 c. halt -t 10 d. poweroff --wait 10

b. shutdown -P 10

Which of the following commands can be used to display general hardware information for the entire system?

a. lshw

Mindy wants to create a new subdirectory at ~/2019projects/projectx/projectplans to start storing the initial project plans for projectx. However, this is the first project she has worked on in 2019 and the 2019projects directory does not exist yet. Which of the following commands will create the higher level directories if they do not already exist?

b. mkdir -p ~/2019projects/project/projectplans

Which of the following commands cannot be used to create an exFAT filesystem on a USB thumb drive that is recognized as /dev/sdb?

b. mkfs exfat /dev/sdb1

Which of the following types of CM software only requires that you specify the attributes that the inventory members must have within a configuration file, not the individual procedures that must be executed on them? a. agentless b. declarative configuration c. imperative configuration d. agent-based

b. declarative configuration

Which of the following commands will not interpret regular expressions, which translates into faster results being returned? (Choose all that apply.) a. grep b. grep -F c. egrep d. fgrep

b. grep -F d. fgrep

Which of the following types of servers can be used to cache requested Internet resources so that they can be more quickly delivered to users requesting the same resource while at the same time reducing the burden on the external network connection to the Internet for an organization? a. file server b. DNS server c. proxy server d. DHCP server

c. proxy server

Which of the following commands will delete a directory and all of the files contained within it? (Choose all that apply.)

c. rm -rf olddir

Which of the following commands can be used to update the last modified timestamp on a file, or if the file specified does not exist will create the file?

c. touch file.txt

Elijah is done working with an external USB hard drive and wants to properly disconnect it. Which of the following commands should he use before unplugging the USB cable?

c. umount

Which of the following types of cloud platforms would a webmail service offered to the general public be considered? a. SaaS b. PaaS c. IaaS d. MaaS

a. SaaS

Which of the following is used on modern Linux distributions that reads YAML configuration files to add apps, modify existing configuration settings, or perform administrative tasks at boot time? a. cloud-init b. Docker Hub c. Kickstart d. OVF

a. cloud-init

Chase is trying to extract records for employees 423 through 428 out of a comma separated values file and store them in another one. Which of the following commands would accomplish this? (Choose all that apply.) a. cat employees.csv | grep 423,424,425,426,427,428 > employees.csv b. cat employees.csv | grep "42[3-8]" > employees-newhires.csv c. grep "42[3-8]" employees.csv > employees-newhires.csv d. grep "42[3-8]" < employees.csv > employees-newhires.csv

b. cat employees.csv | grep "42[3-8]" > employees-newhires.csv c. grep "42[3-8]" employees.csv > employees-newhires.csv d. grep "42[3-8]" < employees.csv > employees-newhires.csv

Which of the following is not a valid compression file extension for the Linux operating system? a. .vz b. .xz c. .gz d. .bz2

a. .vz

Which of the following is a valid SQL statement for adding a new row of data to a SQL database table? a. INSERT INTO users (firstname, lastname) values ('George', 'Washington'); b. INSERT ('George', 'Washington') INTO users (firstname, lastname); c. ALTER TABLE users SET firstname = 'George', lastname = 'Washington'; d. UPDATE users SET firstname = 'George', lastname = 'Washington';

a. INSERT INTO users (firstname, lastname) values ('George', 'Washington');

Which of the following are valid statements in the /etc/resolv.conf file? (Choose two.) a. domain comptia.org b. order hosts, bind c. 10.1.15.60 server10 d. nameserver 10.1.1.4

a. domain comptia.org d. nameserver 10.1.1.4

Garrett wants to search through a csv file to find all rows that have either the name John or Bob in them and display them out to the terminal. Which of the following commands could Garrett use to perform this search? a. grep -E "(John|Bob)" salesemployees.csv b. grep (John|Bob) salesemployees.csv c. grep -E (John|Bob) salesemployees.csv d. egrep (John|Bob) salesemployees.csv

a. grep -E "(John|Bob)" salesemployees.csv

When using the vi text editor, which of the following keys, when in command mode, will change to insert mode and place the cursor at the end of the current line? a. i b. a c. I d. A

a. i

Which of the following commands will list missing libraries as not found if a necessary library is not installed? a. ldd b. ldconfig c. ldso d. ldchk

a. ldd

Which of the following is the default window manager used by the GNOME version 3 desktop environment? a. mutter b. metacity c. wmaker d. kwin

a. mutter

Which of the following commands can be used to set the number of days until user account jsmith with an expired password is disabled? a. usermod -f 15 jsmith b. usermod -d 15 jsmith c. usermod -x 15 jsmith d. usermod -e 15 jsmith

a. usermod -f 15 jsmith

What would be the result of running the command chown :root file1.txt

b. This would set the group ownership of file1 to root.

Which of the following terms describes a type of useful and legitimate software that is distributed by a developer where they do not charge for the software but also do not distribute the source code along with it? a. shareware b. freeware c. malware d. tryware

b. freeware

Which of the following will invalid entries in the GRUB2 configuration cause? a. kernel warning automatically skipping invalid entries b. kernel panic and halt the system c. kernel error with confirmation to skip invalid entries d. no error, automatically skipping invalid entries until a valid entry is found

b. kernel panic and halt the system

Mike has changed directory into one subdirectory after the next and has lost track of where he's at in the directory tree. Which of the following commands can he use to tell him the full path to the current subdirectory he is in? a. cd - b. pwd c. cwd d. ls -dir

b. pwd

Which of the following commands will shut down a Linux system? (Choose all that apply.) a. runlevel 0 b. telinit 0 c. shutdown -h now d. poweroff

b. telinit 0 c. shutdown -h now d. poweroff

Which of the following options can be specified in the GRUB Legacy configuration file to set how long the boot menu is displayed before loading the default image? a. splash b. timeout c. wait d. timer

b. timeout

Which of the following is the first field of the /etc/passwd file? a. UID b. username c. GECOS d. GID

b. username

Which of the following does a Linux kernel use to store the value of epoch time? a. The number of days since January 1, 1900 b. The number of minutes since January 1, 1900 c. The number of seconds since January 1, 1970 d. The number of milliseconds since January 1, 1980

c. The number of seconds since January 1, 1970

Which of the following commands can be used to display a calendar for the current month? a. month b. date --calendar c. cal d. calendar

c. cal

Which of the following will look at the /etc/passwd file for any lines containing the word root and display them out to the screen while simultaneously writing the results to a file? (Choose two.) a. cat /etc/passwd | grep root | merge ~/root.txt b. cat /etc/passwd | grep root >> ~/root.txt c. grep root /etc/passwd | tee ~/root.txt d. grep root /etc/passwd | split ~/root.txt

c. grep root /etc/passwd | tee ~/root.txt

You run the command hostname server1 and issue the reboot command. You notice that the host name has reverted back to what it was before the reboot. Which of the following commands should you have used to change the host name instead? a. ifconfig server1 b. host server1 c. hostnamectl set-hostname server1 d. set hostname="server1"

c. hostnamectl set-hostname server1

Dustin runs a command at the command line trying to find out what kernel version the system is running. However, it doesn't give him the information he needs. He knows there is an option that can be used to display the kernel version. How can he find out which option to use? a. ver --help b. help version c. man uname d. lsproc -?

c. man uname

Which of the following commands will send 4 ICMP echo requests to a remote host named server1 to determine the round trip time it takes a packet to travel? a. ping -4 server1 b. ping server1 c. ping -c 4 server1 d. ping -n 4 server1

c. ping -c 4 server1

Clint has run the command parted /dev/sdb and wants to display a list of the existing partitions that exist on that drive. Which of the following commands can he use to display the existing partitions?

c. print

Which of the following is a special group that provides its members with the ability to run the su and sudo commands? a. sudoers b. adm c. wheel d. sys

c. wheel

Which of the following characters can be entered at the beginning of a line in a shell script to ensure that line is recognized as a comment rather than try to execute it? a. $ b. > c. % d. #

d. #

Jackson wants to automatically mount a secondary internal hard drive when his Linux workstation boots up. In which of the following files should he configure an entry for the partition on the drive that he wants to mount?

d. /etc/fstab

If the physical extent of a volume group is set to 32MB, what is the maximum logical volume size?

d. 2TB

Which of the following are true of the echo command? a. When used to display text, quotation marks are optional. b. It can be used to display shell variables by including a $ sign in front of the variable name. c. Including a semicolon at the end of the line will not affect the text being displayed. d. All of the other options are true

d. All of the other options are true.

Which of the following can be used to graphically remotely administer a Linux machine? a. RDP b. Telnet c. FTP d. VNC

d. VNC

The United States Air Force was able to install Linux on a popular gaming console and then connect over 1,700 of these systems together to work as one big supercomputer. Which of the following types of technologies did they implement? a. herding b. cloud computing c. group computing d. clustering

d. clustering

Which of the following commands will show the current user cron jobs that have been created for the currently logged in user? a. cronjobs --list b. cron --list c. cron -l d. crontab -l

d. crontab -l

Which of the following commands will display messages that were displayed during the boot sequence by the kernel?

d. dmesg

Which of the following is a type of software that allows a piece of hardware to host multiple operating systems?

d. hypervisor

Which of the following commands will send a process's resources to /dev/null to kill the process for process ID 1357? a. sigkill 1357 b. killall 1357 c. kill -15 1357 d. kill -9 1357

d. kill -9 1357

Which of the following can be used preceding a command to prevent a process from terminating when the parent process terminates? a. bg b. runat c. & d. nohup

d. nohup


Kaugnay na mga set ng pag-aaral

Special Right Triangles Assignment and Quiz

View Set

Systems Analysis and Design - Chapter 1

View Set

HUMS 213 Assessment Exam Practice Questions

View Set

Compensation and Benefits: Exam 4/Chapter 14 - Compensation of Special Groups

View Set

EMT A1: Chapter 30, Abdominal and Genitourinary Injuries Knowledge Objectives

View Set

Chapter 8: Climate and Climate Change

View Set

Greek and Roman Thought: English

View Set