Linux 1 Midterm

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

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

A. Asymmetric

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..tar.gz b..tgz c..iso d..zip

D. ..zip

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.SMTP c.IMAP d.NTP

D. NTP

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

D. SaaS

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.group computing b.herding c.cloud computing d.clustering

D. clustering

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.help version b.lsproc -? c.ver --help d.man uname

D. man uname

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. W c. L d. P

a. G

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.) a.Run the partprobe command b.Run the parted command c.Reboot the system d.Run the cfdisk program

a. Run the partprobe command b. reboot the system

Which of the following commands will display the current CPU(s) detected by a Linux system? a.cat /proc/cpuinfo b.cat /var/log/boothw.log c.cat /etc/cpu.conf d.cat /sys/cpuinfo

a. cat /proc/cpuinfo

In order to move from the /home/joe/test/data to the /home/joe directory, what command should be issued? a.cd ../.. b.cd ./.. c.cd .. d./home/joe

a. cd ../..

Which command should you run after installing a new kernel module to update the module dependency database? a.depmod b.modprobe c.lsmod d.insmod

a. depmod

John has been using the cdrom on his computer that is running the Linux operating system. He pushes the eject button on the front of the drive, but it doesn't eject the disk. Which of the following commands should he run? (Choose all that apply.) a.eject /media/cdrom b.unmount /media/cdrom c.detach /media/cdrom d.umount /media/cdrom

a. eject /media/cdrom d. umount /media/cdrom

Which of the following commands will create a symbolic link named foo.txt to an original file named bar.txt a. ln -s bar.txt foo.txt b. ln foo.txt bar.txt c. ln bar.txt foo.txt d. ln -h foo.txt bar.txt

a. ln -s bar.txt foo.txt

Which of the following commands can be used to show the block devices, including their major and minor numbers, on a system which are located in the /sys/block directory? a.lsblk b.lsblock c.ls -al /sys/block d.cat /sys/block

a. lsblk

What file under the proc directory contains information regarding what modules are currently loaded into the Linux kernel? a.modules b.modinfo c.mod_info d.kmods

a. modules

Which of the following commands will delete a directory and all of the files contained within it? (Choose all that apply.) a.rm -rf olddir b.rm olddir c.rmdir olddir d.rmdir -rf olddir

a. rm -rf olddir

To display a text file in reverse order, what command should be used? a.tac b.tee c.sed d.cat

a. tac

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? a.virtio b.hv_ c.vmw d.hyperv_

a. virtio

Which of the following options will change the ownership of files and directories recursively within a directory? (Choose all that apply.) a.-r b.-R c.--follow d.--recursive

b. -R d. --recursive

Which of the following would be the device file for the third partition on the second SATA drive on a Linux system? a./dev/hdc2 b./dev/sdb3 c./dev/sdc2 d./dev/hdb3

b. /dev/sdb3

The Filesystem Hierarchy Standard specifies what directory as the root user's home directory? a./bin b./root c./home/root d./boot

b. /root

At the vi command mode prompt, what key combination will force a quit from the vi editor without saving changes? a.:exit b.:q! c.:q d.:!

b. :q!

When issuing the ls -F command, what special character indicates a linked file? a.& b.@ c.* d.=

b. @

Which of the following is a virtual filesystem that is made up of virtual files that a Linux operating system is able to export information to about kernel sub-systems, hardware devices, and device drivers to make it easy for users to access the information? a.procfs b.tmpfs c.sysfs d.varfs

c. sysfs

What command can be used to display the last five lines of a text file? a.stop -5 b.head -5 c.tail -5 d.end -5

c. tail -5

To ensure that Linux has detected the correct amount of RAM in the system after installation, you should view the contents of what file in the proc directory? a./proc/cpuinfo b./proc/meoryinfo c./proc/mem d./proc/meminfo

d. /proc/meminfo

If enough unique letters of a directory name have been typed, what key can be pressed to activate the BASH shell's completion feature? a.Ctrl b.Alt c.Esc d.Tab

d. Tab

What is the term for a ZFS managed filesystem that is created from ZFS pools? a.ZFS store b.ZFS lake c.ZFS vault d.ZFS volume

