$_ CLI In Depth
Learning progress 0%
Reference 574 Terms

Command Line Glossary

Rigorous mathematical, asymptotic, and mechanical definitions across all 18 modules.

--rcfile Environment, PATH & Dotfiles · Module 9.5

The bash option that makes an interactive shell read a named file instead of ~/.bashrc, which is useful for testing a startup file safely.

/dev/null Streams, Redirection & Pipes · Module 7.4

A special device that accepts and discards all data written to it, used to silence a stream while keeping the exit status.

/proc Processes, Signals & Job Control · Module 10.2

A virtual file system in which the kernel generates a directory for each process, with files such as status and cmdline.

/proc/PID/environ Environment, PATH & Dotfiles · Module 9.2

A file in the proc filesystem that holds the environment block a process was started with, separated by null bytes.

/proc/self Syscalls, Namespaces & cgroups · Module 17.2

A link inside /proc that points at the directory of the process that opens it, so a program can read its own state without knowing its PID.

~/.bash_profile Environment, PATH & Dotfiles · Module 9.5

The user startup file that a login shell reads. It is often written to load ~/.bashrc so that both shell kinds get the same settings.

~/.bashrc Environment, PATH & Dotfiles · Module 9.5

The startup file that a non-login interactive bash reads. Settings for aliases, functions, options, and the prompt usually belong here.

Absolute path Filesystem Navigation & Inodes · Module 2.2

A path that begins with a slash, so the kernel starts the walk at the root and names the same file from any directory.

accept Networking Tools · Module 16.9

The socket call that takes one completed connection from the queue and returns a new socket for that client.

Access control list Users, Permissions & sudo · Module 5.9

An extra set of entries on a file that grants access to named users or groups beyond the owner, group, and other classes.

Access time (atime) Filesystem Navigation & Inodes · Module 2.7

The timestamp of the last read of a file's contents. Most filesystems update it lazily, so it is a rough signal.

Address Text Processing: grep, sed & awk · Module 6.6

The part of a sed command that selects which lines it applies to, given as a line number, $ for the last line, or a regex between slashes.

Address space layout randomization Syscalls, Namespaces & cgroups · Module 17.4

A kernel feature that places the stack, heap, and libraries at different addresses on each run, which makes memory layouts harder to predict.

Adjacent duplicates Text Processing: grep, sed & awk · Module 6.4

Identical lines that sit next to each other in the input. uniq only merges or counts adjacent duplicates, so its input must be sorted first.

Alias Terminal, Shell & Kernel · Module 1.4

A short name that an interactive shell replaces with a piece of text before parsing the line. Aliases are checked before functions and builtins.

Alias expansion Terminal, Shell & Kernel · Module 1.10

Replacement of an alias name with its defined text while the shell reads a line. Bash enables it by default only in interactive shells.

Allocated size Filesystem Navigation & Inodes · Module 2.4

The number of bytes of disk blocks a file actually uses, as ls -s reports. It can be much smaller than the logical size of a sparse file.

Allowlist Networking Tools · Module 16.8

A filter design that permits only listed traffic and denies everything else, which is safer for servers.

Alternate expansion Functions, Arrays & Parameter Expansion · Module 14.5

The ${var:+word} form that produces word only when var is set and not empty, which is useful for optional flags.

Alternative operator Performance, Debugging & Power Tools · Module 18.6

The jq // operator, which returns its right side when the left side is null or missing, so it can supply a fallback.

Anchor Text Processing: grep, sed & awk · Module 6.1

A regex element that matches a position rather than a character. The caret matches the start of a line and the dollar sign matches the end.

Anchored match Functions, Arrays & Parameter Expansion · Module 14.6

A pattern that must match at the start of a value, written with a number sign after the first slash, or at the end, written with a percent sign.

Anonymous region Syscalls, Namespaces & cgroups · Module 17.4

A memory region in /proc/PID/maps with no pathname, which holds memory that is not backed by a file, such as much of the heap.

ANSI-C quoting Expansion, Quoting & Word Splitting · Module 8.6

The $'...' form, which processes backslash escapes such as \t, \n, and \x41 before the word is used.

Apparent size Disks, Mounts & Archives · Module 12.3

The size of file data as a program sees it, in bytes, as opposed to the number of storage blocks the file occupies. Sparse files show a large apparent size with few blocks.

apropos Terminal, Shell & Kernel · Module 1.6

A command, equivalent to man -k, that searches the one-line NAME descriptions of man pages for a keyword and lists the matching pages with their sections.

Archive member Disks, Mounts & Archives · Module 12.5

One entry inside a tar archive, such as a file or directory. Members are listed with tar -t and extracted with tar -x.

Archive mode Networking Tools · Module 16.7

The rsync -a option that copies recursively and preserves permissions, times, and links.

Archive rotation Packages, Services & Scheduled Jobs · Module 11.10

Creating a new backup on each run and deleting the oldest backups so that only the newest N are kept.

Argument array Processes, Signals & Job Control · Module 10.10

The list of command words kept as "$@", which passes each argument exactly once without splitting or globbing.

Argument count Scripting Basics & Exit Codes · Module 13.2

The value of $#, which holds the number of arguments the script received, not counting $0.

argv Terminal, Shell & Kernel · Module 1.5

The argument vector: the array of strings a program receives from execve, with argv[0] usually holding the name the program was started under. The kernel passes it unchanged.

Arithmetic command Expansion, Quoting & Word Splitting · Module 8.4

The (( expression )) form used as a command, whose exit status is 0 for a nonzero result and 1 for zero.

Arithmetic expansion Expansion, Quoting & Word Splitting · Module 8.4

The $((expression)) form, which evaluates integer arithmetic inside the shell and replaces itself with the decimal result.

Arithmetic status Robust Scripts, Traps & Debugging · Module 15.2

The exit status of an arithmetic command such as (( expr )), which is 1 when the value of expr is zero and 0 otherwise.

Array expansion Functions, Arrays & Parameter Expansion · Module 14.3

The quoted form "${name[@]}" that produces one word per element, as opposed to the star form that joins all elements into one word.

Associative array File Manipulation, Globbing & find · Module 4.10

A bash array indexed by strings rather than numbers, declared with declare -A. It is used to map a checksum to the first file that had it.

at Packages, Services & Scheduled Jobs · Module 11.8

A utility that runs one job at a set time from a managed queue, which is not installed on this lab machine.

Atomic rename File Manipulation, Globbing & find · Module 4.2

A rename within one filesystem that changes the directory entry in a single step, so other processes see either the old name or the new one.

Available memory Performance, Debugging & Power Tools · Module 18.2

The estimate of how much memory a new program could get without swapping, including reclaimable cache.

Backreference Text Processing: grep, sed & awk · Module 6.9

A regex element such as \1 that matches the same text an earlier group matched, which needs a slower matcher than a plain automaton.

Backreference in replacement Text Processing: grep, sed & awk · Module 6.6

A reference such as \1 or \2 in a sed replacement that inserts the text matched by an earlier group in the pattern.

Backtick form Expansion, Quoting & Word Splitting · Module 8.3

The older `command` substitution syntax, which the $(command) form replaces because it nests more cleanly.

Backup directory Environment, PATH & Dotfiles · Module 9.10

A directory inside the destination, here named .dotfiles-backup, that holds the original files an installer moved aside before linking.

Base prefix Expansion, Quoting & Word Splitting · Module 8.4

The base#digits notation, such as 16#ff, that tells bash which base to use for a number.

Baseline measurement Performance, Debugging & Power Tools · Module 18.9

The first timing of a pipeline, kept so that every later change can be compared with it.

bash -n Robust Scripts, Traps & Debugging · Module 15.6

The option that makes bash read a script and check its syntax without executing any of its commands.

BASH_ENV Environment, PATH & Dotfiles · Module 9.4

A variable that names a file for bash to read before running a non-interactive script.

Bashism Robust Scripts, Traps & Debugging · Module 15.8

A bash extension, such as [[ ]], arrays, or process substitution, that does not work in a strictly POSIX shell.

Basic regular expression (BRE) Text Processing: grep, sed & awk · Module 6.1

The default regex dialect of grep and sed, in which grouping, interval, plus, question mark, and alternation are literal characters unless written with a backslash.

batch Packages, Services & Scheduled Jobs · Module 11.8

A utility that runs one job when the system load drops below a threshold, often paired with at.

BEGIN and END blocks Text Processing: grep, sed & awk · Module 6.7

Special awk rules that run once before the first input line and once after the last, used to set up headers and print totals.

Bind address Networking Tools · Module 16.9

The local address a server attaches its socket to, which decides whether it accepts connections from only the machine or from every interface.

Bind mount Syscalls, Namespaces & cgroups · Module 17.8

A mount that makes an existing directory appear at a second place in the tree, without copying its files.

Block device Disks, Mounts & Archives · Module 12.1

A device the kernel reads and writes in fixed-size blocks, such as a disk, a USB stick, or a loop device made from a file. It has no names or files of its own until a filesystem is written onto it.

Brace expansion File Manipulation, Globbing & find · Module 4.4

A textual expansion of a list such as {a,b} or a range such as {1..5} into separate words, performed before globbing and without checking the file system.

Bracket expression Text Processing: grep, sed & awk · Module 6.1

A set of characters written in square brackets, such as [0-9] or [[:digit:]], that matches any one character from the set.

Branch Performance, Debugging & Power Tools · Module 18.5

A git name that holds one commit identifier and moves forward when you commit on it.

Builtin Terminal, Shell & Kernel · Module 1.4

A command implemented inside the shell itself, such as cd, export, or printf. It runs without starting a child process, so it can change the shell state.

Bundled flags Scripting Basics & Exit Codes · Module 13.8

Several single-letter options written together, such as -vn, which getopts reads as separate options in order.

BusyBox Syscalls, Namespaces & cgroups · Module 17.10

A single program that provides a shell and many common utilities, often built as a static binary for small root filesystems.

BusyBox ash Robust Scripts, Traps & Debugging · Module 15.8

A small POSIX shell that is often the sh on minimal Linux systems, including the lab machine.

Byte order mark Viewing Files & Text · Module 3.5

Three bytes, EF BB BF, that some editors write at the start of a UTF-8 file. They can break scripts whose first line must be a hash-bang.

Canonical mode Terminal, Shell & Kernel · Module 1.2

The default tty mode in which input is delivered one edited line at a time, after Enter is pressed.

Canonical path Filesystem Navigation & Inodes · Module 2.2

The absolute form of a path with dot segments and symbolic links resolved. The realpath tool produces it.

CAP_DAC_OVERRIDE Users, Permissions & sudo · Module 5.9

A Linux capability that lets a process skip the owner, group, and other checks for reading and writing. Root holds it, and ordinary accounts do not.

Capability Syscalls, Namespaces & cgroups · Module 17.6

A part of root privilege, such as the right to create namespaces or change the root directory. A process can hold some capabilities without holding all of them.

Case conversion Functions, Arrays & Parameter Expansion · Module 14.7

The caret and comma forms of parameter expansion that change the case of the first letter or of all letters, and the tilde form that toggles them.

case statement Scripting Basics & Exit Codes · Module 13.4

A statement that matches one value against glob patterns, runs the first matching branch, and ends with the keyword esac.

CDPATH Filesystem Navigation & Inodes · Module 2.3

