CIT352 Exam 3 study

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

What FTP command runs a shell on the local computer?

!

​Where is the default document root directory for the Apache web server?

/var/www/html

In NTP, what stratum consists of atomic devices or GPS clocks?

0

Which one is NOT a step in setting up a user account on a Linux system?

Mount a USB drive for the user

Find the match.

SIGHUP 1 SIGINT 2 SIGKILL 9 SIGTERM 15

Docker uses _________ technology.

Container

Which one is NOT a Linux compression tool?

zap / unzap

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

-20 and 19

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

-e

Under which conditions can user1 schedule a command using at command? (Select two)

/etc/at.allow does not exist. /etc/at.deny exists with user2 in it, not user1 /etc/at.allow exists with user1 in it. /etc/at.deny also exists with user1 in it

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

/etc/login.defs

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

/etc/passwd

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

/var/log

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

/var/spool/cron/username

Match the level to the priority.

0 emergency 1 alert 2 critical 3 error 4 warning 5 notice

When will the following entry in the user crontab be executed? 1 2 3 4 * /bin/go_catch_Pokemon

1 minute after 2 am on the 3rd of April

What kill level signal cannot be trapped?

9

What is a shared library? (Select two)

A binary file that contains function calls that are used by multiple applications Placed under /lib/ or /lib64/ directory typically

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

jobs

What kind of servers resolve fully qualified domain names to IP addresses for a certain namespace on the Internet?

DNS

What directive below in Apache's httpd.conf file specifies that the index.html file in the document root directory will be sent to clients who request an HTML document?

DirectoryIndex index.html

Which methods describe a typical Linux software installation process? (Select two)

Download a tarball, and manually extract, compile, and install Download a package and let the package manager extract and install.

A process may have multiple parent processes.

False

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

False

Incremental backups back up the data that has been changed since the last full backup

False

Incremental backups back up the data that has been changed since the last full backup.

False

Only the administrator can display the content of /etc/passwd

False

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

False

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

False

When the same program is executed twice it will have the same PID.

False

Find the match for the fields in /etc/passwd. # getent user1 passwd user1:x:1000:1000:Adam Smith:/home/user1:/bin/bash

Field 1 user id Field 2 password Field 6 Home directory Field 7 shell

Which of the following statements is true?

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 describe journald? (Select two)

One log file for almost all system services Uses journalctl to view/extract log entries

Which statements are true regarding packages and package mangers. (Select two)

Red Hat Package has the extension of .rpm rpm is the command to run Red Hat Package Manager

Which statements describe logrotate? (Select two)

Renames log files with a numeric or date extension before creating a new one. Older log files beyond the specified logging cycle are removed

Which one is NOT a typical step involved in compiling and installing software on Linux?

Run "install" shell script

The Apache daemon listens for HTTP requests on what port by default?

TCP 80

Which one is NOT a common cloud architecture?

Taas

Which statements are true? (Select two)

The lower the nice value is, the higher the chance will be for the specified process to receive more time slice. An owner of a process can "be nice" to other processes by increasing the nice value.

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

There is a question mark in the TTY column.

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

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

dnf resolves package dependencies automatically

True

How can you bypass the wait function and send a user process to the background once it was started as a foreground process?

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

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

newgrp

Every process has a process ID and a

parent process ID

Which commands could you use to (effectively) lock a user account? (Select three)

passwd -l <userid> usermod -L <userid> usermod -s /sbin/nologin <userid>

Which command would you use to unlock a user account?

passwd -u username

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

printing

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

ps

Which commands can you use to view process information? (Select two)

ps top

The at command is used to

schedule processes to run at a single instance in the future

What command do you use to add a user with the default home directory?

useradd -m <userid>

What command do you use to delete a user account along with his/her home directory?

userdel -r <userid>

Which command is used to delete a user account?

userdel username

Which command can you use to lock a user account?

usermod -L username

The pkill command terminates

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

Which one is NOT a Linux scheduling tool?

anat

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

authentication

Which statements are true as you examine the following output? (Select two) [user1@linux]$ ps -f UID PID PPID C STIME TTY TIME CMD user1 5994 2670 0 14:47 pts/2 00:00:00 bash user1 6878 5994 0 17:04 pts/2 00:00:00 ps -f

bash was blocked while the ps command was running The command $ ps -f given at the bash command prompt is shown as the ps -f process in the output

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?

cancel Printer1-17 Printer1-21

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

daemon process

Which commands can you use or could you have used to install a package on Fedora? (Select three)

dnf rpm yum

Find the match

dnf install <package> = Install <package> dnf list <package> = Check if <package> is installed dnf upgrade <package> = Update <package> dnf remove <package> = Delete <package>

Find the match

dnf install <package> install <package> dnf list <package> Check if <package> is installed dnf upgrade <package> update <package> dnf remove <package> Delete <package>

Which one is NOT a Linux backup tool?

ee

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.

facility, priority

What command do you use to display all the groups a user belongs to? (Select three)

grep <userid> /etc/group id <userid> getent group | grep <userid>

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

init/systemd

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

is a rogue process

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

journalctl

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

logrotate

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

lp -d Printer1 file lp file

What ftp command uploads the filename from the current directory on the local computer to the current directory on the remote computer, and allows the use of wildcard metacharacters to specify the filename.

mput

Which command is used to extract the tarball?

tar -zxvf gimp-2.10.14.tar.gz

How do you bring the "sleep 500" process to the foreground?

$ fg %2

How do you display the background processes running in the current shell?

$ jobs

How do you start a sleep command to run in the background?

$ sleep <time> &

Why does everyone have 'x' in the password field of /etc/passwd file?

'x' means the actual password is saved in /etc/shadow

What will be in (1), (2), (3), (4)? #! /bin/bash # # Kill a specified process # Usage: killp <killsig> <PID> function kill_a_process () { echo "DEBUG: PID= (3) KILLSIG= (4)" } kill_a_process (1) (2)

(1) $1, (2) $2, (3) $2, (4) $1

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

crontab

Which command below can be used at a BASH command prompt to obtain a web page?

curl

Which one is NOT a typical program used on a Linux server to download a tarball?

firefox

A process spawning or initiating another process is referred to a

forking

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

renice -12

Which of the following commands creates a zipped archive?

tar -zcvf /dev/st0 *

Which one is NOT a command used to terminate a process or processes?

terminate

When a printer is disabled, ________.

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

When a printer is rejecting requests,____________.

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

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?

top


Ensembles d'études connexes

Section 7, Unit 4: Mortgage Lending Tax Impacts

View Set

Chapter 11 - Death And Bereavement

View Set

Lecture 10 (31/3) - Initiation, Planning

View Set