Alias
An alias is an alternative name by which an entity, command, parameter, or resource can be referred to.
Elasticsearch in Action, Second Edition
An Elasticsearch index alias is an alternate name that refers to one index or a set of indexes for search and other index operations.
- How it is used
- Provides stable names for multi-index search, reindexing migrations, and rollover operations.
- How deep it goes
- Explains creation, single- and multi-index targets, write-index requirements, wildcard targets, and atomic alias swaps.
- Examples
- Demonstrates car indexes, multi-index and wildcard aliases, an old-to-new vintage-car swap, and a rollover alias.
- What you can do after
- Apply it via Elasticsearch alias APIs to query grouped indexes and switch index targets without downtime.
Read how Elasticsearch in Action, Second Edition explains alias →
Modern C
- How it is used
- Explains why pointer aliasing affects observable behavior and can prevent optimization.
- How deep it goes
- Works through pointer reads and writes, type-based restrictions, and restrict contracts, while warning that violations can be undefined.
- Examples
- Compares calls with distinct and identical addresses, different pointer types, and the overlap contracts of memcpy and memmove.
- What you can do after
- Evaluate pointer accesses and function contracts for possible aliasing and optimization constraints.
The Well-Grounded Rubyist, Fourth Edition
alias is a Ruby language construct that gives a method or other name an additional name without changing its behavior or method lookup.
- How it is used
- Preserves access to an existing method when redefining it, particularly in pass-through overrides.
- How deep it goes
- Defines alias as a method-name synonym, contrasts its syntax with alias_method, and explains override behavior without changing method lookup.
- Examples
- Uses String#reverse for logging and Regexp#match for a failed-match override that changes conditional behavior.
- What you can do after
- Practice/perform it by aliasing a method before overriding it, then calling the original while checking whether the return contract remains intact.
Read how The Well-Grounded Rubyist, Fourth Edition explains alias →
Get Programming: Learn to code with Python
- How it is used
- Clarifies why assigning a new name to a list or dictionary can make later changes visible through both names.
- How deep it goes
- Works through object IDs, reassignment, and shared list mutation, then contrasts aliasing with copying without detailing memory implementation.
- Examples
- Uses nicknames, shared list names, object IDs, and a copied artists list to make object identity visible.
- What you can do after
- Diagnose/debug with it when a list or dictionary changes unexpectedly through another variable, and choose a copy when independence is needed.
Read how Get Programming: Learn to code with Python explains alias →
Learn PowerShell in a Month of Lunches: Fourth Edition, Covers Windows, Linux, and macOS
A parameter alias is an alternate name accepted by a command for one of its parameters.
- How it is used
- Improves command-line usability by accepting familiar or shorter names for existing command parameters.
- How deep it goes
- Explains discovery, invocation, tab completion, and script declaration, but stops short of broader parameter-binding internals.
- Examples
- Uses Get-Process -ea Stop and a Get-DiskInventory script accepting -host for -ComputerName.
- What you can do after
- Build it from scratch by declaring an Alias attribute and diagnose existing aliases through command parameter metadata.
Learn PowerShell Scripting in a Month of Lunches, Second Edition: Write and organize scripts and tools
An alias is an alternate name that invokes a PowerShell command.
- How it is used
- Shortens console commands and supplies alternate parameter names in advanced functions, while scripts generally favor explicit names.
- How deep it goes
- Defines alternate names, demonstrates three parameter aliases, and stops short of parameter sets and dynamic parameters.
- Examples
- Uses -CN, -MachineName, and -Name for -ComputerName, and contrasts echo, icm, gwmi, and Where with full command names.
- What you can do after
- Apply aliases in PowerShell consoles and define parameter aliases while choosing explicit names for maintainable scripts.
Also covered in
- Learn SQL in a Month of Lunches
- Practical Automation with PowerShell: Effective scripting from the console to the cloud
- Practices of the Python Pro
- API Design Patterns
- The Design of Web APIs, Second Edition
- Podman in Action: Secure, rootless containers for Kubernetes, microservices, and more
- The Quick Python Book, Fourth Edition
- DuckDB in Action
What to know first
- moduleA module is a cohesive unit of code or computation that groups related functionality within a larger system and defines a scope or boundary for organizing or sharing it.
- shell scriptA shell script is a text program containing commands interpreted and executed by a command-line shell.
- inputAn input is information, a value, or an action supplied to a system, program, or computation for processing or to influence its behavior.
- loopA loop is a programming-language control-flow construct that repeatedly executes a block of instructions according to an iteration rule or continuation condition.
Related concepts
- alias_methodalternative to · alias_method is a private Module instance method that assigns an additional method name to an existing method using a symbol or string identifier.
- copyproduced by · Copying is the creation of a separate representation of an existing value, object, or data, preserving some or all of its contents or state.
Questions about alias
What is alias?
An alias is an alternative name by which an entity, command, parameter, or resource can be referred to.
Which Manning books explain alias?
Elasticsearch in Action, Second Edition, Modern C, The Well-Grounded Rubyist, Fourth Edition, Get Programming: Learn to code with Python, Learn PowerShell in a Month of Lunches: Fourth Edition, Covers Windows, Linux, and macOS and Learn PowerShell Scripting in a Month of Lunches, Second Edition: Write and organize scripts and tools.
What should I know before learning alias?
Manning books that teach alias usually introduce module, shell script, input and loop first.
What is the difference between alias and Format-Wide?
An alias is an alternative name by which an entity, command, parameter, or resource can be referred to. Format-Wide is a PowerShell cmdlet that displays objects in a wide table containing a selected property.
What is alias also called?
Alias is also called aliases.
These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.





