CIS 171 Linux Final

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

Which of the following can be used for comparing values within an if statement? (Choose two.)

-lt =

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

/dev/sdb3

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?

/etc/updatedb.conf

Which of the following would be the results of running the command seq 7?

1 through 7 being displayed one number per line.

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?

19

Which of the following commands will prompt to convert an MBR partition to GPT, thus destroying all existing MBR partitions on a disk?

Gdisk

Which of the following will the split command do on a file when no other options are specified?

It will split a file into new files that are 1,000 lines each.

Which of the following does a Linux kernel use to store the value of epoch time?

The number of seconds since January 1, 1970

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.)

ls -al ~ ls -al /home/wayne

Nicholas wants to verify whether a file is a hard link to a file within the same directory. Which of the following commands could he use to see information that would be helpful to make this determination?

ls -i

Select the command that can be used to provide a long listing for each file in a directory:

ls -l

What command can be used to display the last five lines of a text file?

tail -5

In which directory would a system administrator store scripts that should be run monthly by the cron daemon?

/etc/cron.monthly

What is the complete path and filename for the database that is used by the locate and mlocate commands?

/var/lib/mlocate/mlocate.db

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?

Virtio

What is contained in the DISPLAY variable on a Linux system running the X window system?

Which X server the client is supposed to connect to by default.

What piece of software tells the operating system how to use a specific hardware device?

Device driver

When using command-line terminal, specific letters that start with a dash ("-") and appear after command names are considered to be:

Options

Which of the following environment variables can you change the value of to set the default printer on a Linux system?

PRINTER LPDEST

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

Lrwxrwxrwx

Which of the following can be used to show the block devices on a Linux system?

Lsblk ls /sys/block

A government office wants to secure a few of its Linux systems so that they can only use certain USB devices. After plugging in a USB device, which of the following commands could be used to detect certain identifying information that can be used to only allow that type of USB device?

Lsusb

Which of the following would be a term applicable to an e-mail program on a workstation that is used to view email?

MUA

The mutt software is an example of what type of mail service software on Linux?

Mail User Agent

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?

diff document1.txt document2.txt

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

dmesg

The apropos list command produces the same results as which command below?

man -k list

Which of the following commands will prompt you to answer a series of questions to help determine which time zone file you should use?

tzselect

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?

umount

An alias has previously been created named showauth. Which of the following commands can be used to get rid of that alias?

unalias showauth

Which of the following commands can be used to set the number of days until user account jsmith with an expired password is disabled?

usermod -f 15 jsmith

The Linux kernel exists as a file named:

vmlinuz

Which of the following are true of the echo command?

All of the other options are true.

Which of the following types of encryption uses a pair of keys known as a public and private?

Asymmetric

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?

#

What metacharacter indicates background command execution?

&

Select the regular expression metacharacter that matches 0 or more occurrences of the previous character.

*

Which of the following options will change the ownership of files and directories recursively within a directory? (Choose all that apply.)

--recursive -R

Which of the following files can you add filenames to so that the git add * command will not stage them?

.gitignore

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?

-U

Which of the following entries could be added to the rsyslog.conf configuration file to have all syslog messages displayed to console 10?

. /dev/tty10

Which of the following is not a valid compression file extension for the Linux operating system?

.vz

The System Log Daemon, rsyslogd, creates a socket for other system processes to write to. What is the path to this socket?

/dev/log

Which of the following files is where the default runlevel is set on some Linux systems?

/etc/inittab

Which of the following files is a binary file that contains the rules for calculating the time based on your time zone relative to epoch time?

/etc/localtime

What directory under / contains the log files and spools for a Linux system?

/var

In which file can you configure rules for logging on a Linux system?

/etc/rsyslog.conf

In which of the following directories can you place files that will be copied to new user directories when new users are created?

/etc/skel

What file in the /proc directory contains information about a computer's CPU?

/proc/cpuinfo

The Filesystem Hierarchy Standard specifies what directory as the root user's home directory?

/root

In addition to /etc/localtime, some Linux distributions also have an /etc/timezone text file that contains a reference to the correct time zone file contained in which directory?

/usr/share/zoneinfo

Which of the following files stores information about failed logins on a Linux system?

/var/log/btmp

Where are scheduled commands stored on Ubuntu Linux systems?

/var/spool/cron/atjobs

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

0177

Jan needs to set permissions on a file so that the owner has read, write, and execute permissions. The group should have read permissions only, and everyone else should have no access. Which of the following parameters, when used with the chmod command, would set the permissions described?

740

At the vi command mode prompt, what key combination will force a quit from the vi editor without saving changes?

:q!

When issuing the ls -F command, what special character indicates a linked file?

