Linux Final Exam Study Set

¡Supera tus tareas y exámenes ahora con Quizwiz!

Where are GRUB2 configuration files stored? (Choose all that apply.) A. /etc/grub.d B. /boot/efi C. /proc D. /boot/grub

A. /etc/grub.d D. /boot/grub

What folder do most Linux distributions use to store boot logs? A. /var/log B. /etc C. /var/messages D. /boot

A. /var/log

Which web server is used in the popular LAMP stack? A. Apache B. PostgreSQL C. nginX D. Lighthttpd

A. Apache

You are working on a Linux server at the command line, and you try to issue a diff command and receive a response stating that the command was not found. What is the next best step to take in order to start the troubleshooting process? A. Enter the which diff command. B. Log out, log back in, and retry the command. C. Enter the whereis diff command. D. Hit your up arrow key and press Enter.

A. Enter the which diff command.

Embedded Systems means: A. Systems designed to do a specific task on hardware optimized for only that purpose B. Users must support the systems themselves C. You can view the software's source code D. Companies must share their changes

A. Systems designed to do a specific task on hardware optimized for only that purpose

A Unicode-encoded text file, MyUCode.txt, needs to be perused. Before you decide what utility to use in order view the file's contents, you employ the wc command on it. This utility displays 2020 6786 11328 to STDOUT. Which of the following is true? (Choose all that apply.) A. The file has 2,020 lines in it. B. The file has 6,786 words in it. C. The file has 2,020 characters in it. D. The file has 11,328 characters in it.

A. The file has 2,020 lines in it. B. The file has 6,786 words in it.

You want to find any file named 42.tmp, which exists somewhere in your current directory's tree structure and display its contents to STDOUT. Which of the following will allow you to build a command to do this? (Choose all that apply.) A. cat `find . -name 42.tmp` B. cat $(find . -name 42.tmp) C. find . -name 42.tmp | xargs cat D. cat {find . -name 42.tmp}

A. cat `find . -name 42.tmp` B. cat $(find . -name 42.tmp) C. find . -name 42.tmp | xargs cat

The ________ command generates the GRUB2 configuration used for booting. A. grub-mkconfig B. mkinitramfs C. mkinitrd D. grub-install

A. grub-mkconfig

You are looking at a directory that you have not viewed in a long time and need to determine which files are actually directories. Which command is the best one to use? A. ls -F B. ls C. mkdir -v D. ls -i

A. ls -F

A text file, StarGateAttacks.txt, needs to be specially formatted for review. Which of the following commands is the best command to accomplish this task quickly? A. pr B. paste C. printf D. wc

A. pr

A long-time server administrator has left the company, and now you are in charge of her system. Her old user account directory tree, /home/Zoe/, has been backed up. Which command is the best one to use to quickly remove her files and still indicate that you are removing the correct directory, but without forcing you to confirm every file deletion? A. rm -rI /home/Zoe B. rm -ri /home/Zoe/ C. rm -Rf /home/Zoe/ D. mv -R /home/zoe/ /dev/null/

A. rm -rI /home/Zoe

Which directory on an old SysV init system stores the service startup scripts? A. /etc/rc.d/rc n .d/ B. /etc/init.d/ C. etc/systemd/system/ D. /usr/lib/systemd/system/

B. /etc/init.d/

Which of the following would be the appropriate base name for a mount unit file that mounts a filesystem at the /var/log/ mount point? A. /var/log.unit B. /var/log.mount C. var-log.unit D. var-log.mount

B. /var/log.mount

Bundling utilities, management tools, and application software with a Linux kernel is called a: A. A trademark B. A distribution of Linux C. A type of hardware D. A text editor

B. A distribution of Linux

What server role should you implement to block your local network clients from accessing sports websites during business hours? A. A DHCP server B. A web proxy C. A container D. A web server

B. A web proxy

You are managing a systemd system and need to create an automount unit file. Which of the following directives should you review to possibly include in this file's [Automount] section? (Choose all that apply.) A. TimeOutIdleSec B. DirectoryMode C. Where D. Options

