1/48
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.
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.
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.
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.
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.
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.
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.
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 ;;.
Command Substitution
A shell feature using $(command) that executes a command in a subshell and inserts its standard output directly into the command line.
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.

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).
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.
atq
A command that displays the list (queue) of pending jobs scheduled with the at command.
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.
Arithmetic Expansion
The Bash syntax $((expression)) used to evaluate integer arithmetic expressions (including +, -, *, /, %, and **) and substitute the result.
bc (Basic Calculator)
A command-line mathematical utility that supports decimal floating-point calculations in Linux, using the scale variable to specify decimal precision.
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.
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.
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).
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.

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.

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.
Orphan Process
A running child process whose parent terminated before it did, resulting in the child being adopted by the init process (PID 1).
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.
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).
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.
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.
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.
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.
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.
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.
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.
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.
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.
PATH Variable
An environment variable containing a colon-separated list of directory pathnames that the shell searches sequentially to find executable files for commands.
PS1
The shell environment variable that defines the string, escape sequences, and visual appearance of the primary command-line prompt.

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).
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.
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.
/etc/shadow
The secure system file in Unix/Linux that stores encrypted passwords and password aging information for user accounts.
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.

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).
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.
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.
Root Directory (/)
The nameless top-level base directory of the Unix/Linux directory tree from which all paths, mounted filesystems, and directories descend.
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.
Control-C (^C)
A terminal control key combination that transmits the SIGINT (Interrupt) signal to immediately terminate the currently running foreground program.
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.
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.
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}.