Linux+ chp6-9 quiz's

अब Quizwiz के साथ अपने होमवर्क और परीक्षाओं को एस करें!

Which of the following is an on-screen keyboard used with Linux?

GOK

Which of the following system variables can you modify to override the default system timezone within your current shell?

TZ

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.

Which of the following commands will display the exit status of the last command used in the BASH shell?

echo $?

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

sort /etc/passwd

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

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

pstree

Which of the following characters, when pressed while the top program is running, will allow you to change the niceness 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 is the common escape sequence to display a horizontal tab using the echo command?

\t

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?

#

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

.gitignore

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?

/etc/cron.deny

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

/etc/cron.monthly

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

Match the file with the order in which the BASH shell environment files are read: First Second Third Fourth

/etc/profile /etc/profile.d/* /etc/bashrc ~/.bashrc

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

/proc/cpuinfo

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?

/proc/meminfo

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

Where are scheduled commands stored on Ubuntu Linux systems?

/var/spool/cron/atjobs

Which of the following represents stderr at the command line when used for redirection?

2

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

= -lt

Which of the following will take output from a command and append it to the end of a file?

>>

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

CREATOR="Torvalds"

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

Cinnamon

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 equally sized files that are 1/10th of the original file size.

Which of the following options is passed to the Linux kernel from the GRUB2 configuration file to set the locale?

LANG

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

Which of the following is a valid Linux initialization process?

Systemd SysV

Each SCSI device attached to a system must be assigned an ID number. What is this ID number called?

Target ID

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

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 command can be used to remove a job from the list of pending jobs? (Choose all that apply.)

at -d at -r atrm

Which of the following commands will display a list of the pending jobs to be run? (Choose all that apply.)

atq at -l at -q

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 commands will display the current CPU(s) detected by a Linux system?

cat /proc/cpuinfo

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 command should you run after installing a new kernel module to update the module dependency database?

depmod

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

dmesg

After a background process has been started, what command below can be used to move it to the foreground?

fg

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

When writing shell scripts and using an if statement to determine whether a set of code should be executed, what is the proper syntax to end the if construct? ___________

fi

Which of the following commands should you use to specify that you want to use Git for version tracking on them?

git add

Which command can be used to download an updated copy of the master branch from the original Git repository?

git pull origin master

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?

grep root /etc/passwd | tee ~/root.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

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 be used to only show jobs that have been paused.

jobs -s

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

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

libvert

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

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

What command is used to manage a software RAID configuration after installation?

mdadm

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

mdadm

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

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

modules

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

mutter

Which of the following commands will display the output of a file while also displaying a line number at the left side of each line for the /etc/passwd file?

nl /etc/passwd

Which of the following virsh commands will display the total amount of memory as well as the amount of free memory for a node?

nodememstats

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

pkill

Which of the following commands will show the current runlevel along with the previous runlevel? (Choose all that apply.)

runlevel

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

seq 10 -1 1

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 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?

sysfs

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 display a list of Systemd units sorted by the time they took to load?

systemd-analyze blame

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

timedatectl list-timezones

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

top ps

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

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

unalias showauth

How many times will the following loop execute as part of a script: #!/bin/bash COUNTER=0 while [ $COUNTER -lt 7 ] do echo "hello world" done

until ctrl-c is used to terminate it

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

Which of the following commands can be used to schedule very frequent recurring tasks, such as running once every minute?

watch

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

wc -l data.csv

Using the syntax below, what command will create directories named one, two, and three? ​ echo one two three | ___________ mkdir

xargs

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

zombie

If incompatible X Windows settings are configured, where will the errors that are generated be written to?

~/.xsession-errors


संबंधित स्टडी सेट्स

Recreational Dive Planner - Metric

View Set

Intro to Marketing HW #5 questions

View Set

pharm prepu 29: Drug Therapy for Shock and Hypotension

View Set

EXS420 Chapter 19 Quiz Study Guide

View Set

IS-0700.b An Introduction to the National Incident Management System

View Set