A colon-separated list of directories that bash searches when a relative name given to cd does not start with ./ or /.

cgroup Syscalls, Namespaces & cgroups · Module 17.7

A control group, which is a set of processes whose CPU, memory, process count, or I/O use is measured and limited together.

Chain Networking Tools · Module 16.8

An ordered list of firewall rules that packets are checked against at one point in their path.

Change time (ctime) Filesystem Navigation & Inodes · Module 2.7

The time the inode last changed, including changes to permissions and link count. It is not the creation time.

Character class Text Processing: grep, sed & awk · Module 6.5

A named set of characters written as [:name:] inside a bracket expression, such as [:digit:], [:space:], or [:upper:], that stays portable across locales.

Character length Functions, Arrays & Parameter Expansion · Module 14.7

The number of characters in a value, given by ${#name}. An unset variable has length zero.

Character position Text Processing: grep, sed & awk · Module 6.3

A one-based column number that cut -c uses to select characters from each line, instead of selecting fields by delimiter.

Checksum Disks, Mounts & Archives · Module 12.8

A short fingerprint computed from the bytes of a file. If any byte changes, the fingerprint changes, so comparing fingerprints detects damage or change.

chgrp Users, Permissions & sudo · Module 5.4

The command that changes the group of a file. The owner may choose any group that the owner belongs to.

Child process Environment, PATH & Dotfiles · Module 9.2

A process created by another process. It starts with a copy of the parent's memory, environment, working directory, and file descriptors.

chmod Users, Permissions & sudo · Module 5.3

The command that changes the permission bits of a file. Only the owner or root may change the mode of a given file.

chown Users, Permissions & sudo · Module 5.4

The command that changes the owner of a file, and with a colon also its group. Only root may hand a file to another user.

chroot Syscalls, Namespaces & cgroups · Module 17.8

A system call and a command that change the root directory seen by a process and its children. It does not change mounts and is not a security boundary.

Cleanup trap Robust Scripts, Traps & Debugging · Module 15.3

A trap on EXIT that removes temporary files, directories, or locks, so that every exit path leaves the system tidy.

Clear text Networking Tools · Module 16.5

Data sent without encryption, which anyone on the network path can read, as nc does by default.

cmdline file Syscalls, Namespaces & cgroups · Module 17.2

The file /proc/PID/cmdline, which holds the arguments a process was started with, separated by NUL bytes.

Collation Environment, PATH & Dotfiles · Module 9.8

The rules that decide the order of strings in sort. The C locale uses byte order, while language locales may interleave upper and lower case.

Collision Expansion, Quoting & Word Splitting · Module 8.10

A case where the target name of a rename already exists, which a safe script detects and skips instead of overwriting.

Colon variant Functions, Arrays & Parameter Expansion · Module 14.5

The form of a parameter expansion with a colon, which treats an empty value the same as an unset one. The form without the colon checks only for unset.

Column alignment Text Processing: grep, sed & awk · Module 6.3

Padding that column -t adds so that values in each field line up under each other, intended for reading rather than for other programs.

Column alignment (column -t) Text Processing: grep, sed & awk · Module 6.3

Formatting that pads each field to the width of the widest value in its column, used by column -t for readable tables.

command -v Terminal, Shell & Kernel · Module 1.10

A way to ask the shell what it would run for a name. For external programs it prints the full path to the file.

Command lookup order File Manipulation, Globbing & find · Module 4.8

The order bash uses to resolve a name: alias, function, builtin, reserved word, then program on PATH.

Command substitution Expansion, Quoting & Word Splitting · Module 8.3

The $(command) form, which runs a command and replaces the expansion with its standard output.

Command substitution subshell Robust Scripts, Traps & Debugging · Module 15.2

The subshell that runs the commands inside $(...). By default it does not inherit set -e in bash.

Comment Scripting Basics & Exit Codes · Module 13.1

Text after a hash sign that bash ignores up to the end of the line. The shebang is a comment to bash, although the kernel reads it.

Commit Performance, Debugging & Power Tools · Module 18.5

A git snapshot of the project with a parent link to the previous commit and an author.

Complement set Text Processing: grep, sed & awk · Module 6.5

The set of all characters not in a given set, selected with tr -c so that the following deletion or translation applies to everything else.

Concatenation Viewing Files & Text · Module 3.1

Joining several inputs one after another into a single output. cat does it by copying the bytes of each file in order.

Concurrent pipeline stages Performance, Debugging & Power Tools · Module 18.9

The stages of a pipeline run at the same time, so their individual times do not add up to the total.

Condition command Scripting Basics & Exit Codes · Module 13.4

Any command whose exit status an if, while, or until statement tests. Zero means true, and any other status means false.

configure script Packages, Services & Scheduled Jobs · Module 11.2

A script generated by autoconf that checks the machine for compilers and libraries and writes the Makefile.

Connection refused Networking Tools · Module 16.3

The error returned when a connection reaches the host but nothing listens on the port.

Container Syscalls, Namespaces & cgroups · Module 17.9

An ordinary process, or group of processes, with its own namespaces, a cgroup, a root filesystem, and often a system call filter.

Container init Syscalls, Namespaces & cgroups · Module 17.9

The first process of a container, which the host sees as an ordinary PID and which often has a parent that belongs to the container runtime.

Context lines Text Processing: grep, sed & awk · Module 6.2

Lines printed before or after a grep match, requested with -B, -A, or -C, so that a match can be read in its surroundings.

Control file Syscalls, Namespaces & cgroups · Module 17.7

A file inside a cgroup directory that reads or sets a value for the group, such as memory.max for a memory limit or cgroup.procs for the member PIDs.

Copy-up Disks, Mounts & Archives · Module 12.4

The overlay step that copies a file from a lower layer into the upper layer before the first write to it, so the lower copy stays unchanged.

cp -a Disks, Mounts & Archives · Module 12.7

The archive form of cp, shorthand for -dR --preserve=all. It copies a tree recursively, keeps links as links, and preserves modes, timestamps, and ownership where allowed.

CRLF Viewing Files & Text · Module 3.5

A line ending made of a carriage return and a line feed, used by Windows text. Unix tools usually expect a single line feed.

crond Packages, Services & Scheduled Jobs · Module 11.6

The cron daemon that wakes each minute, reads the schedule tables, and starts the commands whose time has come.

Crontab Packages, Services & Scheduled Jobs · Module 11.6

A table of schedule lines, each with five time fields and a command, that the cron daemon reads to run jobs.

Cross-filesystem move File Manipulation, Globbing & find · Module 4.2

A move between two filesystems, which mv performs by copying the data and then removing the source, because an inode cannot change devices.

Dangling link Filesystem Navigation & Inodes · Module 2.6

A symbolic link whose target does not exist. The link itself still exists and can be listed, but reading through it fails.

Day-of-month and day-of-week OR rule Packages, Services & Scheduled Jobs · Module 11.7

The cron rule that runs a job when either restricted day field matches, rather than when both match.

Default branch Scripting Basics & Exit Codes · Module 13.4

The catch-all pattern *) in a case statement, placed last so that it runs only when no earlier pattern matches.

Default expansion Functions, Arrays & Parameter Expansion · Module 14.5

The ${var:-word} form that produces word when var is unset or empty, without changing var.

Default mode Users, Permissions & sudo · Module 5.5

The mode a program requests when it creates an object, usually 0666 for regular files and 0777 for directories, before the umask is applied.

Default parameter expansion Performance, Debugging & Power Tools · Module 18.10

The ${1:-} form that substitutes an empty string when a parameter is unset, which avoids an error under set -u.

Default policy Networking Tools · Module 16.8

The action a firewall chain takes for a packet that matches none of its rules, typically accept or drop.

Default route Networking Tools · Module 16.2

The route 0.0.0.0/0 that matches every destination no other route matches, usually pointing at a router.

Default value operator Expansion, Quoting & Word Splitting · Module 8.2

The ${name:-word} form, which produces word when name is unset or empty and leaves name unchanged.

Delayed subshell Packages, Services & Scheduled Jobs · Module 11.8

A parenthesized group run in the background with an ampersand that sleeps and then runs a command, collected later with wait.

Dentry cache Filesystem Navigation & Inodes · Module 2.5

The kernel cache of recent path lookups, which makes repeated lookups of the same names fast.

Descriptor inheritance Streams, Redirection & Pipes · Module 7.9

The rule that a child process receives a copy of its parent's open file descriptors across fork, so the standard streams set by the shell are available to the program.

Deterministic finite automaton (DFA) Text Processing: grep, sed & awk · Module 6.9

A state machine that moves to the next state with one table lookup per input byte. GNU grep compiles most regexes into one for fast matching.

Device file Filesystem Navigation & Inodes · Module 2.8

A file in /dev that connects a name to a kernel driver through major and minor numbers. /dev/null discards its input.

df Disks, Mounts & Archives · Module 12.3

A tool that reports the total, used, and available space of a mounted filesystem by asking the filesystem itself, without walking the files.

Digital signature Disks, Mounts & Archives · Module 12.8

A value made with a private key that anyone can verify with the matching public key. It proves who produced the data, which a plain checksum cannot.

Directory entry Filesystem Navigation & Inodes · Module 2.5

One record in a directory that maps a name to an inode number. The directory is a table of these records.

Directory not empty File Manipulation, Globbing & find · Module 4.3

The error rmdir reports when asked to remove a directory that still holds entries. It protects scripts from deleting unknown contents.

Directory read Filesystem Navigation & Inodes · Module 2.9

The kernel operation that returns the names in a directory in batches, in the order the filesystem stores them.

Discretionary access control Users, Permissions & sudo · Module 5.9

The classic Unix model in which the owner of an object decides, through its mode, who may access it.

disown Processes, Signals & Job Control · Module 10.6

A bash builtin that removes a job from the shell job table, so the shell no longer forwards SIGHUP or lists it.

Dispatch Scripting Basics & Exit Codes · Module 13.10

The pattern of choosing one piece of work from a set based on a value, usually with a case statement on the subcommand word.

Distinct count Text Processing: grep, sed & awk · Module 6.8

The number of different values that appear in a field, found in awk by storing each value as a key and counting the keys in the END block.

Dot command Environment, PATH & Dotfiles · Module 9.5

The builtin written as a single period, which runs a file in the current shell so that its variables, aliases, and functions remain afterward.

Dotfile Environment, PATH & Dotfiles · Module 9.10

A file whose name starts with a dot, such as .bashrc or .vimrc, which programs usually keep in the home directory.

dotglob File Manipulation, Globbing & find · Module 4.5

A shell option that makes wildcards match names that start with a dot, which includes hidden files.

Double quotes Expansion, Quoting & Word Splitting · Module 8.6

Quotes that stop word splitting and globbing while still allowing parameter, command, and arithmetic expansion.

Double-bracket keyword Scripting Basics & Exit Codes · Module 13.3

The [[ ]] form, a bash keyword that does not split or glob its operands and supports == patterns, =~ regular expressions, and && inside the brackets.

dpkg Packages, Services & Scheduled Jobs · Module 11.1

The low-level Debian package tool that unpacks a single package and keeps the status database that apt uses.

Dry run Expansion, Quoting & Word Splitting · Module 8.10

A mode that reports the actions a script would take without performing them, so the preview can be checked before any file changes.

