fc-list
List available fonts
TLDR
Return a list of installed fonts in your system
Return a list of installed fonts with given name
Return the number of installed fonts in your system
Return a list of installed fonts that support the language based on its locale code
Return a list of installed fonts that contain the glyph specified by its Unicode code-point
SYNOPSIS
fc-list [-lnr] [first [last]]
Options:
-l: Lists the commands.
-n: Suppresses line numbers.
-r: Reverses display order (newest first).
Arguments:
first: Specifies the starting history entry (number or string).
last: Specifies the ending history entry (number or string).
PARAMETERS
-l
Lists the commands from history. This option is often implicit but can be used for clarity.
-n
Suppresses the display of line numbers for each history entry.
-r
Reverses the order of the displayed commands, showing the newest first.
first
Specifies the starting history entry. Can be a positive number (absolute index), a negative number (relative from current), or a string (to search for the most recent command starting with that string).
last
Specifies the ending history entry. Behaves identically to first.
DESCRIPTION
fc-list is a shell builtin command that displays entries from the command history list. It allows users to view specific ranges or all history entries, offering options to control output format like line numbers and order. It's often used to identify commands for re-execution or editing via the fc command, serving as the "listing" component of the history mechanism. Its primary function is to provide a quick reference to previously executed commands for auditing or recall.
CAVEATS
fc-list is a shell builtin, not an external executable. Its behavior can vary slightly between shells like bash and ksh, and it relies on the shell's history configuration (e.g., HISTFILE, HISTSIZE). In bash, it's often an alias or implemented via the history builtin, making history -l functionally similar.
INTEGRATION WITH <B>FC</B>
While fc-list only displays history, it's intrinsically linked to the broader fc (fix command) utility, which allows users to edit and re-execute commands identified by fc-list.
SHELL BUILTIN NATURE
Unlike most commands, fc-list is not a standalone executable file but a command built directly into the shell itself. This means its presence and exact features are determined by the shell (e.g., bash, ksh) you are using.
HISTORY
The concept of advanced history manipulation, including listing and editing, originated with the fc command in the KornShell (ksh). The fc-list aspect specifically deals with displaying these entries. Later, shells like bash adopted similar robust history features, often integrating fc-list's functionality into their own history builtin, making it a standard way to interact with command history.