Server Admin Chapter 9

0.0(0)
studied byStudied by 0 people
call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/54

encourage image

There's no tags or description

Looks like no tags are added yet.

Last updated 1:10 PM on 10/17/25
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai

No analytics yet

Send a link to your students to track their progress

55 Terms

1
New cards

Process ID (PID)

A unique number to identify and manage processes.

2
New cards

Parent-Child ID (PPID)

Processes can create other processes, resulting in a hierarchical structure.

3
New cards

Process States

Running, Sleeping, Stopped, Zombie, Orphan

4
New cards

Running process

Actively executing on the CPU

5
New cards

Sleeping process

Waiting for an event

6
New cards

Stopped process

Paused, typically by a user command

7
New cards

Zombie process

A process that has finished executing, but its parent hasn't retrieved its exit status

8
New cards

Orphan process

A process whose parent has terminated, and it is re-parented to the init process.

9
New cards

Rogue process

A process that encounters an error and continuously uses up system resources.

10
New cards

ps command

Process status. Displays information about currently running processes.

11
New cards

top command

Provides a dynamic, real-time view of processes and system resource usage

12
New cards

htop command

An interactive and enhanced version of top

13
New cards

systemctl command

Manage system daemons

14
New cards

init daemon

First process started by Linux kernel (PPID of 0)

15
New cards

PID 0 refers to...

The kernel itself

16
New cards

ps -f command

Full option. Displays more complete info such as UID, PPID, start time, and CPU utilization

17
New cards

ps -e command

Entire option. Displays entire list of processes

18
New cards

PRI

Process priority. Measured between 0 (high) and 127 (low) priorities.

19
New cards

Nice value

Can be used to indirectly affect process priority. Measured between -20 (greater chance of higher priority) and +19 (greater chance of lower priority).

20
New cards

pstree command

Displays lineage of process by tracing its PPIDs back to init daemon

21
New cards

kill command

Sends a kill signal to a process to terminate it

22
New cards

kill -l command

Displays a list of kill signal names and associated numbers.

23
New cards

SIGHUP

1. Hang-up signal. It stops a process, then restarts it with the same PID.

24
New cards

SIGINT

2. Interrupt signal. Used when you do CTRL+C in the terminal.

25
New cards

SIGQUIT

3. Core dump. Terminates a process by taking the process info in memory and saving it to a file called 'core' on the disk

26
New cards

SIGTERM

15. Termination signal. The most common kill signal (and default for kill command)

27
New cards

SIGKILL

9. Absolute kill signal, forcing the kernel to stop executing the process.

28
New cards

killall command

Kills multiple processes of the same name in one command

29
New cards

pkill command

Kills processes by process name, PPID, UID, etc

30
New cards

Forking

Creating a new subshell

31
New cards

Subshell

Executes a program or script with the exec function

32
New cards

Foreground processes

Active in your terminal session

33
New cards

Background processes

Shell immediately returns the shell prompt to enter another command

34
New cards

jobs command

Indicates the two most recent background processes

35
New cards

kill -2 %1

Sends an interrupt signal to a background process

36
New cards

To move a background process to the foreground...

Use the fg command followed by the background job ID

37
New cards

Since the PRI can't be directly changed, what should you do?

Assign a certain nice value to a process.

38
New cards

Negative nice value

Increases the likelihood that a process will receive more time slices

39
New cards

Positive nice value

Decreases the likelihood that a process will receive more time slices.

40
New cards

renice command

Alters priority after a process has been started

41
New cards

at daemon

Executes once in the future

42
New cards

cron daemon

Executes repeatedly in the future

43
New cards

at -l command

Displays a list of at job IDs

44
New cards

at -c command

Displays contents of a specified at job

45
New cards

at -d command

Removes the specified at job

46
New cards

/etc/cron.allow file

Lists users allowed to use cron daemon

47
New cards

/etc/cron.deny file

Lists users not allowed to use cron daemon

48
New cards

What happens if both allow and deny files exist?

Only the allow file is processed.

49
New cards

What happens if neither the allow or deny file exists?

All users are allowed to schedule tasks.

50
New cards

crontab command

Creates or edits user cron tables

51
New cards

crontab -e command

To edit cron tables in an editor

52
New cards

crontab -l command

To list your user cron table

53
New cards

crontab -r command

Removes a cron table and all scheduled jobs

54
New cards

crontab -u command

Used by the root user to edit, list, or remove user cron table

55
New cards

Cron table format

minute (0 - 59)

hour (0 - 23)

day of month (1 - 31)

month (1 - 12 or jan - dec)

day of week (0 - 6 or sun - sat)

user

command