du Disks, Mounts & Archives · Module 12.3

A tool that adds up the size of the files under a path by walking the directory tree. Its numbers describe a tree, not the whole filesystem.

dup2 Streams, Redirection & Pipes · Module 7.9

A system call that copies one open file descriptor onto a chosen number, closing the target first if needed. The shell uses it to apply redirections in a child process.

Dynamic loader Packages, Services & Scheduled Jobs · Module 11.3

The program that maps a dynamic executable's shared libraries and connects their symbols before main runs.

Dynamic scope Functions, Arrays & Parameter Expansion · Module 14.2

A scoping rule in which a called function sees the local variables of the functions that called it, following the call stack rather than the source text.

E2BIG Environment, PATH & Dotfiles · Module 9.9

The error that execve returns when the arguments and environment together are too large for the kernel to place on the new stack.

Effective UID Users, Permissions & sudo · Module 5.7

The UID the kernel uses for permission checks in a process. For a setuid program it is the owner of the file, while the real UID stays the same.

Effective user ID Users, Permissions & sudo · Module 5.1

The user ID the kernel checks when a process accesses a file. It can differ from the real user ID for a setuid program.

ELF interpreter Packages, Services & Scheduled Jobs · Module 11.9

The path recorded in an ELF executable that names the dynamic loader the kernel must start before the program.

elif Scripting Basics & Exit Codes · Module 13.4

A keyword that adds another condition to an if statement. The conditions are tested in order, and only the first true branch runs.

Empty value Functions, Arrays & Parameter Expansion · Module 14.4

A variable or array element that is set but holds the empty string, which the -v test still treats as set.

End-of-options marker Expansion, Quoting & Word Splitting · Module 8.7

The -- argument, which tells a utility that every following argument is an operand, even if it begins with a dash.

ENOENT Syscalls, Namespaces & cgroups · Module 17.1

The error name a failed system call reports when a path does not name an existing file or directory.

ENOEXEC Scripting Basics & Exit Codes · Module 13.9

The error that execve returns when a file has no recognized format, such as a file with no shebang. Bash then runs the file as a shell script.

environ Environment, PATH & Dotfiles · Module 9.9

The C library array of environment strings in a running process. Functions such as getenv search it, and the kernel fills it at exec time.

Environment Environment, PATH & Dotfiles · Module 9.1

The list of NAME=value strings that bash passes to each new program. It contains only the exported variables.

envp Environment, PATH & Dotfiles · Module 9.9

The array of environment strings that the kernel receives in execve and copies into the new process.

Epoch seconds Filesystem Navigation & Inodes · Module 2.7

A count of seconds since 1 January 1970 in UTC. Scripts use it because it is a plain integer that does not depend on the time zone.

Equals operator Users, Permissions & sudo · Module 5.3

The = operator in a symbolic mode, such as u=rw, which sets a class to exactly the named permissions and clears the others in that class.

erofs Terminal, Shell & Kernel · Module 1.9

A compressed, read-only filesystem designed for system images, such as the distro image mounted in the lab.

errexit Robust Scripts, Traps & Debugging · Module 15.1

The bash option set -e, or set -o errexit, that makes a script exit when a simple command returns a non-zero status outside the exempt contexts.

errno Terminal, Shell & Kernel · Module 1.7

The error code a failed system call leaves for the C library, with names such as ENOENT for a missing file and EACCES for permission denied. Tools turn these codes into the messages you read.

Escape character Expansion, Quoting & Word Splitting · Module 8.8

The backslash, which makes the next character literal when it appears outside single quotes.

Ex mode Viewing Files & Text · Module 3.8

The line-oriented command mode of vim, which reads commands without a full screen. vim -es runs it silently for scripts.

Exclusive lock Robust Scripts, Traps & Debugging · Module 15.7

A lock that only one open file description can hold at a time, so a second holder must wait or fail.

Exec builtin Processes, Signals & Job Control · Module 10.3

The shell builtin that replaces the shell itself with a program, so the rest of the script never runs.

Execute bit Performance, Debugging & Power Tools · Module 18.8

The file permission that chmod +x sets, which lets a script run as a command.

Execute permission Scripting Basics & Exit Codes · Module 13.1

The x bit in a file mode. Without it, the file cannot be started by its path, and running it that way fails with Permission denied and status 126.

execve Terminal, Shell & Kernel · Module 1.1

A system call that replaces the memory image of the calling process with a new program while keeping its process ID.

Exempt context Robust Scripts, Traps & Debugging · Module 15.2

A place where set -e does not stop the script, such as the condition of if or while, the left side of && or ||, or a command inverted with !.

EXIT pseudo-signal Robust Scripts, Traps & Debugging · Module 15.3

A trap condition that runs once when the shell is about to exit, whether it ends normally, calls exit, or stops on a failure.

Exit status Terminal, Shell & Kernel · Module 1.1

The number a finished command reports through $?. Zero means success, 1 to 125 are failures, 127 means not found, and 128 plus N means the process was killed by signal N.

Exit status 1 (grep) Text Processing: grep, sed & awk · Module 6.2

The status grep returns when no line matched the pattern. Status 0 means a match was found and status 2 means an error occurred.

Exit status 126 Environment, PATH & Dotfiles · Module 9.3

The status a command returns when bash finds a file but cannot execute it, usually because the execute permission is missing.

Exit status 127 Environment, PATH & Dotfiles · Module 9.3

The status a command returns when bash cannot find the name in any place it searches, which includes the directories listed in PATH.

Exit status 128 plus N Processes, Signals & Job Control · Module 10.4

The status a shell reports for a process killed by signal N, so SIGTERM shows as 143 and SIGINT as 130.

Exit status 2 Filesystem Navigation & Inodes · Module 2.10

The status a script returns for a usage error. The build spec uses it when the argument count is wrong.

Exit status 2 for usage Packages, Services & Scheduled Jobs · Module 11.10

The convention of exiting with status 2 when a script receives wrong arguments, so callers can tell misuse from a failed operation.

Exit status 2 for usage errors Text Processing: grep, sed & awk · Module 6.10

The convention, used by this build spec, of returning 2 when a script is called with a missing or unreadable argument.

Exit status of a substitution Expansion, Quoting & Word Splitting · Module 8.3

In a plain assignment, the status that bash reports is the status of the last substitution performed.

Expansion Terminal, Shell & Kernel · Module 1.3

A step in which bash replaces a word with other text, such as a variable value, a command output, a brace list, or a glob match.

Exponential backoff Processes, Signals & Job Control · Module 10.10

A pause that doubles after each failed restart, so a crashing program does not consume the CPU while it keeps failing.

export Environment, PATH & Dotfiles · Module 9.1

The bash builtin that marks a variable so that it is copied into the environment of programs started afterward.

Extended regular expression (ERE) Text Processing: grep, sed & awk · Module 6.1

A regex dialect, selected with grep -E or sed -E, in which the operators plus, question mark, bar, parentheses, and braces are special without a backslash.

fd table Syscalls, Namespaces & cgroups · Module 17.3

The per-process array of open file references, indexed by descriptor number. Forked children get a copy that refers to the same open files.

Field Expansion, Quoting & Word Splitting · Module 8.5

One of the words that results from splitting, which can be empty when a non-whitespace IFS character appears twice in a row.

Field count filter (NF) Text Processing: grep, sed & awk · Module 6.10

An awk condition such as NF >= 9 that keeps only records with enough fields, so short or blank lines never reach the counters.

Field delimiter Text Processing: grep, sed & awk · Module 6.3

The single character that separates fields in a line of text, set with cut -d and used by default by awk as whitespace runs.

Field separator (FS) Text Processing: grep, sed & awk · Module 6.7

The awk variable, set with -F or in BEGIN, that holds the regular expression used to split each record into fields.

Field width Functions, Arrays & Parameter Expansion · Module 14.8

The minimum number of characters a printf conversion occupies, set by a number such as 8 in %-8s. A minus sign left-aligns the value.

File descriptor Terminal, Shell & Kernel · Module 1.7

A small integer that a process uses as a handle to an open file, pipe, or terminal. It indexes the kernel's per-process table, and 0, 1, and 2 are standard input, output, and error.

File owner Users, Permissions & sudo · Module 5.4

The UID recorded on a file, which selects the owner triplet for any process whose effective UID matches it.

File type character Users, Permissions & sudo · Module 5.2

The first character of an ls -l line. A hyphen marks a regular file, d marks a directory, and l marks a symbolic link.

Filename expansion Expansion, Quoting & Word Splitting · Module 8.1

Replacing an unquoted pattern such as *.txt with the names in the current directory that match it. Also called globbing.

Filesystem block Filesystem Navigation & Inodes · Module 2.5

The unit of space a filesystem allocates for data. An inode points at the blocks that hold a file's contents.

Filesystem Hierarchy Standard Filesystem Navigation & Inodes · Module 2.1

The widely followed convention that assigns jobs to top-level directories, such as /usr for programs, /etc for configuration, and /var for changing data.

Filter Streams, Redirection & Pipes · Module 7.10

A program that reads standard input, transforms each line, and writes standard output, so that it can sit in the middle of a pipeline.

Final newline Packages, Services & Scheduled Jobs · Module 11.7

The line break that must end a crontab file, because some implementations ignore a last line that lacks one.

find -perm Users, Permissions & sudo · Module 5.10

A find test that matches files by mode. A leading minus, as in -perm -002, means that at least the named bits must be set.

Fix mode Users, Permissions & sudo · Module 5.10

An option of the auditor that prints the chmod command for each finding without running it, so a reviewer can approve each change first.

Fixed string Text Processing: grep, sed & awk · Module 6.2

A pattern that grep treats as literal text, with no special characters, selected with the -F option.

flock Robust Scripts, Traps & Debugging · Module 15.7

A util-linux utility that takes a kernel-managed lock on a file, attached to an open file descriptor and released when the process exits.

Follow mode Viewing Files & Text · Module 3.2

A way of reading a file that keeps it open and prints new lines as they are appended. tail -f and the F key in less use it.

for loop Scripting Basics & Exit Codes · Module 13.5

A loop that runs its body once for each word in a list, including the words produced by a glob, a command substitution, or the positional parameters.

for-in loop Text Processing: grep, sed & awk · Module 6.8

The awk loop for (key in array) that visits each subscript of an associative array, in an order POSIX does not define.

Foreground process group Robust Scripts, Traps & Debugging · Module 15.9

The set of processes that the terminal is currently connected to, which receives keyboard signals such as SIGINT.

fork Terminal, Shell & Kernel · Module 1.1

A system call that creates a child process as a copy of the caller. Bash uses it to start external programs without replacing itself.

Format string Functions, Arrays & Parameter Expansion · Module 14.8

The first argument to printf, which holds plain text and conversion specifications. The format is reused when there are more arguments than conversions.

Full backup Disks, Mounts & Archives · Module 12.10

A backup that copies every file in the set. It starts a chain, and each incremental backup depends on the full backup and the snapshots that follow it.

Function Functions, Arrays & Parameter Expansion · Module 14.1

A named block of shell commands defined as name() { ...; } and called like a command. It runs in the current shell.

getdents64 Filesystem Navigation & Inodes · Module 2.9

The system call that returns batches of directory entries, each with an inode number, a type, and a name.

getopts Terminal, Shell & Kernel · Module 1.5