d. ZFS volume

Which of the following commands can be used to display the filesystem and partition UUIDs on a Linux system? a.fatlabel b.e2label c.showpart d.blkid

d. blkid

What command can be used to check different kinds of filesystems on Linux for errors? a.chkds kb.errorchk c.fs_check d.fsck

d. fsck

What directory under / contains the log files and spools for a Linux system? a. /var b./boot c./usr d./opt

A. /var

An archive of files that usually contain scripts that install the software contents to the correct location on the system is referred to as a: a.Tarball b.Router c.DBMS d.Package manager

A. Tarball

What command is most effective at identifying different types of files? a. stat b. file c. ll d.ls -l

A. stat

What metacharacter indicates background command execution? a.! b.& c.@ d.^

B. &

Under the root directory in Linux, which directory contains system commands and utilities? a./opt b./usr c./boot d./var

B. /usr

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

B. MUA (Mail User Agent)

After logging into a terminal, a user will receive an interface known as which option? a.Swap memory b.Shell c.Processor d.User interface

B. Shell

What piece of software tells the operating system how to use a specific hardware device? a.Graphical user interface b.System service c.Device driver d.User interface

C. Device driver

After a shell is no longer needed, what command can be given to exit the shell? a.reset b.stop c.exit d.quit

C. Exit

The iptables software on Linux is an example of what kind of software? a.Proxy b.Anti-virus c.Firewall d.Routing

C. Firewall

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.malware c.freeware d.tryware

C. Freeware

When viewing the version number for a Linux kernel, what number indicates the stability of the kernel? a.Major number b.Revision number c.Minor number d.Production kernel number

C. Minor number

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

C. Web server

The apropos list command produces the same results as which command below? a.man -j list b.man -m list c.man -k list d.man -l list

C. man -k list

Select the utility below that will start and perform a thorough check of RAM for hardware errors when run. a.fsck b.fixram c.memtest86 d.memcheck68

C. memtest86

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.DHCP server d.proxy server

D. proxy server

Which Linux command can be utilized to display your current login name? a.id b.who c.w d.whoami

D. whoami

Select the regular expression metacharacter that matches 0 or more occurrences of the previous character. a.* b.+ c.^ d.?

a. *

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? a./etc/fstab b./etc/ftab c./etc/mtab d./etc/crontab

a. /etc/fstab

What is the complete path and filename for the database that is used by the locate and mlocate commands? a./var/lib/mlocate/mlocate.db b./var/lib/locate/locate.db c./etc/locate/mlocate.db d./etc/mlocate.db

a. /var/lib/mlocate/mlocate.db

Which of the following umask settings will result in new files receiving the default permissions -rw-------? a.0177 b.0688 c.0188 d.0600

a. 0177

Archie wants to optimize an XFS filesystem and minimize the chance of future corruption. Which of the following commands will compact or otherwise improve the layout of the contiguous blocks of file data for an XFS filesystem? a.xfs_fsr b.fsck c.defrag d.xfs_db

a. xfs_fsr

In order to set all of the special permissions on a certain file or directory, which command should be used on a file named filename? a.chmod 777 filename b.chmod 7777 filename c.chmod 0000 filename d.chmod 6666 filename

b. chmod 7777 filename

Which of these commands or commands will set the following permissions on file1.txt? Select all that apply. User = Read, Write, Execute Group = Read, Execute Others = Read a. chmod o=rwx,g=rx,u=r file1.txt b. chmod u=rwx, g=rx, o=r file1.txt c. chmod 754 file1.txt d. chmod file1.txt 754

b. chmod u=rwx, g=rx, o=r file1.txt c. chmod 754 file1.txt

Which of the following commands can be used to recursively search a directory tree for files that meet a certain criterion without using a database or premade index of files? a.search b.find c.where d.locate

b. find

Which of the following commands can be used to display general hardware information for the entire system? a.lscpu b.lshw c.hware d.hwdisp

b. lshw

Which of the following virsh commands will display the total amount of memory as well as the amount of free memory for a node? a.nodemem b.nodememstats c.nodesh d.showmem

