Linux Review Test 4

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

When killing a background job with the kill command, you must prefix the background job IDs by a(n) ____.

%

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

&

When there are multiple background processes executing in the shell, the jobs command indicates the most recent one with a(n) ____ symbol.

+ (plus sign)

To create or edit a user cron table, you can use the ____ option to the crontab command.

-e

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

-e

Processes are started with a nice value of ____ by default.

0

Write the code that would run a cron job named newJob everyday at 8 and 5 every week day Monday through Friday all year long.

0 8,17**1-5 -e

There are ____ different kill signals that the kill command can send to a certain process.

64

Why would you want to schedule commands? What methods are available for scheduling commands?

Because you might want to run certain commands during non-business hours which will run them while you're not at work. You can use the "at" command or the "at now" or "atd" So you don't have to get up in the morning to run them, in case you have something that needs to be ran every minute. Methods are at and cron. At can only the run a command 1 time.

Explain in as much detail as possible the boot process from the time that you push the on button until you login.

Computer loads the BIOS Goes looking for the boot loader, when it finds this it will load the admit daemon, then makes sure everyone is happy, then loads everyone with a login screen.

The "sighup" command uses the PID to kill a process.

False. It starts it, it doesn't kill it.

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

False. You can use talk

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

How does the nice value affect process priority? How and why can nice values be altered?

You can use the renice or r when you are in top, run a regular command when you're in nice. Because the nicer it is the nicer it is to others.

Write the code that would run date at 4:30 tomorrow.

at 4:30pm 02/03/2018

A system process that is not associated with a terminal is called a(n) ____.

daemon

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

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

nice value

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

process

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

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

sixth

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

time slice

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

zombie

Each process can start an unlimited number of other processes.

True

Describe the system cron table. How it is organized, and what information may be contained within it?

Linux systems are typically scheduled to ran many commands during nonbusiness hours. These commands might perform system maintenance, back up data, or run CPU-intensive programs. The initial section of the cron table specifies the environment used while executing commands. The remainder of the file contains comments that identify the format of a cron table entry. You can also place a con table with the same information in the /etc/cron.d directory. Organized by users, Info in it, the time and command or when/what

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

SIGHUP

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

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

True


Ensembles d'études connexes

MDR orgs like MRSA, susceptibilities, antibiotics, drug resistance, drug mechanisms

View Set

Information Research: Citation Formatting

View Set

Business Law 1 // Ch. 16 The Writing Requirement in Our Digital World

View Set

Lesson 4 homework endocrine system

View Set

The Spleen (Davies Board Review)

View Set

Managerial Accounting Homework Chapter 3

View Set

Art MO4 quiz ch 10, Art MO3, ART MO1, quiz 1, Ch.1-3, Art MO2 quiz 2( ch.4-7

View Set