A bash builtin that parses short options for shell functions and scripts, storing the current option in a variable and any option-argument in OPTARG.

GID Users, Permissions & sudo · Module 5.1

The numeric group ID that the kernel uses for group permission checks. A process has one effective GID and may also carry a list of supplementary group IDs.

Glob Filesystem Navigation & Inodes · Module 2.10

A pattern with wildcards that the shell expands to matching names before the command runs, such as the asterisk in dir/*.

Glob pattern in a test Scripting Basics & Exit Codes · Module 13.3

An unquoted word on the right side of == inside double brackets, which bash matches against the left side as a shell pattern such as *.log.

Global variable Functions, Arrays & Parameter Expansion · Module 14.2

A shell variable that is not declared local, so it is visible to the whole script and remains after a function returns.

Gzip-compressed tar archive Packages, Services & Scheduled Jobs · Module 11.10

A tar file compressed with gzip, usually named with a .tar.gz suffix, which holds a directory tree in one file.

Handshake Networking Tools · Module 16.9

The three-packet exchange that TCP performs before a connection is established, done by the kernel during connect.

Hard limit Processes, Signals & Job Control · Module 10.8

The ceiling for a resource limit, which only a privileged process may raise.

Hard link Filesystem Navigation & Inodes · Module 2.6

A second directory entry that points at the same inode. Both names are equally valid, and the link must stay on one filesystem.

Hash table Terminal, Shell & Kernel · Module 1.4

The cache bash keeps of program paths it has already found through PATH. The hash builtin lists it, and hash -r clears it.

HEAD Performance, Debugging & Power Tools · Module 18.5

The git pointer that says which branch is checked out, and so which commit a new commit uses as its parent.

Health check Robust Scripts, Traps & Debugging · Module 15.10

A test that decides whether a newly deployed release is working, here the presence of an ok file in the release directory.

Here-document Streams, Redirection & Pipes · Module 7.3

A block of text supplied as standard input to a command, written with << and ended by a line that matches the delimiter. Expansion is off when the delimiter is quoted.

Here-string Streams, Redirection & Pipes · Module 7.3

A single expanded word supplied as standard input with <<<, followed by a newline. It avoids creating a file for a short input.

Hidden file Filesystem Navigation & Inodes · Module 2.4

A name that starts with a dot. ls hides it unless you ask for it with -a or -A.

History expansion Performance, Debugging & Power Tools · Module 18.7

Shortcuts such as the double exclamation mark that rewrite a line from earlier history before it runs.

Host block Networking Tools · Module 16.6

A section of ~/.ssh/config that starts with a Host line and gives an alias its HostName, User, Port, and IdentityFile.

HTTP Range request Terminal, Shell & Kernel · Module 1.9

An HTTP request with a Range header that asks for part of a resource. A server that supports it replies 206 Partial Content with only those bytes.

Idempotent Environment, PATH & Dotfiles · Module 9.10

A property of an operation that gives the same result when repeated. A safe installer is idempotent because a second run leaves correct links alone.

IdentitiesOnly Networking Tools · Module 16.6

The ssh option that limits the client to offering the keys named in the config, instead of every key it holds.

IFS Expansion, Quoting & Word Splitting · Module 8.5

The internal field separator, a shell variable that lists the characters used for word splitting; unset means space, tab, and newline.

Incremental backup Disks, Mounts & Archives · Module 12.10

A backup that copies only the files changed since the previous backup in the chain, using a snapshot file to remember what was saved before.

Index (staging area) Performance, Debugging & Power Tools · Module 18.5

The git area that holds the content for the next commit, filled by git add and read by git commit.

Indexed array Functions, Arrays & Parameter Expansion · Module 14.3

A bash array whose elements are addressed by integer indices that start at zero, created with name=(...).

Info manual Terminal, Shell & Kernel · Module 1.6

A longer GNU manual in the info format, read with info and navigated with keys such as n, p, u, and Enter. The coreutils manual is published in this format and online.

inherit_errexit Robust Scripts, Traps & Debugging · Module 15.2

A shopt option that makes command substitutions inherit the set -e setting from the parent shell instead of clearing it.

INI file Functions, Arrays & Parameter Expansion · Module 14.10

A settings file made of sections in square brackets and key = value lines, used by many programs for configuration.

inittab Packages, Services & Scheduled Jobs · Module 11.4

A table file that lists the boot tasks and the programs the init system keeps running, with fields for id, runlevels, action, and command.

Inode Filesystem Navigation & Inodes · Module 2.5

The kernel object that holds a file's metadata and the locations of its data. A name refers to an inode through a directory entry.

inputrc Performance, Debugging & Power Tools · Module 18.7

The readline settings file, usually in the home directory, that sets variables and key bindings.

Installed database Packages, Services & Scheduled Jobs · Module 11.1

The local record a package manager keeps of installed packages, their versions, and their files. On Alpine it is /lib/apk/db/installed.

Integer truncation Expansion, Quoting & Word Splitting · Module 8.4

Division that discards the fraction and rounds toward zero, so the result of -7 / 2 is -3.

Interactive shell Environment, PATH & Dotfiles · Module 9.4

A shell with a person at the prompt. Its option flags in $- include the letter i, and it reads ~/.bashrc when it is not a login shell.

Interface Networking Tools · Module 16.1

A kernel attachment point for a network, such as a card, a virtual pair, or the loopback device, which has a name and a state.

Interpreter Scripting Basics & Exit Codes · Module 13.1

The program that reads a script and runs its commands, such as bash. The shebang line or the command you type chooses which interpreter runs the file.

Job control Processes, Signals & Job Control · Module 10.5

The shell feature that moves jobs between the foreground and background and stops or resumes them with Ctrl-Z, fg, and bg.

Job table Processes, Signals & Job Control · Module 10.5

The list of jobs that one interactive shell tracks, which jobs and fg use to find a job by number.

JSPI (JavaScript Promise Integration) Terminal, Shell & Kernel · Module 1.9

A browser feature that lets synchronous WebAssembly code pause and wait for asynchronous browser work, such as fetching disk blocks, then resume.

Kernel ring buffer Packages, Services & Scheduled Jobs · Module 11.5

The fixed-size in-memory log where the kernel writes its messages, which dmesg prints and which is cleared at reboot.

Kernel space Terminal, Shell & Kernel · Module 1.7

The privileged mode and memory where kernel code runs with full access to hardware. User programs run in user space and must ask the kernel through system calls.

Key Functions, Arrays & Parameter Expansion · Module 14.4

The string in the subscript of an associative array, such as apple in m[apple]. Keys with spaces must be quoted.

LANG Environment, PATH & Dotfiles · Module 9.8

The default locale variable. It applies to every category that is not overridden by LC_ALL or by a specific LC_* variable.

LC_ALL Environment, PATH & Dotfiles · Module 9.8

The locale variable with the highest priority. When it is set and not empty, it overrides every LC_* category variable and LANG.

LC_CTYPE Environment, PATH & Dotfiles · Module 9.8

The locale category that decides how bytes are read as characters, including whether a multibyte sequence counts as one character.

LD_LIBRARY_PATH Packages, Services & Scheduled Jobs · Module 11.3

An environment variable that adds directories to the loader search path for programs started from the shell that sets it.

ldd Packages, Services & Scheduled Jobs · Module 11.3

A command that prints the shared libraries a dynamic program needs and the path where the loader found each one.

Line continuation Expansion, Quoting & Word Splitting · Module 8.8

A backslash at the end of a line, which bash removes along with the newline so that the two lines form one command.

Line discipline Terminal, Shell & Kernel · Module 1.2

The kernel component attached to a tty that handles editing, echo, and control-key signals between the master and the slave.

LINENO Robust Scripts, Traps & Debugging · Module 15.5

A bash variable that holds the line number of the command currently being run in the script.

Link count Filesystem Navigation & Inodes · Module 2.5

The number of directory entries that refer to an inode. The data is freed only when the count is zero and no process has the file open.

listen Networking Tools · Module 16.9

The socket call that marks a bound socket as passive and ready to accept connections.

Listen mode Networking Tools · Module 16.5

The mode in which nc waits for one incoming connection on a port, selected with -l and -p in the BusyBox version.

LISTEN state Networking Tools · Module 16.3

The state of a TCP socket that is waiting for incoming connections.

Literal pattern Expansion, Quoting & Word Splitting · Module 8.10

A quoted string used in a pattern position, which matches its own characters rather than acting as a wildcard.

Literal prefilter Text Processing: grep, sed & awk · Module 6.9

A fixed string that every match of a regex must contain, which grep can search for first to reject most lines cheaply.

Load average Performance, Debugging & Power Tools · Module 18.2

The average number of runnable and waiting processes over one, five, and fifteen minutes, compared against the core count.

Loader search order Packages, Services & Scheduled Jobs · Module 11.9

The sequence of places the dynamic loader checks for a library, such as RPATH, LD_LIBRARY_PATH, RUNPATH, and the system directories.

local Environment, PATH & Dotfiles · Module 9.6

A bash builtin used inside a function to create a variable that is visible only inside that function and its calls.

local variable Functions, Arrays & Parameter Expansion · Module 14.2

A variable declared with the local builtin that exists only during one function call and is visible to functions that function calls.

Locale Environment, PATH & Dotfiles · Module 9.8

The set of language and region rules a program uses for character classes, collation, number formats, and messages. It is chosen through environment variables.

Locale collation Filesystem Navigation & Inodes · Module 2.9

The rules a program uses to order strings in the current locale. ls sorts names with them.

Locale translation Expansion, Quoting & Word Splitting · Module 8.6

The $"..." form, which looks up a translated message for the current locale and otherwise behaves like double quotes.

Log rotation Viewing Files & Text · Module 3.2

Renaming a log file and starting a new one with the old name, so that logs do not grow without bound. tail -F is built for it.

Logging daemon Packages, Services & Scheduled Jobs · Module 11.5

A background program such as syslogd or syslog-ng that receives messages from programs and sorts them into log files.

Logical path Filesystem Navigation & Inodes · Module 2.3

The path a shell tracks as the current directory, including the names of any symbolic links you passed through.

Login shell Environment, PATH & Dotfiles · Module 9.4

A shell that is the first shell of a session, such as one started by a console login or an SSH session. It reads the profile files.

Long listing format Filesystem Navigation & Inodes · Module 2.4

The ls -l output that shows type, permissions, link count, owner, group, size, time, and name for each entry.

Long option Terminal, Shell & Kernel · Module 1.5

A GNU-style option written with two hyphens and a word, such as --color=never. A required value can follow an equals sign or the next word; scripts should use the equals form.

Lookup cache Environment, PATH & Dotfiles · Module 9.3

The hash table in which bash remembers the full path of commands it has already found. The hash builtin lists it and hash -r clears it.

Loopback Networking Tools · Module 16.1

The interface lo and the 127.0.0.0/8 range, which carry traffic from a machine to itself without leaving it.

Lossless compression Disks, Mounts & Archives · Module 12.6

Compression whose output decompresses to exactly the original bytes. gzip and xz are both lossless, and they differ in ratio, speed, and memory use.

Lower layer Disks, Mounts & Archives · Module 12.9

The read-only layer of an overlay root. In this course's machine it is a disk image, and no process can change it.

lstat Filesystem Navigation & Inodes · Module 2.9

The system call that returns the metadata of a path without following a final symbolic link.

Magic number Viewing Files & Text · Module 3.6

A fixed sequence of bytes near the start of a file that identifies its format. The gzip signature starts with 1f 8b.

Major and minor numbers Filesystem Navigation & Inodes · Module 2.8

The two numbers in a device file that select the kernel driver and the particular device that driver manages.

Makefile Packages, Services & Scheduled Jobs · Module 11.2

The recipe file that make reads to decide which commands to run and in which order.

Man section Terminal, Shell & Kernel · Module 1.6

The numbered category of a man page, such as 1 for user commands, 2 for system calls, or 3 for library functions. The same name can appear in several sections, so the number selects which one you read.

Manifest Disks, Mounts & Archives · Module 12.8

A text file of checksums and file names, usually made with sha256sum and verified later with sha256sum -c. It records what a set of files should contain.

map Performance, Debugging & Power Tools · Module 18.6

A jq function that applies a filter to each element of an array and returns a new array.

mapfile Functions, Arrays & Parameter Expansion · Module 14.3

A builtin, also called readarray, that reads standard input into an indexed array with one element per line.

Minimal cron environment Packages, Services & Scheduled Jobs · Module 11.7

The short list of variables, including a small PATH, that cron gives each job, which is why jobs need absolute paths.

mktemp Robust Scripts, Traps & Debugging · Module 15.4

A utility that creates a uniquely named temporary file or, with -d, a directory, and prints the name.

Mode 600 Robust Scripts, Traps & Debugging · Module 15.4

The file permissions, owner read and write only, that mktemp gives a new file. Directories get mode 700.

Modification time (mtime) Filesystem Navigation & Inodes · Module 2.7

The timestamp of the last change to a file's contents. ls -l shows it by default.

Motion Performance, Debugging & Power Tools · Module 18.4

A vim movement such as w, b, or f followed by a character, which defines the region an operator acts on.

Mount namespace Syscalls, Namespaces & cgroups · Module 17.9

A namespace with its own mount table, so mounts made inside it are not visible outside. It is what makes pivot_root safe to use.

Mount point Filesystem Navigation & Inodes · Module 2.1

A directory in the tree where another filesystem is attached. The contents of that filesystem appear under the mount point while it is mounted.

Mount table Disks, Mounts & Archives · Module 12.2

The kernel's live list of active mounts, read from /proc/mounts. Each line gives the source, mount point, filesystem type, and options.

MTU Networking Tools · Module 16.1

The maximum transmission unit, the largest packet an interface sends without splitting it.

Named pipe (FIFO) Filesystem Navigation & Inodes · Module 2.8

A file of type p that gives two unrelated processes a rendezvous point. It holds no data on disk; the kernel moves bytes through memory.

Namespace Syscalls, Namespaces & cgroups · Module 17.5

A kernel object that gives a set of processes a private view of one global resource, such as process IDs, mounts, host name, or network interfaces.

Nanosecond time stamp Packages, Services & Scheduled Jobs · Module 11.10

A file name component from date with the N format that keeps backup names unique and in time order even when two runs share a second.

Negative offset Functions, Arrays & Parameter Expansion · Module 14.7

A substring offset that counts from the end of the value. It must be written with a space before the minus sign, as in ${name: -3}.

Netcat Networking Tools · Module 16.5

A tool that connects standard input and output to a network socket, with no protocol of its own.

Network namespace Syscalls, Namespaces & cgroups · Module 17.5

A namespace with its own network interfaces, routing tables, and firewall rules. Processes in the same network namespace share one network stack.

noclobber Streams, Redirection & Pipes · Module 7.2

A bash option, set with set -o noclobber, that makes > refuse to overwrite an existing regular file. The >| operator overrides it.

nohup Processes, Signals & Job Control · Module 10.6

A command that runs another program with SIGHUP ignored and redirects its output so the job can outlive a closed terminal.

Non-blocking lock Robust Scripts, Traps & Debugging · Module 15.7

A lock attempt that fails at once when the lock is held, as with flock -n, instead of waiting.

Non-interactive shell Environment, PATH & Dotfiles · Module 9.4

A shell that runs commands from a string or a file without a person at the prompt, such as bash script.sh or bash -c.

Non-printing sequence Environment, PATH & Dotfiles · Module 9.7

A control sequence, such as a color code, that takes no space on screen. PS1 marks these with \[ and \] so line editing counts the correct width.

Normal mode Performance, Debugging & Power Tools · Module 18.4

The vim mode where keys move the cursor and run commands, rather than inserting typed text.

nounset Robust Scripts, Traps & Debugging · Module 15.1

The bash option set -u, or set -o nounset, that treats an expansion of an unset variable as an error and exits the shell.

nsenter Syscalls, Namespaces & cgroups · Module 17.6

A command that runs a program inside the namespaces of an existing process, named with the -t option followed by a PID.

nsswitch Networking Tools · Module 16.2

The configuration file that sets the order in which the system looks up names, such as files before dns.

NUL byte Syscalls, Namespaces & cgroups · Module 17.2

A byte with the value zero. Some /proc files, such as cmdline, separate their fields with NUL bytes instead of spaces.

NUL-separated list File Manipulation, Globbing & find · Module 4.7

A list of file names separated by NUL bytes, which cannot appear in a name, so every name survives a pipeline intact.

NUL-separated records Expansion, Quoting & Word Splitting · Module 8.7

A stream where each name ends with a zero byte, which is safe because a file name cannot contain NUL.

nullglob File Manipulation, Globbing & find · Module 4.5

A shell option that makes a pattern with no matches expand to nothing, instead of staying as literal text.

Numeric owner Users, Permissions & sudo · Module 5.4

The owner or group shown as a number instead of a name, as printed by ls -ln or by stat -c with %u or %g. The kernel stores and checks this number.

Numeric sort (-n) Text Processing: grep, sed & awk · Module 6.4

A sort mode that compares fields as numbers, so 9 sorts before 10.

Octal literal Expansion, Quoting & Word Splitting · Module 8.4

A number with a leading zero, which bash reads in base 8, so 010 means 8.

Octal mode Users, Permissions & sudo · Module 5.2

A permission number written in base eight, where each digit is a sum of read 4, write 2 and execute 1 for one class.

OLDPWD Filesystem Navigation & Inodes · Module 2.2

The shell variable that holds the directory you were in before the last cd. cd minus uses it to return.

OOM killer Syscalls, Namespaces & cgroups · Module 17.7

The kernel component that stops a process when memory cannot be reclaimed, for example after a group reaches its memory limit.

Open file description Robust Scripts, Traps & Debugging · Module 15.7

The kernel object created by opening a file, which owns the position and any lock. Two separate opens of one file hold separate descriptions.

Open file limit Processes, Signals & Job Control · Module 10.8

The resource limit on how many file descriptors a process may hold open, read with ulimit -n or the open files row of /proc/PID/limits.

Operand Terminal, Shell & Kernel · Module 1.5

A non-option argument to a program, usually a file name or a value. The -- marker ends option parsing so that everything after it is an operand.

Operator Performance, Debugging & Power Tools · Module 18.4

A vim command such as d, c, or y that acts on the region chosen by a motion or text object.

OPTIND Scripting Basics & Exit Codes · Module 13.8

The variable that getopts maintains as the index of the next argument to process. Shifting by OPTIND minus 1 removes the parsed options.

Option Terminal, Shell & Kernel · Module 1.5

A word beginning with a hyphen that a program chooses to interpret as a request, such as -l or --all. Its meaning is defined by that program, not by the shell or kernel.

Option string Scripting Basics & Exit Codes · Module 13.8

The first argument to getopts, such as vn:, where each letter is a flag and a letter followed by a colon takes a value.

Orphan process Processes, Signals & Job Control · Module 10.7

A process whose parent has exited, which the kernel reparents to PID 1 or a child subreaper.

Other-write bit Users, Permissions & sudo · Module 5.10

The w bit in the other triplet, which is the value 2 in the last octal digit of a mode. A file with it set is world-writable.

Output field separator (OFS) Text Processing: grep, sed & awk · Module 6.7

The awk variable that print places between its comma-separated arguments, which is a space by default.

Overlay filesystem Terminal, Shell & Kernel · Module 1.9

A filesystem that merges read-only lower layers with a writable upper layer, so changes go to the upper layer and the lower layers stay untouched.

Overlay root Disks, Mounts & Archives · Module 12.9

A root filesystem built by merging a read-only lower layer with a writable upper layer, so the system can start from a fixed image each time.

Package revision Packages, Services & Scheduled Jobs · Module 11.1

The suffix after the upstream version, such as -r1 in 5.3.9-r1, that a distribution adds when it rebuilds a package.

Pager Viewing Files & Text · Module 3.3

A program that shows a file one screen at a time and reads its input on demand. less is the standard pager on Linux.

Pane Performance, Debugging & Power Tools · Module 18.3

A single pseudo-terminal with its own shell, shown inside a tmux window.

Parameter expansion Expansion, Quoting & Word Splitting · Module 8.2

The replacement of $name or ${name} with the value of the variable, optionally modified by an operator inside the braces.

Partition Disks, Mounts & Archives · Module 12.1

A contiguous range of blocks on a disk that the system treats as its own device, such as /dev/sda1 for the first partition of /dev/sda.

Partition table Disks, Mounts & Archives · Module 12.1

A map at the start of a disk that records where each partition begins and ends. It is stored separately from any filesystem inside the partitions.

PATH Performance, Debugging & Power Tools · Module 18.8

The list of directories bash searches for a bare command name, so a script there runs by name from anywhere.

Path walk Users, Permissions & sudo · Module 5.9

The kernel step that resolves a path one component at a time, needing search permission on each directory before it looks up the next name.

Pathname expansion Terminal, Shell & Kernel · Module 1.3

The step that matches words containing *, ?, or [ against existing file names, also called globbing.

Pattern space Text Processing: grep, sed & awk · Module 6.6

The buffer in sed that holds the current line while the editing commands run on it. The line is printed at the end of the cycle unless a command suppresses it.

Pattern substitution Functions, Arrays & Parameter Expansion · Module 14.6

The ${var/pattern/text} form that replaces the first match, and the double slash form that replaces every match.

Pattern trimming Expansion, Quoting & Word Splitting · Module 8.2

Removing a prefix or suffix that matches a pattern, using the # and % operators with either one or two characters.

Percent escape in crontab Packages, Services & Scheduled Jobs · Module 11.7

A backslash placed before a percent sign in a crontab command so that cron passes a literal percent sign to the command.

Permission class Users, Permissions & sudo · Module 5.2

One of the three sets of bits, for owner, group and others, that the kernel chooses for a process. Only the first matching class is checked.

Permission triplet Users, Permissions & sudo · Module 5.2

One of the three groups of r, w, and x letters in a mode, for owner, group, and other. The kernel uses exactly one triplet for each access.

pgrep Processes, Signals & Job Control · Module 10.2

A command that prints the PIDs of processes whose names match a pattern, useful in scripts.

Physical path Filesystem Navigation & Inodes · Module 2.3

The real location of a directory after all symbolic links are resolved. pwd -P prints it.

PID Processes, Signals & Job Control · Module 10.1

The process ID, a unique number the kernel gives each running process and uses to track it.

PID 1 and init Packages, Services & Scheduled Jobs · Module 11.4

The first user-space process the kernel starts. It starts the boot tasks and services, and it reaps orphaned processes.

PID namespace Syscalls, Namespaces & cgroups · Module 17.5

A namespace that gives processes their own numbering. The first process started inside it is PID 1 there, and the processes outside still have their normal PIDs.

Pipe Syscalls, Namespaces & cgroups · Module 17.3

A pair of descriptors, one for reading and one for writing, that the shell connects between the stages of a pipeline.

pipefail Terminal, Shell & Kernel · Module 1.8

A bash option, enabled with set -o pipefail, that makes a pipeline's exit status the rightmost nonzero status of its commands instead of only the last command's status.

Pipeline Expansion, Quoting & Word Splitting · Module 8.9

One or more simple commands joined by a pipe, where each command runs in its own child process.

Pipeline exit status Streams, Redirection & Pipes · Module 7.5

The status a pipeline reports, which by default is the status of its last command. PIPESTATUS keeps the status of every stage of the most recent pipeline.

Pipeline stage Text Processing: grep, sed & awk · Module 6.10

One command in a pipeline, which reads the previous stage output on standard input and passes its own output to the next stage.

Pipeline subshell Scripting Basics & Exit Codes · Module 13.6

The subshell that bash starts for the commands of a pipeline, so that variables set by a while loop at the end of a pipe are lost when the pipe ends.

PIPESTATUS Terminal, Shell & Kernel · Module 1.8

A bash array that holds the exit status of each command in the most recent pipeline. It is overwritten by the next command, so it must be read immediately.

pivot_root Syscalls, Namespaces & cgroups · Module 17.8

A system call that swaps the root filesystem of the calling mount namespace, moving the old root under a new directory so that it can be unmounted.

Plain text storage Scripting Basics & Exit Codes · Module 13.10

Keeping a small data set in a text file with one record per line, which tools such as grep, sed, and read can process without a database.

Port Networking Tools · Module 16.3

A number from 1 to 65535 that lets many programs share one IP address, with 1 to 1023 reserved for system services.

Positional parameter Functions, Arrays & Parameter Expansion · Module 14.1

A numbered argument such as $1 or $#, which inside a function describes the arguments of that call rather than the script.

Positional parameters Expansion, Quoting & Word Splitting · Module 8.5

The arguments of the current shell or function, numbered $1, $2, and so on, that set -- can replace and $# can count.

POSIX sh Robust Scripts, Traps & Debugging · Module 15.8

The shell language defined by the POSIX standard, which every compliant shell supports, as opposed to the extensions that bash adds.

PPID Processes, Signals & Job Control · Module 10.1

The parent process ID, which is the PID of the process that created this process.

Prefix Packages, Services & Scheduled Jobs · Module 11.2

The top directory that a build installs into, set with --prefix, such as $HOME/.local for an install without root.

Prefix assignment Environment, PATH & Dotfiles · Module 9.1

A NAME=value written directly before a command, which gives that one command the value without changing the shell variable.

Prefix key Performance, Debugging & Power Tools · Module 18.3

The key, Ctrl-b by default, that you press before a tmux command key; a config file can change it.

Prefix length Networking Tools · Module 16.1

The number after the slash in an address, such as /24, which says how many leading bits identify the network.

Pressure stall information Performance, Debugging & Power Tools · Module 18.2

Kernel files under /proc/pressure that report the share of time tasks waited on a resource, averaged over ten, sixty, and three hundred seconds.

Print0 Expansion, Quoting & Word Splitting · Module 8.7

The find option that writes each name followed by a NUL byte, for use with a NUL-aware reader such as read -d ''.

printf Functions, Arrays & Parameter Expansion · Module 14.8

A builtin that prints its arguments according to a format string with conversions such as %s, %d, and %.2f. It adds no newline by itself.

printf -v Functions, Arrays & Parameter Expansion · Module 14.8

The printf option that stores the formatted result in a variable instead of printing it.

Printf %q Expansion, Quoting & Word Splitting · Module 8.8

A printf format that writes its argument quoted so that the shell reads it back as the same text.

Private key Networking Tools · Module 16.6

The half of an SSH key pair that stays on your machine and proves your identity without being sent.

Probe timeout Networking Tools · Module 16.10

A limit on how long a connection test may wait, so that a filtered address cannot stall the whole probe.

Process Processes, Signals & Job Control · Module 10.1

A running instance of a program, with its own PID, memory, and open file descriptors.

Process group Processes, Signals & Job Control · Module 10.5

A set of related processes, such as a pipeline or a job, that receive terminal signals together.

Process state Processes, Signals & Job Control · Module 10.1

The condition the kernel records for a process, shown in the STAT column of ps, such as R, S, D, T, or Z.

Process substitution Streams, Redirection & Pipes · Module 7.7

A bash construct, written <(command) or >(command), that provides a file-like path connected to the output or input of a command, so tools that need file names can use live streams.

Process table Processes, Signals & Job Control · Module 10.2

The kernel list of every process, with the fixed number of slots that limits how many processes can exist at once.

Prompt escape Environment, PATH & Dotfiles · Module 9.7

A backslash sequence in PS1, such as \u or \w, that bash expands to a user name, host name, directory, or other value when it draws the prompt.

PROMPT_COMMAND Environment, PATH & Dotfiles · Module 9.7

A bash variable that holds a command to run each time bash is about to draw the prompt, useful for work that must refresh before every prompt.

Pruning File Manipulation, Globbing & find · Module 4.6

The find action -prune, which stops the walk from descending into a directory that matched the test before it.

PS1 Environment, PATH & Dotfiles · Module 9.7

The shell variable that holds the prompt template. Bash expands its backslash escapes each time it draws the prompt.

PS4 Robust Scripts, Traps & Debugging · Module 15.5

The prompt string that starts every xtrace line. It is expanded each time, so it can include LINENO for line numbers.

Pseudo-terminal (pty) Terminal, Shell & Kernel · Module 1.2

A linked pair of kernel devices, a master and a slave, that lets a program act like a terminal. The slave appears as /dev/pts/N.

pstree Processes, Signals & Job Control · Module 10.2

A command that draws the parent and child relationships of processes as indented text, with -p adding the PIDs.

ptrace Syscalls, Namespaces & cgroups · Module 17.1

The kernel interface that lets one process stop another at each system call and read its state. strace uses it to print the trace.

Public key Networking Tools · Module 16.6

The half of an SSH key pair that you place on a server to let it verify your private key.

Quote removal Terminal, Shell & Kernel · Module 1.3

The final expansion step, which deletes the quote characters so the program receives the text without them.

Quote-closing trick Expansion, Quoting & Word Splitting · Module 8.8

The '\'' sequence that places a literal single quote inside a string written with single quotes.

Ranking pipeline Text Processing: grep, sed & awk · Module 6.4

The sort, uniq -c, and sort -rn sequence that counts repeated lines and orders them from most to least frequent.

Raw mode Terminal, Shell & Kernel · Module 1.2

A tty mode in which each byte is delivered immediately, without line editing or echo. Full-screen programs such as vim use it.

Raw output Performance, Debugging & Power Tools · Module 18.6

jq output with strings printed without JSON quotes, selected by the -r option.

read -r Functions, Arrays & Parameter Expansion · Module 14.10

The read option that treats backslashes as ordinary characters instead of escapes, so a line is stored exactly as written.

read builtin Scripting Basics & Exit Codes · Module 13.6

A builtin that reads one line from standard input into named variables, and returns status 1 at end of input.

Read with -r Expansion, Quoting & Word Splitting · Module 8.5

The option that stops read from treating backslashes as escape characters, which matters for every line you read in a script.

Read-only image Disks, Mounts & Archives · Module 12.9

A filesystem image on a block device that the kernel marks read-only, so no write can change its contents, even by root.

Readline Performance, Debugging & Power Tools · Module 18.7

The library that edits the command line in an interactive bash session, where each editing action has a name.

Real time Performance, Debugging & Power Tools · Module 18.1

The wall-clock time that passes between starting and finishing a command, as a stopwatch would measure it.

Reaper Processes, Signals & Job Control · Module 10.7

Any process that calls wait on its children, such as the shell, PID 1, or a supervisor, which lets their exit status be collected.

Reason phrase Networking Tools · Module 16.4

The human-readable text after the status code in an HTTP status line, such as Not Found, which programs should not rely on.

Record and field Text Processing: grep, sed & awk · Module 6.7

In awk a record is one input line, and a field is one of the pieces of a record separated by FS. NR counts records and NF counts fields.

Recursion Filesystem Navigation & Inodes · Module 2.10

A function that calls itself on a smaller part of the problem, such as a subdirectory. Each call needs its own local variables.

Recursive change Users, Permissions & sudo · Module 5.3

A chmod or chown run with -R, which applies the change to a directory and everything under it. It should be checked with find before it is used.

Redirection Expansion, Quoting & Word Splitting · Module 8.9

An instruction that changes where a command reads or writes a file descriptor, performed in the child before execve.

Regular expression match Scripting Basics & Exit Codes · Module 13.3

The =~ operator inside double brackets. The right side is a POSIX extended regular expression, and storing it in a variable keeps it intact.

Relatime Filesystem Navigation & Inodes · Module 2.7

A mount option that updates the access time only when it is older than the modification time or more than a day old.

Relative path Filesystem Navigation & Inodes · Module 2.2

A path that does not begin with a slash, so the kernel starts the walk at the current working directory.

Relative symbolic link Filesystem Navigation & Inodes · Module 2.6

A symbolic link whose stored target does not start with a slash. The kernel resolves it from the directory that contains the link.

Release directory Robust Scripts, Traps & Debugging · Module 15.10

A directory that holds one complete version of an application, which a deploy makes live by pointing a link at it.

Relocation Packages, Services & Scheduled Jobs · Module 11.9

The adjustment of code and data that refer to addresses, done after a shared library is mapped at a run-time address.

Report heading Performance, Debugging & Power Tools · Module 18.10

A fixed-pattern line before each section of a health report, so a script can split the report by section.

Repository index Packages, Services & Scheduled Jobs · Module 11.1

The metadata a package manager downloads from a remote repository to find available packages and their dependencies.

Request line Networking Tools · Module 16.4

The first line of an HTTP request, which names the method, the path, and the protocol version.

Requested mode Users, Permissions & sudo · Module 5.5

The mode a program asks for when it creates a file. The umask removes bits from this request, so the final mode is never more permissive than the request.

Required expansion Functions, Arrays & Parameter Expansion · Module 14.5

The ${var:?message} form that prints the message and exits a non-interactive shell when var is unset or empty.

Reserved word Terminal, Shell & Kernel · Module 1.3

A shell keyword such as if, then, or do. Bash recognizes it only in command position and only when it is not quoted.

resolv.conf Networking Tools · Module 16.2

The file listing the DNS servers and search domains that the resolver uses for names.

respawn Packages, Services & Scheduled Jobs · Module 11.4

An inittab action that runs a command again each time it exits, which keeps a console login available.

Restart limit Processes, Signals & Job Control · Module 10.10

The maximum number of times a supervisor restarts a failing command, after which it gives up with the last status.

return Functions, Arrays & Parameter Expansion · Module 14.1

A builtin that leaves a function and sets its exit status from 0 to 255. Unlike exit, it does not end the whole script.

Reverse incremental search Performance, Debugging & Power Tools · Module 18.7

The readline search started by Ctrl-r, which finds the most recent history line containing the text you type.

Rollback Robust Scripts, Traps & Debugging · Module 15.10

Restoring the previous working state after a change fails, such as pointing a link back at the last healthy release.

Root Users, Permissions & sudo · Module 5.1

The account with UID 0. The kernel lets root bypass most of the discretionary permission checks, so ordinary work should run under a normal account.

Root directory Filesystem Navigation & Inodes · Module 2.1

The top of the filesystem tree, written as a single slash. Every absolute path starts here.

Root filesystem Syscalls, Namespaces & cgroups · Module 17.10

The directory tree that a process sees as /. A chroot target needs its own root filesystem with the programs and libraries its commands use.

Round trip Disks, Mounts & Archives · Module 12.6

Compressing data and then decompressing it to compare the result with the original. A matching round trip is the test that a compressed file is usable.

Routing table Networking Tools · Module 16.2

The kernel table that maps destination networks to the interface and gateway that should carry each packet.

rsync Networking Tools · Module 16.7

A tool that copies trees and sends only the differences between source and destination, optionally over ssh.

Running total Text Processing: grep, sed & awk · Module 6.8

A value that an awk program adds to for each record, such as a sum or a count stored under a key, and prints after the input ends.

SC2086 Robust Scripts, Traps & Debugging · Module 15.6

The ShellCheck code for an unquoted variable that is subject to word splitting and globbing.

Scheduler Performance, Debugging & Power Tools · Module 18.10

A tool such as cron that runs a command later with a minimal environment, so the script must set its own paths.

Script loader Scripting Basics & Exit Codes · Module 13.9

The kernel component that handles a file starting with #!, reads the interpreter path and at most one argument, and starts the interpreter with the script path.

Search permission Users, Permissions & sudo · Module 5.6

The execute bit on a directory, which lets a process pass through it to reach the entries inside.

Seccomp Syscalls, Namespaces & cgroups · Module 17.9

A kernel filter that allows or blocks system calls for a process. The Seccomp line in /proc/PID/status shows whether a filter is active.

Section header Functions, Arrays & Parameter Expansion · Module 14.10

A line such as [server] that starts a group of keys in an INI file. The parser prefixes each later key with the section name.

Seek Viewing Files & Text · Module 3.9

Moving the read position of an open file without reading data. Seeking is cheap, and it is why a pager can open large files at once.

select Performance, Debugging & Power Tools · Module 18.6

A jq function that keeps a value only when its condition is true, such as select(.active).

seq Scripting Basics & Exit Codes · Module 13.5

A GNU coreutils command that prints a range of numbers, one per line. It is useful when the bounds come from variables.

Service worker Terminal, Shell & Kernel · Module 1.9

A browser script that sits between a page and the network and can answer requests from its own cache.

Session Performance, Debugging & Power Tools · Module 18.3

A named group of tmux windows, the top level of the session, window, and pane hierarchy.

setgid bit Users, Permissions & sudo · Module 5.7

The mode bit with value 2. On a program it sets the effective GID to the file group, and on a directory new entries inherit the directory group.

Setuid bit Users, Permissions & sudo · Module 5.7

A mode bit that makes an executable run with its owner effective user ID. It is shown as s in the owner execute position.

SHA-256 digest Disks, Mounts & Archives · Module 12.8

The 256-bit output of the SHA-256 hash function, usually written as 64 hexadecimal digits. sha256sum prints it for each file it reads.

Shadowing Functions, Arrays & Parameter Expansion · Module 14.2

The effect of a local variable hiding a global variable with the same name while the function that declared it is running.

Shared library Packages, Services & Scheduled Jobs · Module 11.3

A library file that many programs can map into memory at once, instead of copying its code into each program.

Shared library mapping Syscalls, Namespaces & cgroups · Module 17.4

A memory region created when the dynamic loader maps a shared library file into a process, so one copy of the code can serve many processes.

Shebang Terminal, Shell & Kernel · Module 1.10

The #! line at the top of a script. The kernel uses it to choose the interpreter that runs the file, such as /usr/bin/env bash.

Shell function Terminal, Shell & Kernel · Module 1.4

A named group of commands defined inside the shell. It is checked after aliases and before builtins and programs.

Shell pattern Functions, Arrays & Parameter Expansion · Module 14.6

A wildcard pattern made of star, question mark, and brackets, as used in file name matching and in parameter trimming. It is not a regular expression.

Shell variable Environment, PATH & Dotfiles · Module 9.1

A name and value that bash keeps in its own memory. Programs that bash starts cannot see it unless it is exported.

ShellCheck Robust Scripts, Traps & Debugging · Module 15.6

A static analysis tool for shell scripts that reports risky constructs by code, such as SC2086 for an unquoted variable.

shift Scripting Basics & Exit Codes · Module 13.2

A builtin that removes the first positional parameter and renumbers the rest. shift N removes N parameters at once.

Short-circuit operator Scripting Basics & Exit Codes · Module 13.7

The && and || operators, which run the right side only when the left side's status makes it necessary.

Shortest and longest match Expansion, Quoting & Word Splitting · Module 8.2

With # or %, one character means the shortest match and two characters mean the longest match.

SIGHUP Processes, Signals & Job Control · Module 10.6

The signal the kernel sends when the controlling terminal closes, which terminates processes that do not ignore it.

SIGINT Processes, Signals & Job Control · Module 10.9

The interrupt signal that Ctrl-C generates for the foreground process group, which a program may catch.

SIGKILL Processes, Signals & Job Control · Module 10.4

The signal that cannot be caught, blocked, or ignored, so the kernel ends the process directly.

Signal Processes, Signals & Job Control · Module 10.4

A small numbered message the kernel delivers to a process, such as SIGTERM, SIGINT, or SIGKILL.

Signal disposition Processes, Signals & Job Control · Module 10.6

The action a process takes for a signal, such as default, caught by a handler, or ignored, shown in SigIgn and SigCgt.

Signal exit status Terminal, Shell & Kernel · Module 1.8

The status 128 plus N that the shell reports for a process killed by signal N, such as 130 for Ctrl-C (SIGINT) and 143 for SIGTERM.

SIGPIPE Streams, Redirection & Pipes · Module 7.5

A signal the kernel sends to a process that writes to a pipe whose read end is closed. It normally ends the writer, which is why yes stops when head exits.

SIGTERM Processes, Signals & Job Control · Module 10.4

The default signal that kill sends, which a program can catch to clean up before it exits.

SIGTTIN Processes, Signals & Job Control · Module 10.5

The signal the kernel sends to a background process that tries to read from the terminal, which stops the process.

Single quotes Expansion, Quoting & Word Splitting · Module 8.6

Quotes that make every character inside them literal, including dollar signs, backslashes, and spaces.

Snapshot file Disks, Mounts & Archives · Module 12.10

The record that GNU tar keeps with --listed-incremental. Reusing it makes the next run incremental, and deleting it makes the next run a full backup.

Socket Filesystem Navigation & Inodes · Module 2.8

A file of type s that is an endpoint for communication between processes on one machine. The kernel moves the messages in memory.

Soft limit Processes, Signals & Job Control · Module 10.8

The resource limit the kernel enforces now, which a process may raise up to the hard limit.

Sort key Text Processing: grep, sed & awk · Module 6.4

A field, or a range of fields, that sort compares, written with -k and optionally followed by n for numeric or r for reverse order.

Sparse array Functions, Arrays & Parameter Expansion · Module 14.3

An indexed array with gaps in its indices, which appears after assigning to a high index or after unset removes an element.

Sparse file Filesystem Navigation & Inodes · Module 2.4

A file whose logical size is larger than the blocks it allocates, because some ranges were never written. ls -s shows the allocated size.

split Streams, Redirection & Pipes · Module 7.6

A utility that writes its input to a series of smaller files with predictable names, such as part-aa and part-ab, each holding a fixed number of lines or bytes.

Squeezing Text Processing: grep, sed & awk · Module 6.5

Reducing each run of the same character in a set to a single copy, which tr -s does for spaces and other characters.

Stack region Syscalls, Namespaces & cgroups · Module 17.4

The memory region marked [stack] in /proc/PID/maps. It holds return addresses and local variables for function calls and grows downward.

Standard error Streams, Redirection & Pipes · Module 7.1

The output stream on descriptor 2 that carries diagnostics and error messages, kept separate from standard output so that data and complaints can go to different places.

Standard input Viewing Files & Text · Module 3.1

The stream a program reads when no file is named. It is usually connected to the keyboard or to the output of a pipe.

Standard streams Syscalls, Namespaces & cgroups · Module 17.3

The three descriptors every command starts with: 0 for standard input, 1 for standard output, and 2 for standard error.

stat Users, Permissions & sudo · Module 5.2

A command that reports the attributes of a file. With the -c option and formats such as %A, %a, and %n, it prints the symbolic mode, the octal mode, and the name directly.

Stateful tracking Networking Tools · Module 16.8

A firewall feature that remembers connections it has seen, so replies to outgoing requests are allowed without extra rules.

Static analysis Robust Scripts, Traps & Debugging · Module 15.6

Checking code without running it, so the tool sees the source but not the values that exist at run time.

Static binary Syscalls, Namespaces & cgroups · Module 17.10

A program built with all its libraries linked in, so it needs no shared libraries from the root filesystem. It is the simplest program to place in a minimal root.

Status line Networking Tools · Module 16.4

The first line of an HTTP response, such as HTTP/1.1 200 OK, which carries the three-digit status code.

Step value Packages, Services & Scheduled Jobs · Module 11.6

A crontab field form such as */15 that means regular points across a field, such as every fifteen minutes.

