Linux Processes and Regular Expressions

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

1/48

flashcard set

Earn XP

Description and Tags

Vocabulary practice flashcards covering Linux process management, job control, signals, system resources, and regular expressions.

49 Terms

1
New cards

Process

A program in execution on a Linux system; an active entity with system resources, PID, and memory variables, started via GUI or CLI.

2
New cards

systemd

The first process spawned at system boot (PID 1) that replaced init; it serves as the parent of all other processes and executes continuously until system shutdown.

3
New cards

fork()

The system call used by a parent process to clone itself and start a new child process with its own PID.

4
New cards

Daemon

A long-running, background Linux process that operates without user intervention, often initialized at boot time to manage system tasks like mail scanning and network filesystems.

5
New cards

Background Process

A process launched by appending an ampersand (&) to a command; it runs alongside other processes without interactive shell control or locking the command prompt.

6
New cards

jobs

A command that displays active, running, or stopped jobs running in the current shell session.

7
New cards

Ctrl-Z

The terminal key sequence used to suspend (pause or stop) a currently running foreground process.

8
New cards

fg

The command used to resume a stopped or background process in the foreground, specified by job number (e.g., fg 1).

9
New cards

bg

The command used to resume a suspended/stopped process to continue running in the background.

10
New cards

ps

Process Status; a command-line tool that displays a non-interactive snapshot of currently running processes.

11
New cards

ps -aux

A ps command option set displaying all active processes (a), in user-oriented format (u), including processes not attached to a terminal (x).

12
New cards

TTY

Teletypewriter; indicates the controlling terminal device associated with a process, displayed as a question mark (?) when running detached under a GUI.

13
New cards

Zombie Process

A defunct process that has finished execution and surrendered its resources, but remains in the process table with a PCB because its parent process has not yet reaped its exit status.

14
New cards

Orphan Process

A process whose parent process has terminated; it is adopted by PID 1 (systemd or init).

15
New cards

Core File

A memory image file left behind when a process terminates abnormally, used by developers for debugging.

16
New cards

SIGTERM (Signal 15)

The default termination signal sent by kill, requesting a process to shut down cleanly and allow cleanup operations before exiting.

17
New cards

SIGKILL (Signal 9)

A brute-force kill signal that immediately forces Linux to abort a process without allowing cleanup routines.

18
New cards

SIGHUP (Signal 1)

The hang-up signal that terminates communication when a line disconnects or restarts a process with its exact same PID.

19
New cards

killall

A command that sends termination signals to processes specified by their process name rather than PID.

20
New cards

top

An interactive command-line utility displaying real-time, continuously updating system resource utilization and active process metrics, refreshing every 3 seconds by default.

21
New cards

Niceness (NI)

A user-space process priority value ranging from -20 (highest priority) to +19 (lowest priority); higher niceness values yield CPU time to other processes.

22
New cards

renice

The Linux utility used to modify the priority (niceness value) of an already running process.

23
New cards

mpstat

A command that displays processor utilization statistics across all processors in a system.

24
New cards

pmap

A command used to view the memory map and allocated memory addresses of a process specified by PID.

25
New cards

systemctl emergency

A systemctl shutdown mode switching the machine to single-user (root) text-based mode without running services or mounted file systems, executing only systemd and a shell.

26
New cards

systemctl kexec

A reboot mode executed directly by the kernel that bypasses the hardware ROM BIOS POST initialization phase.

27
New cards

Regular Expression (regex)

A specialized text pattern string consisting of literals and metacharacters used for pattern matching, filtering, and text manipulation.

28
New cards

Literal Character

A character in a regular expression that must match itself precisely in string order, case, and character value.

29
New cards

Metacharacter

A special non-literal character within a regular expression that alters matching rules for preceding or following characters.

30
New cards

Escape Character ()

A metacharacter used before any of the 14 special regex characters to instruct the interpreter to treat the symbol as a literal string character.

31
New cards

grep

Global Regular Expression Print; a text search utility that prints each line in a file matching a specified expression.

32
New cards

egrep

Extended grep; a version of grep supporting extended regular expression metacharacters (+, ?, |, and grouping parentheses) without escaping.

33
New cards

Dot Metacharacter (.)

A regex metacharacter that matches any single character except a newline or line break.

34
New cards

Star Metacharacter (*)

A quantifier specifying that the preceding character or grouped token may appear zero or more times.

35
New cards

Plus Metacharacter (+)

An extended metacharacter specifying that the preceding token must appear one or more times.

36
New cards

Question Mark Metacharacter (?)

An extended metacharacter that makes the preceding character or group optional by matching it exactly 0 or 1 time.

37
New cards

grep -v

A grep option that inverts matching to select only lines that do not match the specified pattern.

38
New cards

grep -w

A grep option that restricts search results to lines where matches form whole words.

39
New cards

grep -o

A grep option that outputs only the exact matching text segments rather than the full line.

40
New cards

Character Class ([ ])

A regex bracket expression used to specify a list or range of characters, matching any single character contained within.

41
New cards

Negated Character Class ([^ ])

A character class beginning with a caret (^) that matches any single character not included within the brackets.

42
New cards

Curly Braces ({n,m})

A quantifier metacharacter defining repetition ranges, matching the preceding token at least n times and at most m times.

43
New cards

Caret Anchor (^)

A positional metacharacter that anchors a match to the beginning of a line.

44
New cards

Dollar Anchor ($)

A positional metacharacter that anchors a match to the end of a line.

45
New cards

Word Boundary (\b)

A positional regex anchor that matches the boundary point between a word character [a-zA-Z0-9_] and a non-word character.

46
New cards

Alternation (|)

An extended regex metacharacter representing logical OR, matching either the expression to its left or to its right.

47
New cards

[:alnum:]

A POSIX character class matching any alphanumeric character (letters in either case or digits 0-9).

48
New cards

[:space:]

A POSIX character class matching any whitespace character, including blank space, tab, and newline.

49
New cards

/usr/share/dict/words

The standard system dictionary file on Linux containing a newline-delimited list of words used for text processing and regex pattern matching.