Linux 3rd Quiz, CH.8-10

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

When there are multiple background processes executing in the shell, the jobs command indicates the most recent one with which symbol?

+

A user account can be locked with the usermod command using what option?

-L

To display an entire list of processes across all terminals and including daemons, you can add the ____ option to any ps command.

-e

In order to display a list of at job IDs, what option can be specified to the at command?

-l

To display a list of at Job IDs, you can specify the ____ option to the at command.

-l

What option can be used with the lpstat command to display a list of printers that are enabled?

-p

Where is the skeleton directory located on most Linux systems?

/etc/skel

The secure log file contains information regarding the last user to log in to a system.

False

What signal name and number function as the absolute kill signal, and when issued, forces the Linux kernel to stop executing the process by sending the process's resources to /dev/null?​

SIGKILL 9

What System Log Daemon priority indicates an error that should be rectified immediately, such as a corrupt system database?

alert

What character is used to delimit most Linux configuration files?

colon

What two window managers is the Compiz Fusion window manager based upon?​

compiz beryl​

You can restrict who can print to certain printers by using the ____ command.

lpadmin

What option can be used in the journal configuration file to specify a file size limit to the event log?

maxuse

A(n) ____________________ refers to a program that is running in memory and on the CPU.

process

In the process state column, what does an "R" indicate?

process is running

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

pstree

A system that uses and /etc/passwd file only can be converted to use /etc/shadow for security by using what command?

pwconv

To convert a system so that it uses an /etc/shadow file to store the encrypted password after installation, you can run the ____ command.

pwconv

What keyword tells the Linux kernel to avoid printing errors to the screen during system startup?​

quiet

Processes that have encountered an error during execution and continuously uses up system resources are referred to as ____________________ processes.

rogue

The ____ field in a cron table contains the absolute pathname to the command to be executed.

sixth

In order to change keyboard layout if X Windows can't detect the layout, you should use what CLI command?

system-config-keyboard

​When using Systemd, what command can be used to start, stop, and configure daemons to start automatically when the system starts?

systemctl

You can choose to use a window manager only, and not use a desktop manager. true or false

true

The ____ option to the ps command displays all processes that do not run on terminals.

x

CUPS contains versions of the lpr, lpc, lpq, and lprm commands.

True

If the /etc/at.allow and /etc/at.deny files do not exist, only the root user is allowed to schedule tasks using the at daemon.

True

If you are using a Linux boot loader to dual boot another operating system in addition to Linux, it is easiest if Linux is installed after the other operating system has been installed.

True

in a decision construct, you can have an unlimited number of if then statements.

True

Name the three main types of Linux commands?

binary programs, shell scripts, shell functions NOT device calls

_____ represents a text description of the user and is typically left blank.

GECOS

On Linux systems that use the traditional ​UNIX SysV init, what command below can be used to list and modify the runlevels that a daemon is started in?

chkconfig

What option can be used with the ps command to display an entire list of processes across all terminals and including daemons?

e

A list of all exported environment and user-defined variables in a shell can be viewed with what command below?

env

Shell variables that are typically set by the system and contain information that the system and programs access regularly

environment variables

The /etc/rc.d/rc 5 script only executes files that start with S in the /etc/rc.d/rc5.d/ directory. true or false

false

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

fg

In a process referred to as ____________________, when executing compiled programs or shell scripts, the BASH shell that interprets the command you typed creates a new BASH shell.

forking

What command below can be used to re-install GRUB2 in the event that the boot loader becomes corrupted?​

grub2-install

When viewing the output of the ps ax command, what does a < symbol in the STAT column indicate for a process?

high priority

In the /etc/lilo.conf file, what keyword should be specified in order to provide the absolute pathname to the Linux kernel?

image=

In order to send a print job to a printer using CUPS, what command must be used?

lp

To send a print job to a printer, you must first use the ____ command and specify what to print.

lp

Which command should be used to restrict access to printers?

lpadmin

what command added to the -t option to will provide a list of all printers on the system and their status?

lpstat

To change the primary group temporarily to another group that is listed in the output of the groups and id command, you can use which command?

newgrp

To change the primary group temporarily to another group that is listed in the output of the groups and id commands, you can use the ____ command.

newgrp

Which utility can be used to modify runtime configuration files so that they start and stop daemons when entering a particular runlevel?

ntsysv

A set of information that is sent to a printer at the same time is called a(n) _____.

print job

What log file contains information and error messages regarding network access generated by daemons such as ssd and xinetd?

secure

What two BASH environment variables represent the current working directory, and the absolute pathname of the current shell, respectively?

shell pwd

Each process can start an unlimited number of other processes. true or false

true

The BASH shell assumes stdout in the absence of a numeric file descriptor.

true