Sticky bit Users, Permissions & sudo · Module 5.7

A mode bit on a shared directory that lets a user remove only the entries they own. It is shown as t in the others execute position.

strace Terminal, Shell & Kernel · Module 1.1

A tool that prints the system calls a process makes, which lets you see a program talk to the kernel.

strace summary mode Performance, Debugging & Power Tools · Module 18.9

The strace -c option, which prints the number of calls and the time spent in each system call instead of a full trace.

Stream pattern Networking Tools · Module 16.7

Copying data through a pipe, such as tar writing an archive that a second tar reads, which is the idea behind copies over ssh.

Strict mode Performance, Debugging & Power Tools · Module 18.8

The set -euo pipefail setting that stops a script at the first failed command, unset variable, or failed pipeline stage.

su Users, Permissions & sudo · Module 5.8

A command that starts a shell as another user, normally root, after asking for that account password. The shell lasts until you exit it.

Subcommand Scripting Basics & Exit Codes · Module 13.10

A word such as add, list, or done that selects one of a script's jobs, usually handled by a case statement on the first argument.

Subreaper Processes, Signals & Job Control · Module 10.7

A process that has marked itself to adopt orphaned descendants, so those orphans are collected by it rather than by PID 1.

Subshell Filesystem Navigation & Inodes · Module 2.3

