Linux Final Exam

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

During the installation of a Linux package, the package manager may notice some required __________, which are other packages needed to run the application. dependencies limitations resources configurations

dependencies

Arturo just connected a new drive to his Linux system. He wants to create a partition on the disk. Which of the following is a partitioning tool? btrfs fdisk fsck df

fdisk

Tonya would like to view a list of the partitions on a hard disk attached to a Linux system. What command can she use to achieve this task? partition fsck fdisk dumpe2fs

fdisk

Alice suspects that the file system on a Linux computer she administers has become corrupted. What tool will detect issues with the disk and repair the file system? fsck fstab fdisk chkfsk

fsck

Most Linux utility programs are written using the C or C++ programming language. You have downloaded one such program and are ready to compile it. To do so, you need the ____________ and the make packages installed. apt gcc rpm snap

gcc

The Linux compression gzip package contains a number of utilities. Which utility displays the contents of compressed text files? compress gunzip gzcat unzip

gzcat

Which of the following processes must start first on a Linux system? cron first init kswapd

init

You are building a server for a user who plans to create a web application on top of it. Which of the following packages is critical to this intended use? Samba Postfix KDE Apache

Apache

Which of the following can be released as a single package and be guaranteed that it will run just fine on any Linux system? Repository Database Collection Application container

Application Container

The following is output from the ls command: $ ls -l total 420 -rw-r--r-- 1 root root 22180 Apr 10 17:05 ath3k.ko -rw-r--r-- 1 root root 14028 Apr 10 17:05 bcm203x.ko -rw-r--r-- 1 root root 26300 Apr 10 17:05 bfusb.ko -rw-r--r-- 1 root root 18404 Apr 10 17:05 bluecard_cs.ko -rw-r--r-- 1 root root 19124 Apr 10 17:05 bpa10x.ko What are each of the files with a .ko extension? Kernel source code, Device driver modules, Executable files, Data files

Device driver modules

When the kernel wishes to access a memory page and the page is not located in physical memory, where does it go to retrieve the page? File server Filesystem Disk Network

Disk

You are preparing to install the sysstat application from source code onto your Linux system. You issue the tar -Jxvf sysstat-12.5.4.tar.xz command. What does the -x switch do? Extracts the tarball Indicates the filename Reads or writes archives Uses verbose mode

Extracts the tarball

Raid technology is the use of one disk drive that is written very fast.

False

True or False? A Linux system can have only one primary partition.

False

True or False? By default, the rmdir command removes directories and the files they contain.

False

True or False? In Linux, linking is the use of wildcard characters to represent one or more characters in a file or directory name.

False

True or False? In Linux, processes run only in the background.

False

True or False? In Linux, the relative path to a file starts at the root directory (/) and includes every directory along the virtual directory tree to the file.

False