You can use the sed command to remove unwanted lines of text. true or false

true

Zombie processes are also known as defunct processes.​ true or false

true

In order to create user account on a Linux system, what command should be utilized?

useradd

What file controls the default runlevel when using Systemd?​

​/etc/systemd/system/default.target

On a Fedora based system, where are the shell environment and scheduled commands for at stored?​

​/var/spool/at

What two processes below will show up as PID 1, depending on whether a system uses UNIX SysV or Systemd init processes?

​init ​systemd

What can be used on a Linux system to trace the lineage of each child process?​

​parent process ID

The amount of time a process has to use the CPU is called a(n) ____________________.

time slice

What is the default target on a system with a GUI installed?​

graphical.target

The _____ facility used by the System Log Daemon specifies message from the Linux kernel.

kern

What option should be used in conjunction with the lp command in order to specify the destination printer name?

-d

What option can be used with the ps command to display an entire list of processes across all terminals and including daemons?

-e

What option, when added to the crontab command, opens the vi editor with a user's cron table?

-e

If your system uses the X.org implementation of X Windows, the mouse, keyboard, monitor, and video adapter card information is stored in the ____ file in text format.

/etc/X11/xorg.conf

The skeleton directory on most Linux systems is ____.

/etc/skel

What configuration file contains parameters that set the default location for e-mail, password expiration information, minimum password length and the range of UIDs and GIDs available for use?

/etc/login.defs

What environment file is always executed immediately after login for all users on the system, and sets most environment variables, such as HOME and PATH?

/etc/profile

After the entries in /etc/inittab have been executed, the ____ file is executed to perform tasks that must occur after system startup.

/etc/rc.d/rc.local

On a Fedora based system, where are the shell environment and scheduled commands for at stored?

/var/spool/at

At what runlevel does a Linux system have no daemons active in memory, allowing it to be safely powered off?

0

On Linux, the root user always has a UID of what number?

0

Processes are started with what nice value by default?

0

The file descriptor stdin is represented by the number ____.

0

In Linux, runlevel ____ is also known as multiuser mode.

2

What number represents the stderr file descriptor?

2

The GUI components and related software take up how much space on a typical Linux installation?

4GB

You can redirect a file to the standard input of a command using the ____ metacharacter.

<

What can be used on a Linux system to trace the lineage of each child process?

ppid

The lp command uses the ____ option to specify the destination printer name.

-d

Administrators most commonly use a(n) graphical user interface.

False

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

Logs from cron daemon (crond) can be view using the command journalctl _COMM=crond

True

The ____ escape sequence represents a form feed.

\f

What command can be used to configure the LILO, ELILO, GRUB, and GRUB2 bootloaders?​

grubby

What kill signal stops a process, then restarts it with the same PID?

sighup

In a cron table entry, what field specifies the absolute pathname to a command that is to be executed?

sixth

You can create user accounts on the Linux system by using the ____ command.

useradd

Select the two commands below that will provide the number of lines in a file, and the number of characters in a file, respectively:​

wc -l wc -c

Once X Windows is configured, what command can be used to fine tune the vertical and horizontal refresh rate?

xvidtune

What number indicates the lowest kernel priority (PRI) of a process possible?

127

What number indicates the lowest kernel priority (PRI) of a process possible?​

127

In Linux, what runlevel is also known as the multiuser mode?

2

The System Log Daemon uses what TCP and UDP port to accept incoming requests from another System Log Daemon on a remote system?

514

The CUPS Web administration tool can be accessed via web browser by accessing what TCP port?

631

How many different kill signals can be sent by the kill command to a given process?

64

The standard output and standard error from a terminal screen within the BASH shell can be redirected to a file on the filesystem using what shell metacharacter, followed by the absolute or relative pathname of the file?

>

Given the syntax command && command, the command on the left of the && construct is executed only if the command on the right of the && construct completed successfully.

False

Most printers are Plug and Play compatible and must be manually configured when they are plugged into the system.

False

On most Linux systems, the logrotate utility is automatically scheduled to run weekly.

False

The /etc/rc.d/rc 5 script only executes files that start with S in the /etc/rc.d/rc5.d/ directory.

False

The init daemon has a PID of 0.

False

The killall command uses the PID to kill a process.

False

The ps command is the only command that can view process information.

False

Using one boot loader to boot one of several operating systems is known as multi-booting.

False

You are limited to using one pipe | metacharacter on the command line to pipe information from one command to another command.

False

What kill signal stops a process, then restarts it with the same PID?

SIGHUP

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

____ of the GRUB boot loader typically resides on the Master Boot Record.

Stage 1

CUPS contains versions of the lpr, lpc, lpq, and lpm commands.

True

Each process can start an unlimited number of other processes.

True