B. DirectoryMode C. Where

Linux is distributed under which license? A. BSD B. GPLv2 C. GPLv3 D. MIT

B. GPLv2

If you see the named program running in the background on your Linux server, what service does it provide? A. Printing B. Hostname resolution C. Network time D. Dynamic IP address allocation

B. Hostname resolution

Linux originally only ran on: A. Specialized processor chips B. Intel 386 PCs C. Macintosh D. Raspberry Pi computersv

B. Intel 386 PCs

Which server software would you use to create a company directory that you could search and authenticate against? A. ISC DHCP B. OpenLDAP C. Samba D. bind

B. OpenLDAP

The ________ package allows you to create a secure tunnel across a private network to access your local network remotely. A. OpenSSL B. OpenSSH C. ntpd D. BIND

B. OpenSSH

A short text-based control file is no longer working properly with the program that reads it. You suspect the file was accidentally corrupted by a control code update you performed recently, even though the file's control codes are all correct. Which command should you use next on the file in your problem investigation? A. cat -n B. cat -v C. cat -z D. cat -s

B. cat -v

A ________ allows your developers to easily deploy applications between development, test, and production. A. cluster B. container C. DHCP server D. web proxy

B. container

What program allows you to fix corrupted hard drive partitions? A. mount B. fsck C. umount D. dmesg

B. fsck

Which of the following commands will determine how many records in the file Problems.txt contain the word error? A. grep Problems.txt error | wc -w B. grep error Problems.txt | wc -l C. grep error Problems.txt | wc -b D. grep error Problems.txt | wc -w

B. grep error Problems.txt | wc -l

Which of the following utilities change text within a file? (Choose all that apply.) A. sort B. nano C. cut D. vim

B. nano D. vim

Which of the following commands will put any generated error messages into the black hole? A. sort SpaceOpera.txt > BlackHole B. sort SpaceOpera.txt 2> /dev/null C. sort SpaceOpera.txt &> BlackHole D. sort SpaceOpera.txt 2> BlackHole

B. sort SpaceOpera.txt 2> /dev/null

A license where you don't have access to the source code is called: A. Open source B. Sourceless C. Closed source D. Impaired source

C. Closed source

What package do you need to install to allow your Linux server to provide IP addresses to clients on your local network? A. Evolution B. BIND C. DHCPd D. ntpd

C. DHCPd

A copyleft provision in a software license means: A. You must provide support for your modifications B. You may not link against third party closed source software C. If you redistribute the software, you must distribute the source to any changes you make D. You give up your copyright to the software

C. If you redistribute the software, you must distribute the source to any changes you make

You have issued the command grep Hal on a text file you generated using information from a failed login attempts file. It returns nothing, but you just performed a test case by purposely failing to log into the Hal account prior to generating the text file. Which of the following is the best choice as your next step? A. Delete the text file and regenerate it using information from the failed login attempts file. B. Issue the grep -d skip Hal command on the text file. C. Issue the grep -i Hal command on the text file. D. Employ the cat command to view the text file.

C. Issue the grep -i Hal command on the text file.

Which part of the Linux mail process allows you to create filters to automatically redirect incoming mail messages? A. MUA B. Evolution C. MDA D. MTA

C. MDA

Which open source database provided fast performance and became a popular choice for web applications? A. MongoDB B. PostgreSQL C. MySQL D. NoSQL

C. MySQL

Where is the Master Boot Record located? A. The boot partition of any hard drive on the system B. Any sector on any hard drive on the system C. The first sector of the first hard drive on the system D. The last sector of the first hard drive on the system

C. The first sector of the first hard drive on the system

The cat -E MyFile.txt command is entered, and at the end of every line displayed is a $. What does this indicate? A. The text file records end in the ASCII character NUL. B. The text file records end in the ASCII character $. C. The text file records end in the ASCII character LF. D. The text file has been corrupted somehow.

C. The text file records end in the ASCII character LF.

The ____ firmware method has replaced BIOS on most modern IBM-compatible computers. A. FTP B. NFS C. UEFI D. PXE