A copy of the shell started by parentheses. It has its own working directory, so a cd inside it does not affect the outer shell.

Substitute command Text Processing: grep, sed & awk · Module 6.6

The sed command s/old/new/ that replaces the first match on each line, with the g flag replacing every match.

Substring expansion Functions, Arrays & Parameter Expansion · Module 14.7

The ${name:offset:length} form that cuts characters from a zero-based offset.

Substring slicing Expansion, Quoting & Word Splitting · Module 8.2

The ${name:offset:length} form, which returns part of a value counting from zero.

sudo Users, Permissions & sudo · Module 5.8

A command that runs one command with the rights granted by the sudoers policy, using your own password and logging the use.

sudoers Users, Permissions & sudo · Module 5.8

The policy file that says which accounts may run which commands through sudo, usually at /etc/sudoers. Only root reads and edits it.

Supervision Packages, Services & Scheduled Jobs · Module 11.4

Keeping a service running by restarting it when it exits, often with limits on how fast restarts may happen.

Supervisor Processes, Signals & Job Control · Module 10.10

A program that starts another program, watches its exit status, and restarts it when it fails, up to a limit.

Supplementary group Users, Permissions & sudo · Module 5.1

A group, besides the primary group, that a process belongs to. The kernel checks these memberships when it chooses the group class of bits.