@

Which of the following commands can be used to display the filesystem and partition UUIDs on a Linux system?

Blkid

Which of the following commands can be used to create a BASH variable named CREATOR with the value of Torvalds?

CREATOR="Torvalds"

Select the command that can be used to change the root filesystem to a different directory, such as when you are in a rescue environment.

Chroot

Which of the following is the default desktop environment used by Linux Mint?

Cinnamon

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?

Clustering

Which of the following key combinations, commonly used in the vi editor command mode, displays current line statistics?

Crl+g

What service provides a method for the efficient transfer of files over the Internet?

FTP

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?

Journald

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

Libvert

When viewing the version number for a Linux kernel, what number indicates the stability of the kernel?

Minor number

What file under the proc directory contains information regarding what modules are currently loaded into the Linux kernel?

Modules

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?

NTP

Proxy servers keep track of the information passed to each client by maintaining what type of table?

Network Address Translation (NAT)

What Linux distribution is the most used distribution within organizations today?

Red Hat

Which kill signal terminates a process by taking the process information in memory and saving it to a file called core on the hard disk in the current working directory?

SIGQUIT

If a Linux installation ends abnormally and the screen displays a fatal signal 11 error, what type of error has occurred?

Segmentation fault

Which of the following does Click Assist do?

Simulates a right click by holding down the left mouse button.

Which of the following accessibility features simulates simultaneous key presses when two keys are pressed in sequence?

Sticky Keys

If enough unique letters of a directory name have been typed, what key can be pressed to activate the BASH shell's completion feature?

Tab

To display a text file in reverse order, what command should be used?

Tac

What two Linux distributions utilize the Debian package manager by default?

Ubuntu Linux Linux Mint

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?

Umount

Which of the following is responsible for starting tasks and services during boot, stopping them during shutdown, and supervising them while the system is running?

Upstart

Which of the following is a lightweight desktop environment that uses very few system resources that a system administrator might choose to install on a Linux server instead of one of the two main desktop environments?

XFCE

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?

YUM

Which of the following is the common escape sequence to display a horizontal tab using the echo command?

\t

Levi wants to run 5 commands sequentially, but does not want to create a shell script. He knows that each command is going to take approximately 20 minutes to run individually. However, he would like to go to lunch 15 minutes from now. He knows that he can type all of the commands on the same line and separate them with a certain character to run them sequentially. Which character can he type after each command to have them run one after the next without requiring further input from him?

a semicolon

Which command can be used to create a new command that will monitor the contents of auth.log as they get added to the file?

alias showauth='tail -f /var/log/auth.log'

A system administrator wants to schedule a task to run at 11 pm, but knows that she will not be in the office at that time. Which of the following commands can she use to schedule this task to run that night while she is at home?

at

Which of the following commands will display a list of the pending jobs to be run?

at -l atq at -q

A calendar for the current month can be shown on the command line by issuing which command?

cal

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

carrot dog elephant banana apple

Which of the following commands will send the output of the cat command to the grep command to be filtered?

cat /etc/passwd | grep jsmith

Which of the following will show account aging information for a user such as the date of the last password change, when the password expires, and the number of days of warning before the password expires?

chage -l jsmith

Which of these commands will set the following permissions on file1.txt? User = Read, Write, Execute Group = Read, Execute Others = Read

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

Select the command that can be used to change the root filesystem to a different directory, such as when you are in a rescue environment.

chroot

Which of the following commands will show the current user cron jobs that have been created for the currently logged in user?

crontab -l

You have run the top command successfully, but realize that the q key on the keyboard has suddenly stopped working. What is another way that you can exit out of the top program?

ctrl-c

Which of the following commands can be used to pause a printer named Printer1?

cupsdisable Printer1

Which of the following commands will display the number of seconds that have elapsed since January 1, 1970?

date +%s

Which of the following commands can be used to remove a group from a Linux system?

delgroup groupdel

Emily accidentally created a new user account on the wrong server. Which of the following commands could she use to delete the account she created?

deluser userdel

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

depmod

Which of the following is the log file where the Debian Package Manager writes entries for actions taken and packages installed?

dpkg.log

You have just created a variable named CREATOR. Which of the following commands will display the contents of the variable to standard output?

echo $CREATOR

After a shell is no longer needed, what command can be given to exit the shell?

exit

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?

ext2

You have started a job running in the background that you want to now bring to the front so that you can watch it execute. Which of the following commands can be used to display the job's output to the terminal?

fg

Which of the following commands can be used to recursively search through the directory tree in search of a file that meets a set of given criteria instead of using an indexed database?

find

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?

find /var/log -user root

