Final

Pataasin ang iyong marka sa homework at exams ngayon gamit ang Quizwiz!

9

What kill level signal cannot be trapped?

userdel username

Which command is used to delete a user account?

read

Which construct can be used in a shell script to read stdin and place it in a variable?

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

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?

curl wget

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

nohup

Which of the following can be used preceding a command to prevent a process from terminating when the parent process terminates?

#

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?

userdel

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

rpm -ql packagename

Which of the following commands can be used to list the files contained within an installed RPM package?

!

Which of the following operators reverses the meaning of a test statement?

zombie

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

$2

Which of the following variables could access the value "/etc" within the sample shell script, if the sample shell script was executed using the bash sample /var /etc /bin command?

True

As daemon processes are not associated with terminals, you must use an option such as -e alongside the ps command to view them. True or False?

The answer is not red nor blue.

Consider the following shell script: echo -e "What is your favorite color?--> \c" read REPLY if [ "$REPLY" = "red" -o "$REPLY" = "blue" ] then echo "The answer is red or blue." else echo "The answer is not red nor blue." fi What would be displayed if a user executes this shell script and answers Blue when prompted

userdel deluser

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? (Choose all that apply.

parent process ID

Every process has a process ID and a_______.

/etc/skel

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

True

Most source code is typically available on the Internet in tarball format or as a git repository. True or False?

make

What command looks for a Makefile and uses the information within it to compile the source code into binary programs using the appropriate compiler program for the local hardware architecture?

It redirects both stderr and stdout to the same location.

What does &> accomplish when entered on the command line after a command?

daemon process

What is the name given to a process not associated with a terminal?

/etc/passwd

What is the name of the file that contains a listing of all users on the system and their home directories?

logrotate

What is the name of the utility used to rotate log files?

the print queue accepts jobs into the print queue and holds them there until the printer is enabled again

When a printer is disabled, ________.

newgrp

Which command can be used to temporarily alter the primary group associated with a given user?

top

Which command is used to gain real-time information about processes running on the system, with the most processor-intensive processes listed at the beginning of the list?

-U

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?

r

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

cpio -vicdu -I /dev/fd0

Which of the following commands extracts an archive?

git add

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

sort /etc/passwd

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

echo $?

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

renice -12

Which of the following commands will most likely increase the chance of a process receiving more time slices?

The user performing the commit has not set their Git user information. No files were added to the Git index beforehand. The user performing the commit is not running the command from within the Git repo directory.

You attempt to perform the git commit -m "Added listdir function" but the command fails. What are possible reasons for the failure? (Choose all that apply.)

True

You can lock a user account by changing the default login shell to an invalid shell in /etc/passwd. True or False?

You did not append the stderr to the Error file, and, as a result, it was overwritten when the command was run a second time.

You have redirected stderr to a file called Errors. You view the contents of this file afterward and notice that there are six error messages. After repeating the procedure, you notice that there are only two error messages in this file. Why?

carrot dog elephant banana apple

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

If /etc/at.allow exists, only users listed in it can use the at command.

Which of the following statements is true? (Choose all that apply.)

>>

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

It will split a file into new equally sized files that are 1/10th of the original file size.

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

1 through 7 being displayed one number per line

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

-L

Which option to the dpkg command can be used to list the files that comprise a package?

False

The bzip2 and gzip utilities use similar compression algorithms) True or False?

echo HOME= echo ~ echo $HOME

The current value for the HOME variable is displayed by which of the following commands? (Choose all that apply.)

usermod -L username

Which command can you use to lock a user account?

apt purge test

Which of the following commands can be used to remove the test DPM package, including any test configuration files?

yum search oobla

Which of the following commands can be used to search for packages that contain the word oobla on RPM software repositories?

pkill

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

/etc/rsyslog.conf

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

/etc/systemd/journald.conf

What is the path to where the journald.conf file is located?

authentication

What is the term used to describe a user providing a user name and password to log in to a system?

-P

What option can be added to the dpkg command to remove a specified package from the system, including any configuration files used by the package?

ps

Which command entered without arguments is used to display a list of processes running in the current shell?

passwd -u username

Which command would you use to unlock a user account?

/etc/login.defs

Which file contains default information such as UID and GID ranges and minimum password length to be used at user creation?

.tar.gz

Which filename extension indicates a tarball?

lsof

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

usermod -f 15 jsmith

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

journalctl

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

tar -zcvf /dev/st0 *

Which of the following commands creates an archive?

ldconfig

Which of the following commands should be run following the installation of a shared library to update the /etc/ld)so)conf and /etc/ld)so)cache files?

nl /etc/passwd

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?

lpstat -o printer1

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

rpm -ivh --nodeps package.rpm

Which of the following commands will install an RPM package while ignoring any other packages that it may be dependent upon for proper operation?

kill -9 1357

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

Zypper

Which of the following package managers are used to install RPM packages on the SUSE or openSUSE distributions by default?

2

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

e

Which option to the rpm command can be used to remove a package from the system?

False

5 out of 5 points The Debian Package Manager (DPM) is the default package manager used by Fedora 28) True or False?