Swapping Performance, Debugging & Power Tools · Module 18.2

Moving memory pages to and from swap space on disk; nonzero si and so values during a slow task show it is happening now.

Symbol binding Packages, Services & Scheduled Jobs · Module 11.9

Connecting a call in a program to the address of a function in a shared library, either at load time or at the first call.

Symbolic link Filesystem Navigation & Inodes · Module 2.6

A file whose data is a path. The kernel follows it during lookup, and it can point anywhere or dangle.

Symbolic mode Users, Permissions & sudo · Module 5.3

A chmod form such as u+x or go-w that adds, removes or sets bits for named classes, leaving the other bits unchanged.

SYNOPSIS Terminal, Shell & Kernel · Module 1.6

The section of a man page that gives the command syntax in compact notation, where square brackets mark optional items, an ellipsis marks repetition, and a vertical bar separates alternatives.

System call Terminal, Shell & Kernel · Module 1.1

A controlled request from a program to the kernel, such as opening a file or writing to a descriptor.

System time Performance, Debugging & Power Tools · Module 18.1

The CPU time the kernel spends on a program's behalf, such as reading files, allocating memory, and creating processes.

Tar archive Disks, Mounts & Archives · Module 12.5

A single file that stores a tree of files and directories as a sequence of headers and data, preserving names, modes, and structure. Tar does not compress or checksum by itself.

