GNU/Linux System Support (CST8207) Comprehensive Lecture Review

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

Practice flashcards covering core Linux system administration topics including shell scripting, delayed execution, processes, storage, inodes, links, permissions, environment variables, I/O redirection, and globbing.

49 Terms

1
New cards

Hierarchy of Logical Operators

The evaluation order used in shell test commands where Logical NOT (!) has the highest priority, followed by Relational operators (-lt, -gt, -le, -ge, -eq, -ne), then AND (-a), and finally OR (-o) with the lowest priority.

2
New cards

Positional Parameters

Shell variables ($1 through $9, and ${10}+) representing command-line arguments passed to a script, where $0 is the script pathname, $# is the argument count, and $* and $@ expand to all arguments.

3
New cards

While Loop

A conditional loop control structure delimited by do and done that repeatedly executes a command list as long as its testing command list succeeds with an exit status of 0.

4
New cards

For Loop

A shell loop structure that iterates over an explicit list of words (or an implicit list taken from positional parameters $1, $2, etc.) one word at a time without executing a testing command.

5
New cards

break Statement

A loop control command that terminates execution of the innermost loop immediately; passing a numeric argument such as break 2 terminates the current loop and the loop containing it.

6
New cards

continue Statement

A loop control command that skips the remaining commands inside the loop for the current iteration and proceeds immediately to the next iteration.

7
New cards

case Statement

A multiway conditional control structure delimited by case and esac that matches a string against multiple patterns (including GLOB patterns separated by |) and executes commands ending with ;;.

8
New cards

Command Substitution

A shell feature using $(command) that executes a command in a subshell and inserts its standard output directly into the command line.

9
New cards

cron Daemon

A background service that executes scheduled recurring tasks by checking system (/etc/crontab) and user (/var/spool/cron/username) crontab files no more than once every minute.

10
New cards
<p>Crontab Time/Date Fields</p>

Crontab Time/Date Fields

The five blank-separated fields at the start of a crontab entry defining execution times: minute (0–59), hour (0–23), day of month (1–31), month (1–12 or names), and day of week (0–6, where 0 or 7 is Sunday).

11
New cards

at Command

A utility used to schedule a one-time execution of commands at a specified future date and time, running in the working directory that was in effect when the job was queued.

12
New cards

atq

A command that displays the list (queue) of pending jobs scheduled with the at command.

13
New cards