C. UEFI

Which of the following commands will display the file SpaceOpera.txt to output as well as save a copy of it to the file SciFi.txt? A. cp SpaceOpera.txt SciFi.txt B. cat SpaceOpera.txt 2> SciFi.txt C. cat SpaceOpera.txt | tee SciFi.txt D. cat SpaceOpera.txt > SciFi.txt

C. cat SpaceOpera.txt | tee SciFi.txt

You have a text file, monitor.txt, which contains information concerning the monitors used within the data center. Each record ends with the ASCII LF character and fields are delimitated by a comma (,). A text record has the monitor ID, manufacture, serial number, and location. To display each data center monitor's monitor ID, serial number, and location, you'd use which cut command? A. cut monitor.txt -d "," -f 1,3,4 B. cut -z -d "," -f 1,3,4 monitor.txt C. cut -d "," -f 1,3,4 monitor.txt D. cut -f "," -d 1,3,4 monitor.txt

C. cut -d "," -f 1,3,4 monitor.txt

What popular open source web servers can also perform as a load balancer? A. PostgreSQL B. Apache C. nginX D. Lighthttpd

C. nginX

You have modified an OpenSSH service's configuration file, /etc/ssh/ssh_config. The service is already running. What is the best command to use with systemctl to make this modified file take immediate effect? A. restart B. mask C. reload D. daemon-reload

C. reload

A file data.txt needs to be sorted numerically and its output saved to a new file newdata.txt. Which of the following commands can accomplish this task? (Choose all that apply.) A. A.sort -o newdata.txt data.txt B. sort -n data.txt > newdata.txt C. sort -n -o newdata.txt data.txt D. sort -n -o data.txt newdata.txt

C. sort -n -o newdata.txt data.txt

You've recently become the system administrator for an older Linux server, which still uses SysV init. You determine that its default runlevel is 3. What file did you find that information in? A. /etc/rc.d B. /etc/init.d/rc C. /etc/rc.d/rc D. /etc/inittab

D. /etc/inittab

What server role should you implement to increase performance on your company's website? A. A web proxy B. A DHCP server C. A container D. A load balancer

D. A load balancer

The grep utility can employ regular expressions in its PATTERN. Which of the following best describes a regular expression? A. Wildcard characters, such as * and ?, that a utility uses to filter text B. ASCII characters, such as LF and NUL, that a utility uses to filter text C. A series of characters you define for a utility, which uses the characters to match the same characters in text files D. A pattern template you define for a utility, which uses the pattern to filter text

D. A pattern template you define for a utility, which uses the pattern to filter text

Where does the firmware first look for a Linux bootloader program? A. The /boot/grub folder B. A boot partition C. The /var/log folder D. The Master Boot Record (MBR)

D. The Master Boot Record (MBR)

Your systemd system is taking a long time to boot and you need to reduce the boot time. Which systemd-analyze command is the best to start narrowing down which units need to be investigated first? A. failure B. dump C. time D. blame

D. blame

Your system uses systemd and has a service currently set to not start at system boot. You want to change this behavior and have it start. What systemctl command should you employ for this service? A. start B. disable C. isolate D. enable

D. enable

What command must you run to save changes to a GRUB Legacy boot menu? A. mkinitrd B. grub-mkconfig C. mkinitramfs D. grub-install

D. grub-install

You have a file that is over 10 GB in size, and it needs to be backed up to a locally attached drive. What is the best utility to use in this situation? A. mv B. scp C. cp D. rsync

D. rsync

You need to change the system's default target. What systemctl command should you use to accomplish this task? A. is-enabled B. get-default C. isolate D. set-default

D. set-default


Conjuntos de estudio relacionados

Week 4: Practice Quiz: Mastering Spreadsheet Basics: Test your knowledge on spreadsheet basics

View Set

ATI Engage Fundamentals Elimination Posttest

View Set

Organizational Leadership Final Exam

View Set

Assignment 9 - Underwriting Umbrella and Excess Liablity Insurance

View Set