True

A for construct is a loop construct that processes a specified list of objects. As a result, it is executed as long as there are remaining objects to process. True or False?

fi

Every if construct begins with if and must be terminated with?

.xz

Files that have been compressed using the xz utility typically have the ______ extension)

You can use the Ctrl+z key combination and the bg command.

How can you bypass the wait function and send a user process to the background?

Begin the line with #.

How do you indicate a comment line in a shell script?

-20 and 19

Nice values are used to affect process priorities using a range between _____________.

True

The -9 option to the gzip utility results in a higher compression ratio) True or False?

/dev/log

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

schedule processes to run at a single instance in the future

The at command is used to _______________.

False

To install a new program from RPM software repositories on the Internet, you can use the dnf update programname command) True or False?

False

To kill a process running in the background, you must place a % character before its process ID. True or False?

False

UIDs and GIDs are unique to the system and, once used, can never be reused. True or False?

zcat

What command can be used to display the contents of a file that was compressed with the compress utility?

dd

Which command can be used to create an image backup of a partition?

dpkg-reconfigure

Which of the following commands can be used to modify configuration options for DPM packages after they have been installed?

cupsdisable Printer1

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

groupdel delgroup

Which of the following commands can be used to remove a group from a Linux system? (Choose all that apply.)

if

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?

/etc/profile

Which of the following files is always executed immediately after any user logs in to a Linux system and receives a BASH shell?

wheel

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

username

Which of the following is the first field of the /etc/passwd file?

/etc/apt/sources.list

Which of the following is the full path and file name where the Debian Package Manager repositories can be configured?

cd /home/user1 && echo "welcome home"

Which of the following will display the message welcome home if the cd /home/user1 command is successfully executed?

0, 1, 2, 3, 4

You have created a full backup and four incremental backups) In which order must you restore these backups?

forking

A process spawning or initiating another process is referred to as _____.

is a rogue process

A runaway process that is faulty and consuming mass amounts of system resources ________.

fg

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

make install

After compiling source code, which command still needs to be run in order to copy the newly compiled binaries into a directory listed in the PATH variable as well as copy supporting files (such as man pages) to the correct location on the filesystem?

False

Along with a listing of user accounts, the /etc/passwd file contains information on account expiry. True or False?

unalias showauth

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

True

The sed and awk commands are filter commands commonly used to format data within a pipe. True or False?

crontab

What command is used to view and modify user jobs scheduled to run with cron?

19

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?

dnf.rpm.log

Which of the following is the log file where Dandified YUM writes its log entries?

/var/log

Most log files on the system are found in which directory?

journalctl

What command can you use to view journald log entries on a system that uses Systemd?

When you use the cat command at the command prompt with the intention of viewing a text file, the date appears instead.

What would be the effect of using the alias command to make an alias for the date command named cat in honor of your favorite pet?

the print queue does not accept jobs and sends a message to the user noting that the printer is unavailable

When a printer is rejecting requests,____________.

not make install

When compiling source code into a binary program, which command does the compiling using the GNU C Compiler?

./configure

When compiling source code into a binary program, which command performs a system check and creates the Makefile?

facility, priority

When referring to the /etc/rsyslog.conf file, __________ specifies information from a certain area of the system, whereas ________ is the level of importance of that information.

There is a question mark in the TTY column.

When you run the ps command, how are daemon processes recognized?

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

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?

jobs

Which command can be used to see processes running in the background?

0

Which dump level indicates a full backup?

False

Because stderr and stdout represent the results of a command and stdin represents the input required for a command, only stderr and stdout can be redirected to/from a file. True or False?

exported

Before a user-defined variable can be used by processes that run in subshells, that variable must be __________.

True

Both aliases and functions can be used to store commands that can be executed, but functions can also accept positional parameters. True or False?

`command` $(command)

Which of the following lines can be used to perform command substitution within a shell script? (Choose all that apply.)

init/systemd

Which process has a PID of 1 and a PPID of 0?

ctrl-c

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?

all instances of a process with the same name matched by a regular expression

The pkill command terminates _________.

printing

The process of sending print jobs from the print queue to the printer is called _____.

False

You can clear a log file simply by redirecting nothing into it. True or False?

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?

cancel Printer1-17 Printer1-21

You use lpstat and determine that a user named User1 has placed two large print jobs in the queue for Printer1 that have yet to start printing. They have print job IDs of Printer1-17 and Printer1-21, respectively. Which command would you use to remove these two jobs from the print queue?


Kaugnay na mga set ng pag-aaral

Chapter 7 - Implementing Strategies: Management, Operations, and Human Resources Issues

View Set

HCS 212 Chapter 13 : The Nervous System: Neural Tissue

View Set

Review Assignment - Subject 8: Three Phase Transformers

View Set

Texas Real Estate License Act - Chapter 7

View Set

Kozier and Erbs Fundamentals of Nursing Ch 36

View Set

Comp 2140 Algorithm Analysis / Asymptotic Notation

View Set

Exam 3 Nutrition IIEnergy Expenditure, Body Composition, and Healthy Weight

View Set