Skip to content

Glossary: Command Line for IT: Bash and PowerShell

$_

Also written: $_.Name, $_.Length

In PowerShell, $_ means the object being handled right now inside a { } block, as in Where-Object or ForEach-Object. $_.Length reads that object's Length property.

Where the book teaches it

Related terms

Where-ObjectForEach-Objectproperty