Forrest logo
back to the Get-Alias tool

out-string:tldr:bb11f

out-string: Convert each object to a string rather than concatenating all the objects into a single string.
$ Get-Alias | Out-String -Stream
try on your machine

The command "Get-Alias" retrieves all the defined aliases in PowerShell. An alias is a shorthand or alternate name for a cmdlet or command. For example, "ls" is an alias for the "Get-ChildItem" cmdlet.

The "|" symbol is the pipeline operator, which directs the output of the preceding command (Get-Alias) as input to the next command.

The "Out-String" cmdlet converts the output into a string format. By default, it concatenates the output objects into a single, multiline string.

The "-Stream" parameter used with "Out-String" ensures that each input object is converted to a separate string. This means that each alias will be outputted individually as a string.

So, the full command "Get-Alias | Out-String -Stream" lists all the aliases defined in PowerShell, with each alias displayed as a separate string.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the Get-Alias tool