get-childitem Verified current stable Not installed? Data Processing

Get Childitem / Sort Files By Length Current Directory

Sort Files By Length Current Directory

Get Childitem command syntax to sort files by length current directory. Copyable examples, output expectations, and common mistakes.

$
Terminal
Get-ChildItem | Sort-Object -Property Length

Command Breakdown

What each part is doing

Get-ChildItem
Base Command
The executable that performs this operation. Here it runs Get Childitem before the shell applies any redirect operators.
-Property
Command Option
Tool-specific option used by this command invocation.

Alternative Approaches

Comparable commands in other tools

Alternative data processing tools for the same job.