Linux final EOC

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

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?

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

userdel username

Which command is used to delete a user account

.tar.gz

Which filename extension indicates a tarball?

ufw status

Which of the following UFW commands can be used to view configured firewall rules?

Ensure that only necessary services are running

Which of the following actions should you first take to secure your Linux computer against network attacks?

Apache DNS

Which of the following are stand-alone daemons? (Choose all that apply.)

ssh-X VNC

Which of the following can be used to provide graphical remote administration? (Choose all that apply.)

vmstat sar free

Which of the following commands can be used to display memory statistics? (Choose all that apply.

rpm -ql packagename

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

apt-get remove test

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

If /etc/at.allow exists, only users listed in it can use the at command. If /etc/cron.allow exists, only users listed in it can use the cron command. If /etc/cron.deny exists and /etc/cron.allow does not exist, any user not listed in /etc/cron.deny can use the cron command.

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

Delegate responsibility

Which of the following steps is not a common troubleshooting procedure?

init/systemd

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

ssh-copy-id ssh-keygen

You want to generate SSH keys for your user account and copy them to a remote computer to simplify future SSH authentication. What two commands can you use to perform these actions? (Choose two answers.)

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?

forking

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

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

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?

default gateway

Before a computer can use a router, what configuration information must it be provided?

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?

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?

/var/log

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

true

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

false

Network latency issues are often caused by SELinux or AppArmor restrictions. True or False?

true

SSH encrypts all traffic that passes across the network, whereas telnet does not.

Schedule processes to run at a single instance in the future

The at command is used to

false

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

echo~ echo $HOME

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

port

The daemons associated with network services listen for network traffic associated with a particular

true

The line that configures the host name for the computer at boot time can be found in /etc/hostname.

false

The pam_tally2.so PAM can be used to enforce complex passwords on a Linux system. True or False?

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

true

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

Lock the server in a server closet. Ensure that SELinux or AppArmor is used to protect key services.

What are best practices for securing a local Linux server? (Choose all that apply.)

DNS /etc/hosts

What are two means available to resolve a host name to the appropriate IP address? (Choose two answers.)

journalctl

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

Crontab

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

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

INPUT

What type of iptables chain targets traffic that is destined for the local computer?

Take 50 swap statistics every 3 seconds.

What will the command sar â "W 3 50 do?

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 accept jobs into the print queue and holds them there until the printer is enabled again

When a printer is disabled

Bad, because the processor is idle 10 percent of the time and perhaps a faster CPU is required

When performing a sar â "u command, you notice that %idle is consistently 10%. Is this good or bad?

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.

false

When the fsck command cannot repair a non-root ( / ) filesystem, you should immediately restore all data from backup. True or False?

There is a question mark in the TTY column

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

jobs

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

lp -d Printer1 file lp file

Which command can be used to send a print job to the default printer named Printer1? (Choose all that apply.)

newgrp

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

ulimit

Which command can increase the number of filehandles that programs can open in a shell?

usermod -L username

Which command can you use to lock a user account?

set

Which command could you use to see a list of all environment and user-defined shell variables as well as their current values?

usermod -U username

Which command would you use to unlock a user account

mtr

Which commands can be used to display TCP/IP connections on your Linux system? (Choose all that apply.)

read

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

0

Which dump level indicates a full backup?

nmap

Which of the following commands can be used to scan the available ports on computers within your organization?

yum search oobla

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

tar -zcvf /dev/st0 *

Which of the following commands creates an archive?

cpio -vicdu -I /dev/fd0

Which of the following commands extracts an archive

renice -12

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

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

sa19

Which of the following files is likely to be found in the /var/log/sa directory on a Fedora system over time?

22

Which of the following port numbers is associated with SSH?

ifconfig ping netstat -i

Which of the following utilities can be used to check TCP/IP configuration and test network connectivity? (Choose all that apply.)

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?

route ip

Which two commands can be used to modify the route table on a Linux computer? (Choose two answers.)

No files were added to the Git index beforehand.The user performing the commit has not set their Git user information.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 clear a log file simply by redirecting nothing into it. True or False

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

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?

false

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

loopback address

The IP address of 127.0.0.1 is also referred to as the

false

The NetworkManager or Systemd-networkd components must be installed on a Linux system in order to configure an IP address on a network interface.

/etc/sudoers

Which file contains information regarding the users, computers, and commands used by the sudo command?

True

To set udev rules on a Linux system, you must add the appropriate line to a file within the /etc/udev/rules.d directory. True or False?

/etc/login.defs

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

/etc/nsswitch.conf

Which file holds the methods to be used and the order in which they will be applied for host name resolution?

false

Standalone daemons are started on demand using xinetd.

true

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

nslookcup hostname dig hostname

To test DNS configuration by resolving a host name to an IP address, which command or commands can you use? (Choose all that apply.)

authorization

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

9

What kill level signal cannot be trapped?

make

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?

/var/spool/cron/username

Where are individual user tasks scheduled to run with the cron daemon stored on a Fedora system?

putty

Which Windows program is often used to connect to a Linux server via SSH?

dd

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

ps

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

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?

/etc/resolv.conf

Which file stores the IP addresses of the DNS servers used to resolve host names if no DNS servers are specified within the network configuration file for the network interface?

/etc/sysconfig/network-scripts/ifcfg-enp8s0

Which file would you modify to permanently change the IP address of a network interface on a Fedora 28 system

firewall-cmd --add-service ssh --permanent

Which of the following firewalld commands can be used to allow incoming SSH connections the next time the system is booted?

false

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

exported

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

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?

is a rogue process

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

parent process ID (PPID)

Every process has a process ID and a

-20 and 19

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

monitoring

On which part of the maintenance cycle do Linux administrators spend the most time?

`command` $(command)

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

!

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

LUKS GPG

Which of the following technologies can encrypt files stored on a filesystem within a Linux system? (Choose all that apply.)

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?

Z

Which option can be added to the ls or ps command to view the SELinux label?

-L

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

-e

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

0, 1, 2, 3, 4

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


Conjuntos de estudio relacionados

math formulas, Sample questions, chapter 11 -19, chapter 11 -16, REAL ESTATE CHAPTER 1-5, chapter 6-10

View Set

PSYC 3341 Chapter 3: Anatomy and Research Methods

View Set

Network Administration - practice test

View Set