Shebang (#!)

The two-character magic number sequence at the very start of a script file followed by the absolute pathname of the executable interpreter binary that the kernel runs to execute the file.

14
New cards

Arithmetic Expansion

The Bash syntax $((expression)) used to evaluate integer arithmetic expressions (including +, -, *, /, %, and **) and substitute the result.

15
New cards

bc (Basic Calculator)

A command-line mathematical utility that supports decimal floating-point calculations in Linux, using the scale variable to specify decimal precision.

16
New cards

test Command ([ ])

A command that evaluates integer comparisons, pathname properties (e.g., -e, -f, -d, -r, -w, -x), or string checks (e.g., -z, -n), returning an exit status of 0 for true and non-zero for false.

17
New cards

Exit Status ($?)

A numeric status code between 0 and 255 returned by every terminating command/process and stored in the shell variable $?, where 0 represents success.

18
New cards

du (Disk Usage)

A command that recursively counts the number of disk blocks used by files and directories, featuring flags such as -a (all files), -s (summary only), and -h (human-readable sizes).

19
New cards

Process

An instance of an executing program loaded into memory that is tracked by a unique Process ID (PID) and scheduled by the OS for CPU time-sharing.

20
New cards
<p>Program Lifecycle States</p>

Program Lifecycle States

The six execution states of a Linux process managed by the scheduler: Submit, Hold, Ready, Run, Wait (e.g., during I/O operations), and Complete.

21
New cards
<p>init Process</p>

init Process

The first user-space process started by the kernel, running with PID 1 and PPID 0, which serves as the root of the process tree and automatically adopts orphaned processes.

22
New cards

Orphan Process

A running child process whose parent terminated before it did, resulting in the child being adopted by the init process (PID 1).

23
New cards

Zombie Process

A terminated process whose execution has ended but whose exit status has not yet been collected by its parent, leaving an entry in the process table.

24
New cards

Daemon Process

A system background service process that runs without an attached controlling terminal, often with root privileges, whose name typically ends in 'd' (e.g., crond, sshd).

25
New cards

gzip / gunzip

A fast, cross-platform compression tool using the Lempel-Ziv algorithm that compresses files with the .gz extension and replaces the original file unless used as a filter.

26
New cards

bzip2 / bunzip2

A CPU-intensive compression utility using the Burrows-Wheeler algorithm that creates .bz2 files; bunzip2 appends .out to the output name if the source lacks a .bz2 suffix.

27
New cards

tar (Tape ARchive)

A tool used to package multiple files and directory structures into a single archive file ('tarball') while preserving file permissions, ownerships, and timestamps.

28
New cards

Inode (Index Node)

A filesystem data structure identified by a unique index number that stores file metadata, permissions, ownership, link count, and block pointers, but neither the filename nor file content.

29
New cards

Hard Link

An additional directory entry that points to an existing file's inode number within the same filesystem, preserving file contents until all hard links (link count 0) are removed.

30
New cards

Soft Link (Symbolic Link)

A special file with its own unique inode number that contains a pathname shortcut pointing to a target file or directory across filesystems.

31
New cards

Link Count

An inode metadata counter indicating how many directory names reference that inode; data blocks on disk are freed only when the link count decreases to zero.

32
New cards

umask (User File Creation Mask)

A bitmask assigned to a process that turns off (masks) specific permission bits from the default creation permissions: 777 for directories and 666 for regular files.

33
New cards

export Command

A shell built-in command that marks a shell variable as an environment variable so that it is inherited by newly created child processes and subshells.

34
New cards

PATH Variable

An environment variable containing a colon-separated list of directory pathnames that the shell searches sequentially to find executable files for commands.

35
New cards

PS1

The shell environment variable that defines the string, escape sequences, and visual appearance of the primary command-line prompt.

36
New cards
<p>Permission Triad (rwx)</p>

Permission Triad (rwx)

The nine symbolic characters in an ls -l listing divided into three triplets representing read (4), write (2), and execute/search (1) permissions for user (u), group (g), and others (o).

37
New cards

Directory Execute Permission (x)

The traverse or search access mode on a directory required for a user to cd into it, execute commands through it, and (with write permission) add, delete, or rename entries inside it.

38
New cards

alias Command

A shell built-in utility that enables users to create custom shorthand command names or define default flags for existing commands within a session.

39
New cards

/etc/shadow

The secure system file in Unix/Linux that stores encrypted passwords and password aging information for user accounts.

40
New cards

Globbing

The shell's pathname expansion mechanism using pattern metacharacters (* for zero or more characters, ? for exactly one character, and [ ] for character lists) to match existing non-hidden file and directory names.

41
New cards
<p>Standard Streams</p>

Standard Streams

The three default I/O channels opened for every Linux process: Standard Input (stdin, descriptor 0), Standard Output (stdout, descriptor 1), and Standard Error (stderr, descriptor 2).

42
New cards

Pipe (|)

An operator that redirects the standard output (stdout) of one process directly into the standard input (stdin) of another process without using an intermediate file.

43
New cards

Standard Error Redirection (2>)

The shell syntax used to divert error message output (unit 2) away from the screen into a file, or combined with standard output using 2>&1.

44
New cards

Root Directory (/)

The nameless top-level base directory of the Unix/Linux directory tree from which all paths, mounted filesystems, and directories descend.

45
New cards

Dot (.) and Dot-Dot (..)

Permanent directory entries in every Unix/Linux directory, where . refers to the current working directory and .. refers to the immediate parent directory.

46
New cards

Control-C (^C)

A terminal control key combination that transmits the SIGINT (Interrupt) signal to immediately terminate the currently running foreground program.

47
New cards

Control-D (^D)

A terminal control key combination that transmits an End-of-File (EOF) indicator to notify a program reading from standard input that input is complete.

48
New cards

Control-Z (^Z)

A terminal control key combination that suspends (pauses) the active foreground process and returns the shell prompt, allowing the job to be resumed with bg or fg.

49
New cards

Brace Expansion ({ })

A Bash mechanism that generates arbitrary text strings or file paths from comma-separated lists without requiring existing files, such as mkdir -p dir/{sub1,sub2}.