Which of the following will display the contents of the /etc/shadow file?

getent /etc/shadow cat /etc/shadow

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?

grep -E "Joe?" document1.txt grep "Joe*" document1.txt grep -E "Joe*" document1.txt

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?

hwclock -c

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

hypervisor

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

i

Which of the following commands can be used to convert files between different character encodings?

iconv

Which of the following constructs can be used in a shell script to determine whether two values are equal and if so run another set of commands?

if

What file in the /proc directory contains a list of memory address ranges reserved for device use?

ioports

Which of the following commands can you use to view events within the journald database?

journalctl

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?

journald

Which of the following commands will send a process's resources to /dev/null to kill the process for process ID 1357?

kill -9 1357

Which of the following commands will show a number of environment variables that start with LC_?

locale

Which of the following commands can be used to display the current locale of a system? (Choose two.)

locale localectl

Which of the following commands can you use to send a print job to printer1? (Choose all that apply.)

lp -d printer1 mydocument.txt lpr -P printer1 mydocument.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?

lpoptions -d printer1

Which of the following commands will display the print jobs in the print queue for printer1 only?

lpstat -o printer1

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?

lsblk

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

lshw

Which of the following commands can be used to see files that are currently being used by a specific process ID (PID)?

lsof

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?

man uname

Which of the following commands can be used to create and manage a software RAID configuration after installation?

mdadm

Which of the following files holds the configuration information for GRUB Legacy on Ubuntu Linux systems?

menu.lst

The subdirectory newdir does not currently exist in the current directory that you are in. Which of the following commands will create a new directory named newdir and then change into that directory? (Choose two.)

mkdir newdir; cd newdir mkdir newdir && cd newdir

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

mkfs exfat /dev/sdb1

Which of the following commands will generate a new initramfs?

mkinitrd dracut

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

modinfo bluetooth

Which of the following is the default window manager used by the GNOME version 3 desktop environment?

mutter

Jim wants to rename a directory for a project that he has been working on. Which of the following commands can he use to perform that action?

mv projectx project

Which of the following commands can be used to terminate a process by the process name?

pkill

Which of the following commands will shut down a Linux system? (Choose all that apply.)

poweroff shutdown -h now telinit 0

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?

print

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?

proxy server

What command is used to display the lineage of a process by tracing its PPIDs until the init daemon?

pstree

Which of the following commands can be used to scan a filesystem for disk usage, create, check, and repair quota files?

quotacheck

Which of the following characters, when pressed while the top program is running, will allow you to change the niceness of a process?

r

While the top command is running, what key can be pressed to change the nice value of a process?

r

Which of the following can be included in a shell script to ask the user to type in a password and then store it in the variable named $password?

read -s -p "Please enter the password: " password

Which of the following commands will display a summarization of quotas for a filesystem?

repquota

Which of the following commands will delete a directory and all of the files contained within it?

rm -rf olddir

Which of the following commands will install a package using the Red Hat Package Manager, showing all information, while printing pound signs to show the progress of installation?

rpm -ivh packagename.rpm

Which of the following commands will show the current runlevel along with the previous runlevel?

runlevel

Which of the following commands can be used to create and activate a swap partition on a Linux system? (Each answer represents part of the whole.)

swapon /dev/sda6 mkswap /dev/sda6

Which of the following commands will count down from 10 to 1?

seq 10 -1 1

Which of the following commands will display the contents of the /etc/passwd file in alphanumerical order?

sort /etc/passwd

Which of the following is a valid method of running a script named myscript.sh? (Choose two)

source myscript.sh ./myscript.sh

Which of the following commands will set the default runlevel of a Linux system?

systemctl set-default runlevel5.target

Which of the following commands will list the time zones available on a Linux system?

timedatectl list-timezones

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?

timeout

Which of the following commands will show a list of process names along with their process ID (PID)? (Choose two.)

top ps

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?

updatedb

Which of the following commands can be used to delete a user account?

userdel

Which of the following commands will count the number of lines in a file named data.csv?

wc -l data.csv

Which of the following server roles does Apache perform?

web server

Which of the following can be used at the command line to download a file using the HTTP protocol? (Choose two.)

wget curl

Which of the following is a special group that provides its members with the ability to run the su and sudo commands?

wheel

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?

xfs_fsr

Which of the following states describe a process that is waiting for a parent process to release its PID?

zombie

What metacharacter can be used to issue two commands to be run in consecutive order, without piping or redirecting output?

|


Conjuntos de estudio relacionados

Chapter 11: Learning, Memory, and Amnesia

View Set

ECON 111- Money and Monetary Policy

View Set

Management Chapter 3 Practice Questions

View Set