tee Streams, Redirection & Pipes · Module 7.6

A command that copies its standard input to standard output and to each named file, letting a pipeline save an intermediate result without changing the data that follows.

Teletype (TTY) Terminal, Shell & Kernel · Module 1.2

A keyboard and printer connected over a serial line, whose name survives in the Unix tty devices and the tty command.

Template Robust Scripts, Traps & Debugging · Module 15.4

The pattern given to mktemp, whose trailing X characters are replaced by random characters to make the name unique.

Terminal control characters Processes, Signals & Job Control · Module 10.9

The control keys such as intr, quit, and susp that the terminal settings map to bytes, which stty -a lists.

Terminal emulator Terminal, Shell & Kernel · Module 1.2

A graphical program that draws a grid of characters and sends your keys to a pseudo-terminal, standing in for a hardware terminal.

Terminfo Terminal, Shell & Kernel · Module 1.2

A database of escape sequences for each terminal type, named by the TERM variable, that programs use to clear the screen and move the cursor.

Test -L Filesystem Navigation & Inodes · Module 2.10

The shell test that is true when a path is a symbolic link, whether or not the target exists.

test builtin Scripting Basics & Exit Codes · Module 13.3

The command test, also written as the bracket [, which checks files, strings, and numbers and returns 0 when the check is true.

Text object Performance, Debugging & Power Tools · Module 18.4

A named region in vim, such as iw or i followed by a quote, that an operator can act on regardless of the cursor position inside it.

Tilde expansion Filesystem Navigation & Inodes · Module 2.2

The shell step that replaces a leading tilde with a home directory path before the command runs. A bare tilde means the value of HOME.

Time fields Packages, Services & Scheduled Jobs · Module 11.6

The five fields before the command in a crontab line: minute, hour, day of month, month, and day of week.

Time stamp since boot Packages, Services & Scheduled Jobs · Module 11.5

The seconds counted from kernel start, shown in brackets by dmesg, which must be converted before it is compared with wall-clock logs.

TIMEFORMAT Performance, Debugging & Power Tools · Module 18.1

A bash shell variable that sets the layout of the time report, using escapes such as %R for elapsed seconds.

timeout Packages, Services & Scheduled Jobs · Module 11.8

A coreutils command that runs another command with a time limit, and exits with status 124 when the limit is reached.

timeout command Networking Tools · Module 16.5

The coreutils command that runs another command and stops it after a set number of seconds.

TMPDIR Robust Scripts, Traps & Debugging · Module 15.4

An environment variable that names the default directory for temporary files, used by mktemp when the template has no directory part.

tmpfs Terminal, Shell & Kernel · Module 1.9

A filesystem whose contents live in memory rather than on disk, so its data is lost when the memory is discarded.

tmux server Performance, Debugging & Power Tools · Module 18.3

The background process that owns the shells and sessions, so a client can detach and attach again without stopping the work.

Token Terminal, Shell & Kernel · Module 1.3

A word or operator produced when bash breaks a line of input apart, with quoting controlling where the boundaries fall.

Trace prefix Robust Scripts, Traps & Debugging · Module 15.5

The text printed at the start of each xtrace line, by default a plus sign and a space, which can be changed with PS4 to show more context.

Trailing newline stripping Expansion, Quoting & Word Splitting · Module 8.3

The removal of every newline at the end of a substitution's output, which bash performs automatically.

Trailing slash Networking Tools · Module 16.7

A slash after a source directory in rsync, which copies the contents of the directory instead of the directory itself.

Translation sets Text Processing: grep, sed & awk · Module 6.5

The two lists of characters given to tr, SET1 and SET2, where each character in SET1 maps to the character at the same position in SET2.

trap Robust Scripts, Traps & Debugging · Module 15.3

The builtin that registers an action to run when the shell receives a signal or a condition such as EXIT.

Truncation Streams, Redirection & Pipes · Module 7.2

Emptying a file when it is opened for writing. The > redirection truncates its target before the command runs, even if the command later fails.

type -t Terminal, Shell & Kernel · Module 1.10

A bash builtin that prints one word for a name: alias, keyword, function, builtin, or file, and prints nothing when the name is not found.

UID Users, Permissions & sudo · Module 5.1

The numeric user ID that the kernel uses to identify the owner of a process and of a file. Names such as user are looked up from the number through the password file.

ulimit Processes, Signals & Job Control · Module 10.8

The shell builtin that reads and sets the resource limits of the shell and the programs it starts.

Umask Disks, Mounts & Archives · Module 12.7

A mask of permission bits that the shell removes from the mode of every new file it creates. A common umask of 022 turns a requested 666 into 644.

Unified diff Viewing Files & Text · Module 3.7

A diff format that shows a few lines of context around each change, with plus and minus signs. It is the format used by patches.

Unified hierarchy Syscalls, Namespaces & cgroups · Module 17.7

The single cgroup tree used by cgroups v2, in which every controller is attached to the same hierarchy. It is mounted with type cgroup2.

unkernel Terminal, Shell & Kernel · Module 1.9

The Linux kernel source compiled to WebAssembly and run inside the lab's browser tab, with an unmodified Alpine userland on top.

Unset variable Functions, Arrays & Parameter Expansion · Module 14.4

A variable that has never been assigned or that unset removed. It differs from a variable that is set to the empty string.

Unset variable error (set -u) Performance, Debugging & Power Tools · Module 18.10

The error that set -u raises when a script refers to a variable or parameter that has no value.

unshare Syscalls, Namespaces & cgroups · Module 17.6

A command that runs a program in new namespaces chosen by flags such as --pid, --mount, --uts, --net, and --user.

until loop Scripting Basics & Exit Codes · Module 13.5

A loop that repeats its body while its condition fails, and stops when the condition succeeds.

Upper layer Disks, Mounts & Archives · Module 12.9

The writable layer of an overlay. In this course's machine it lives in memory, so anything written to the root is lost when the page reloads.

Usage error Text Processing: grep, sed & awk · Module 6.10

An error in how a command was invoked, such as a missing argument, that a well-behaved script reports on standard error with exit status 2.

Usage message Networking Tools · Module 16.10

The text a script prints to standard error when it is called with the wrong arguments, paired with a distinct exit status.

User namespace Syscalls, Namespaces & cgroups · Module 17.6

A namespace that maps user and group IDs, so a process can hold root IDs inside it while remaining an ordinary user outside.

User time Performance, Debugging & Power Tools · Module 18.1

The CPU time a program spends running its own code.

UTF-8 Viewing Files & Text · Module 3.5

A variable-width encoding of Unicode in which ASCII characters take one byte and other characters take two to four bytes.

UTS namespace Syscalls, Namespaces & cgroups · Module 17.5

A namespace that isolates the host name and the domain name, so a change inside it does not affect the rest of the system.

Vi editing mode Performance, Debugging & Power Tools · Module 18.7

A readline mode that gives the command line normal and insert modes, similar to vim, set through inputrc.

Virtual filesystem Filesystem Navigation & Inodes · Module 2.1

A filesystem whose contents the kernel generates on demand, such as /proc and /sys. Its files do not occupy a disk.

Virtual memory area Syscalls, Namespaces & cgroups · Module 17.4

A contiguous region of a process address space with one set of permissions and one backing, such as a file, the heap, or the stack. Also written VMA.

visudo Users, Permissions & sudo · Module 5.8

The editor that locks sudoers during an edit and checks the syntax before saving, which protects against a lockout.

Wait and reaping Processes, Signals & Job Control · Module 10.3

A parent collecting a child exit status with wait, which removes the child entry from the process table.

while loop Scripting Basics & Exit Codes · Module 13.5

A loop that repeats its body as long as its condition command succeeds. The condition is tested before each pass.

Whiteout Disks, Mounts & Archives · Module 12.4

A marker in the upper layer of an overlay that hides a file from a lower layer after it is deleted, without changing the read-only lower layer.

Whole-word match Text Processing: grep, sed & awk · Module 6.2

A match that is bordered by non-word characters or the ends of the line, requested with grep -w so that log does not match inside blog.

Word splitting Terminal, Shell & Kernel · Module 1.3

The step that breaks unquoted results of expansion into separate words at the characters in IFS, which are spaces, tabs, and newlines by default.

Working directory Filesystem Navigation & Inodes · Module 2.3

The directory each process uses to resolve relative paths. Each process has its own copy, and a child cannot change its parent.

World-writable file Users, Permissions & sudo · Module 5.10

A file whose other-write bit is set, so every account on the system may change its contents. Auditors look for these files to find mistakes.

Write on a directory Users, Permissions & sudo · Module 5.6

The w bit on a directory, which is needed to create, remove, or rename entries in it. A file can be deleted without write on the file itself, if the directory allows it.

xtrace Robust Scripts, Traps & Debugging · Module 15.5

The set -x option, also called tracing, that prints each command after expansion to standard error before it runs.

Zombie process Processes, Signals & Job Control · Module 10.7

A process that has exited but still has an entry in the process table until its parent calls wait.