b. nodememstats

Jean installs a distribution of Linux on a workstation and attempts to run the locate command to find a certain file. Instead of returning the results she expected, an error message is displayed that it cannot find the mlocate.db file in its default location. Which of the following commands should Jean run in an attempt to resolve this problem? a.locate --update b.updatedb c.mlocate --update d.apt upgrade mlocate

b. updatedb

If the physical extent of a volume group is set to 32MB, what is the maximum logical volume size? a.1TB b.256GB c.2TB d.512GB

c. 2TB

Which of the following key combinations, commonly used in the vi editor command mode, displays current line statistics? a.P b.x c.Crl+g d.$

c. Ctrl+g

What would be the result of running the command chown :root file1.txt a.This would set the owner of file1.txt to root. b.This would keep the current ownership of the file, and add root as a second owner of the file. c.This would set the group ownership of file1 to root. d.This would set the owner and group ownership of file1 to root.

c. This would set the group ownership t file1 root

Which of the following commands when run from the /, or root, directory will return a very long list of many pages of results? a.df b.ls -al c.du d.fdisk --list

c. du

What argument can be used with the chmod command to add read permission and remove write permission for a group on a file? a.o+r-w b.u+r+w c.g+r-w d.g-r+w

c. g+r-w

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 (John|Bob) salesemployees.csv b.grep -E (John|Bob) salesemployees.csv c.grep -E "(John|Bob)" salesemployees.csv d.egrep (John|Bob) salesemployees.csv

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

Which of the following is a type of software that allows a piece of hardware to host multiple operating systems? a.guest operating system b.thick client c.hypervisor d.thin client

c. hypervisor

What file in the /proc directory contains a list of memory address ranges reserved for device use? a.iomem b.meminfo c.ioports d.misc

c. ioports

Which of the following permissions would show for a symbolic link when displayed with the ls -l command? a.srwxrwxrwx b.srw-r--r-- c.lrwxrwxrwx d.-rw-r--r--

c. lrwxrwxrwx

Which of the following commands can be used to create and manage a software RAID configuration after installation? a.madam b.raidadm c.mdadm d.dmadm

c. mdadm

Which of the following commands can be used to scan a filesystem for disk usage, create, check, and repair quota files? a.quota b.chkquota c.quotacheck d.edquota

c. quotacheck

Which of the following commands will display a summarization of quotas for a filesystem? a.quotadisplay b.quotaprint c.repquota d.quota --list

c. repquota

If the mkfs command is executed to create a filesystem and only the block device name is specified, which of the following filesystems will be created? a.ext4 b.ext3 c.exFAT d.ext2

d. ext2

Which of the following commands will display all files and directories within the /var/log directory or its subdirectories which are owned by the root user? a. find -uid root -print /var/log b. find -path /var/log -user root c. find -user root -print /var/log d. find /var/log -user root

d. find /var/log -user root

In Fedora 20, what journaling database system has replaced the logging system used to record the messages normally stored within the boot.log, messages, and syslog files? a.messaged b.systemd c.logd d.journald

d. journald

S elect the command that can be used to provide a long listing for each file in a directory: a. ls -F b. ls -L c. ls -T d. ls -l

d. ls -l

What command is used to manage a software RAID configuration after installation? a.mdraid b.vgadm c.pgadm d.mdadm

d. mdadm

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? a.list b.disp c.display d.print

d. print

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? a.disable b.unmount c.mount --eject d.umount

d. umount

Which of the following are valid permissions for a directory where the command chmod 1777 has been used to set the permissions on it? a.drwxrwxrw- b.Srwxrwxrwx c.trwxrwxrwx d.drwxrwxrwt

d.drwxrwxrwt


Ensembles d'études connexes

U.S History colonial regents questions

View Set

Chapter 22: Introduction to the Cardiovascular System

View Set

Learning How to Learn: Powerful mental tools to help you master tough subjects: Chunking

View Set

Straighterline A&P 1 Cumulative Final

View Set

ITE115 Module 01: Impact of Digital Technology Quiz

View Set

chapter 7: emotional and social development in infancy and toddlerhood

View Set