When you print to a printer class, the print job is send to the first available printer in the printer class.

True

While a process is waiting for its parent process to release the PID, the process is said to be in a(n) zombie state.

True

You can choose to use a window manager only, and not use a desktop manager.

True

Zombie processes are also known as defunct processes.

True

In the process called _____, a user's user name and password are checked against a system database that contains all user account information.

authentication

Name the three main types of Linux commands?

binary programs, shell scripts, shell functions

On a CUPS printing system, to remove a print job that is in the print queue, you can use the _____ command followed by the print job IDs of the jobs to remove.

cancel

Most configuration files on Linux systems are delimited using ____ characters.

colon

The default BASH shell prompt is set by an environment variable. What command can be used to view this variable?

echo $PS1

What priority used by the System Log Daemon indicates a very serious system condition that would normally be broadcast to all users?

emerg or panic

After a background process has been started, it can be moved to the foreground by using the ____ command.

fg

After modifying the /etc/default/grub file, what command should be run to rebuild the grub config files?​

grub-mkconfig

The first line in a shell script, which specifies the pathname to the shell that interprets the contents of the shell script.

hashpling

Select the two window managers that have been used in GNOME:​

metacity ​mutter

The GNOME 3 desktop environment utilizes what window manager and toolkit below?

mutter ​GTK+ toolkit

The ____________________ can be used to affect the process priority indirectly.

nice value

In the output of the ps -l command, the ____ column is the most valuable to systems administrators because it indicates what the process is currently doing.

process state

In the output of the ps -l command, what column is the most valuable to systems administrators because it indicates what the process is currently doing?

process state

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

pstree

Which command below can be used to start, stop, or restart any daemons in the /etc/init.d directory?

service

The environment variables that are set by default and their current values can be viewed with what command?

set

Any command that can be executed on the command line can also be placed inside any environment file. true or false

true

​Much like the SysV init daemon, the Systemd init daemon is used to start daemons during system initialization as well as start and stop daemons after system initialization. True or false

true

The K desktop environment utilizes what window manager and toolkit below?​

​kwin Qt toolkit

What option can be added to the userdel command to remove the home directory of the target user?

-r

What is the default print job priority for all print jobs created by the lp command?

50

To clear a log file, you can use a(n) < redirection symbol.

False

Users can create their own custom variables, called shell variables.

False

What stage of the GRUB boot loader typically resides on the MBR / GPT?

Stage 1

You can use the sed command to remove unwanted lines of text.

True

the ability to extract, manipulate, and format text using pattern action statements belongs to which command below?

awk

To create an encrypted password for use in the /boot/grub/grub.conf, you can use the ____ command

grub-md5-crypt

What command below can be used to uninstall the LILO bootloader from an active partition?​

lilo -U

Processes are started with what nice value by default?

o

To see a list of the environment variables and their current values on a system, you can use the ____ command.

set

Files that are typically used to create custom programs that perform administrative tasks on Linux systems.

shell scripts

Under what directory is the Linux kernel stored?

/boot

In Fedora 20, where are user configured settings for Xorg stored?​

/etc/X11/xorg.conf.d/

Any line that starts with a(n) ____ character is a comment in the /etc/rsyslog.conf file.

#

When killing a background job with the kill command, the background job ID must be prefixed by what character below?

%

What character, when appended to a command, causes the command to be run in the background?

&

When you append a(n) ____ to a command, the command is run in a background process.

&

In standard GRUB notation, select the option below that represents the first hard drive in a system, and the first partition on that hard drive.​

(hd0,0)

What option can be used with the ps command to display an entire list of processes across all terminals and including daemons?

*e

The two most common desktop environments that are used on Linux are ____ and ____.

KDE; GNOME

The ____ kill signal stops a process and then restarts it with the same PID.

SIGHUP

After a process has been started, you can change its priority by using the renice command.

True

Aliases are shortcuts to commands stored in special variables that can be created and viewed using the alias command.

True

Any command that can be executed on the command line can also be placed inside any environment file.

True

____ is a freely available version of X Windows used in many Linux distributions.

XFree86

Select the test statement that can be used to determine if A is numerically greater than B:

[ A -gt B ]

Select the escape sequence that is used for a form feed:

\f

In an if construct, what statements are optional?​

elif else


Ensembles d'études connexes

CNT150:Chanpter 8: IPv6 GUA Assignment

View Set

Social Psychology Exam 3- Short Answers Q's

View Set

confident driving instruction WA (for sure on tests)

View Set

Nursing Care of the Child With an Alteration in Cellular Regulation/Hematologic or Neoplastic Disorder

View Set

Intersection of a column and a row.

View Set

Ch.3 Careers in Health Science (Short Answers)

View Set

CJC STATS CHRISTMAN BALL STATE FINAL

View Set