True or False? Interrupt requests (IRQs. are locations in memory where the CPU can send data to and receive data from the hardware device.

False

True or False? Linux file names can be any length of characters and include any special characters.

False

True or False? The C:\Users\Rich\My Documents\test.doc file path is an example of the Linux directory structure.

False

True or False? The default prompt symbol for the bash shell is the backslash (\).

False

True or False? The jobs command enables you to start jobs but not view current jobs being handled by the shell.

False

True or False? The kernel manages physical memory but cannot create or manage virtual memory.

False

True or False? To run something in background mode from the command-line interface, place an asterisk (*) symbol after the command.

False

True or False? When traversing directories using a relative file path, the double dot (..) represents the current directory.

False

True or False? You can use only startup scripts to start applications in runlevels.

False

You create a file called test.txt in the /etc directory. Later you enter the following shell command:# cat /etc/TEST.txtYou are unable to locate the file. What went wrong? File names are case sensitive so test.txt and TEST.txt are not the same file. The cat command will not read a text file. You need to have root privileges to read any files in the /etc directory. You need to switch to the /etc directory before you can see the file.

File names are case sensitive so test.txt and TEST.txt are not the same file.

What is the default file manager for GNOME desktop environments? Dolphin Lynx Files Evolution

Files

You are developing a new web application that will be used heavily by Linux users. What web browser is most important to test for compatibility with your application, based on the fact it is the most common default software in Linux? Internet Explorer Firefox Chrome Lynx

Firefox

The four main parts of a Linux system are the Linux kernel, ______, a user interface, and application software. a firewall memory management GNU utilities runlevels

GNU utilities

You are building a Linux system for use by individuals familiar with the Windows environment and want to provide them with a familiar look and feel. What desktop environment was designed for this purpose? K Desktop Environment (KDE) X Window XFree86 GNOME

K Desktop Environment (KDE)

Compiled device drivers require the source code for the device driver as well as the source code for the kernel. The kernel program must be recompiled to add the driver. What other method allows inserting drivers into a running kernel? Compilers Kernel modules Modified source code Plug and play drivers

Kernel modules

What allows developers to insert device driver code into a running kernel without having to recompile the kernel? Block device file Character device file Kernel code Kernel modules

Kernel modules

What office productivity software includes the Writer, Calc, Impress, Draw, Math, and Base applications? LibreOffice and OpenOffice.org LibreOffice and Microsoft Office OpenOffice.org only LibreOffice only

LibreOffice and OpenOffice.org

On a Linux system, you want to scrape data from webpages for scripting purposes without having to download all of the graphics elements. What web browser do you use? Chromium IceCat Lynx Opera

Lynx

The Basic Input/Output System (BIOS) looks for the boot loader program on a Linux system by reading the __________ on the hard drive. Unified Extensible Firmware Interface (UEFI) Master Boot Record (MBR) kernel configuration kernel ring buffer

Master Boot Record (MBR)

A number of methods temporarily change the runlevel on a single-user or multi-user Linux system. How do you permanently change the runlevel at which a Linux system starts? Modify the /etc/inittab file. Modify the /etc/telinittab file. Use the init 6 command. Use the delimit 6 command.

Modify the /etc/inittab file.

You are a network administrator in a Linux-based IT environment. You are selecting a network application that works for Linux-to-Linux file sharing. What do you choose? eXim NFS Postfix Samba

NFS

You are installing a Linux system for a customer who prefers the GNOME desktop. Which GNOME application will provide a graphical file manager? Amarok Dolphin Konqueror Nautilus (now called Files)

Nautilus (now called Files)

Which of the following is not a primary task of the Linux kernel? System memory management Hardware management Network address allocation Software program management

Network address allocation

What is a database solution that can handle large quantities of data by forgoing structured database tables? MySQL NoSQL MariaDB PostgreSQL

NoSQL

You need to install a Linux server on a predominantly Windows network. What software package allows the emulation of Microsoft services on a Linux platform? NFS NTFS Samba SQL Server

Samba

You are managing memory on a Linux system that does not have sufficient physical memory to run all of the applications you require. To augment the physical memory, you arrange to have locations on the computer's hard drive switch out the contents from this location to physical memory. What is the name of this location? Vlocks Managed memory Swap space Virtual memory

Swap space

You are examining the GRUB Legacy configuration file for a Linux system and see the following entries: default 0 timeout 10 color yellow/white blue/red title Ubuntu Linux root (hd1,0) kernel (hd1,0)/boot/vmlinuz initrd /boot/initrd title Windows 10 rootnoverify (hd0,0) GRUB Legacy refers to hard drive disks and partitions using a numbering system. With that in mind, where is the Ubuntu operating system installed? - The first partition of the second hard drive - The second partition on the first hard drive - The zero partition of the first hard drive - The first partition of the zero hard drive

The first partition of the second hard drive

When you boot a Linux system, which step occurs first? The boot loader runs. The background programs launch. The kernel loads. The power-on self-test (POST) runs.

The power-on self-test (POST) runs.

Which of the following is true of the Linux KDE Plasma and GNOME 3 desktop environments? They require far fewer system resources to run than the Microsoft Windows desktop environment. They require about the same amount of system resources to run as the Microsoft Windows desktop environment. They require significantly more system resources to run than the Microsoft Windows desktop environment. They can run on a PC only if emulating Windows, such as the Linux fvwm desktop.

They require about the same amount of system resources to run as the Microsoft Windows desktop environment.

What is the default email client for the Ubuntu distribution of Linux? Evolution Thunderbird KMail Firefox

Thunderbird

True or False? A Linux package management system controls the installation of software applications and libraries.

True

True or False? A package management system enables a user to search for new software packages or updates and security patches to software packages already installed on a system.

True

True or False? Adding a drive partition with a file system to the Linux virtual directory file system is called mounting the file system.

True

True or False? After connecting a drive to a Linux system, you need to create one or more partitions on it.

True

True or False? After logging in to a virtual terminal on a Linux system, you can switch to another virtual terminal session without losing your existing active session.

True

True or False? During bootup, boot kernel messages are temporarily stored in the kernel ring buffer.

True

True or False? GRUB2 supports the ability to load hardware driver modules.

True

True or False? GRUB2 utilizes environment variables to configure settings instead of commands.

True

True or False? In Linux, a mount point is a directory placeholder within the Linux virtual directory that points to a specific physical device.

True

True or False? In a Linux shell script, lines that start with a pound sign (#) are called comment lines, which are skipped when processing the shell script.

True

True or False? In background mode, a process runs without being associated with a terminal session.

True

True or False? In the systemd initialization process, each unit requires a configuration file that defines which program starts and how the program should be started.

True

True or False? Linux handles both hard disk drive (HDD) and solid-state drive (SSD) storage devices the same way, although the connection methods may differ.

True

True or False? Linux represents hardware devices as special files called device files.

True

True or False? RAID technology enables implementation of data redundancy for fault-tolerance by combining multiple drives into one virtual drive.

True

True or False? Relative file paths allow you to specify a destination directory relative to your current location, without having to start at the root.

True

True or False? The Linux kernel creates device files in the /dev directory to interface with hardware devices.

True

True or False? The Master Boot Record (MBR) is the first sector on the first hard drive partition on a system.

True

True or False? The dash shell is based on bash and used in Ubuntu Linux.

True

True or False? The fdisk command does not allow the size of an existing partition to be altered.

True

True or False? The first hard drive installed in a Linux PC is called the root drive, which may contain directories called mount points.

True

True or False? The gparted utility enables you to mount or unmount partitions.

True

True or False? The kill and pkill commands enable you to send process signals to running processes.

True

True or False? The output from the ls -l command, which is the long directory listing format, includes permissions for the user, group, and other users.

True

True or False? The runlevel of a Linux system can be changed using either the init command or the telinit command.

True

True or False? The tar command is commonly used to bundle Linux source code files into an archive file for distribution.

True

True or False? To find out if a Linux system uses the SysVinit or system init program, use the ps command.

True

True or False? To send a process signal, you must either be the owner of the process or be logged in as the root user.

True

True or False? When you run a shell script from the command line, Linux starts a new shell, separate from the command-line shell. Any local variables you set inside a shell script will "go away" when the script ends and not be present in the parent command-line shell.

True

True or False? You can append files to an existing tar archive file.

True

True or False? You can start a shell script from a terminal session and let the script run in background mode until it finishes, even if you exit the terminal session.

True

What firmware program loads when the computer powers up, can load a boot loader of any size, and can load a Linux operating system without a boot loader program? Basic Input/Output System (BIOS) Extensible Firmware Interface (EFI) EFI System Partition (ESP) Unified Extensible Firmware Interface (UEFI)

Unified Extensible Firmware Interface (UEFI)

You want to test a derivative Linux distribution on your computer without installing it to see if it will function properly on the PC's hardware. This specialized distribution should run the entire system. How will you do this? Use a LiveDVD version burned to a USB stick to boot the system to Debian. Use a LiveDVD version burned to a DVD to boot the system to Gentoo. Use a LiveDVD version burned to a USB stick to boot the system to Mint. Use a LiveDVD version burned to a DVD to boot the system to openSUSE.

Use a LiveDVD version burned to a USB stick to boot the system to Mint.

Which of the following is not a component of the GNU coreutils package? Utilities for handling files Utilities for configuring firewalls Utilities for manipulating text Utilities for managing processes

Utilities for configuring firewalls

You just installed a fresh Ubuntu distribution. You notice that a number of security patches have not been updated. Which apt command should you run to get the latest applications and their dependencies? apt autoupdate apt get all apt purge apt upgrade

apt upgrade

You are selecting a shell for your Linux system. You are concerned about the amount of memory used by the shell. Which of the following shells would be the best choice? bash ksh tcsh ash

ash

What is the default shell used in most Linux distributions? bash ksh tcsh ash

bash

The following is output from the ls command on a system: $ls -l total 56 -rw-r--r-- 1 rich rich 414 Nov 23 11:30 data drwxr-xr-x 2 rich rich 68 Nov 23 11:30 critical -rw-r--r-- 1 rich rich 132 Nov 23 11:23 files.dat -rw-r--r-- 1 rich rich 14918 Nov 23 11:24 info.txt -rw-r--r-- 1 rich rich 0 Nov 23 11:23 mydata.txt -rw-r--r-- 1 rich rich 473 Nov 23 11:30 sample Which of the following is a directory? sample, data, files.dat, critical

critical

Red Hat "based systems use several different front-end tools for software management. What command-line tool are they all based upon? dnf rpm yum zypper

rpm

When shell commands are grouped together so they can be executed as a program, they are called: C programming language. command-line interface. command prompt. shell scripts.

shell scripts

In the command shell on a Debian-based system, you want to run an administrative task without having to switch to the root user. What command must you use to perform this? apt dnf sudo yum

sudo

You would like to remove a USB drive from a Linux system. What command should you issue before physically disconnecting the drive from the system? umount dconnect unmount disconnect

umount

What command can be used to manually connect to a drive that does not automatically appear when connected to the system? partition fstab fsck mount

mount

What parameter can you add to the ls command to show the files of subdirectories of the directory in question? -F -L -R -S

-R

When a user connects a drive to a Linux system, the Linux kernel assigns the drive device a file in which directory? /home /media /dev /usr

/dev

Which file defines the default runlevel for the Linux system? /etc/defaults /etc/inittab /etc/rc.d /etc/resolv.conf

/etc/defaults

What directory on a Linux system contains standard system user data files? /root /mnt /usr /home

/home

What Linux system directory contains data for standard program files? /usr /var /opt /boot

/usr

You run the meminfo command on a Linux server and it reports the following results: MemTotal: 3996421kB MemFree: 601133kB MemAvailable: 1984452 kB Approximately how much physical memory is installed on the server? 4 GB 600 MB 2 GB 6 GB

4 GB

In Linux, the function of starting, stopping, killing, and resuming jobs is called: job coordination. job control. process management. program control.

job control.

Which of the following is a command used to create file systems in Linux? fdisk fsck mkfs ecryptfs

mkfs


Ensembles d'études connexes

Pharm Exam 3 Antiepileptic Drugs

View Set

ASTR 1290: Final Practice Quizzes

View Set

CH 10 VA State Health and Insurance Exam

View Set

Valuation and Market Analysis (Appraisal)

View Set

Parenteral (IV) Medications Dosage Calculation 3.0 Parenteral

View Set

KINE 280 Unit 3 (Childhood Diarrhea) Study Guide

View Set

Ch 3 Into, Conc., Homework Practice: The accounting cycle: end of the period

View Set

FIN 320-51 Ch. 5 Quiz, FIN 320-51 Ch. 6 Quiz, FIN 320-51 Ch. 7 Quiz, FIN 320-51 Ch 8 Quiz, FIN 320-51 Ch 9 Quiz

View Set