File tree Expand file tree Collapse file tree 2 files changed +20
-2
lines changed
reference/6/Microsoft.PowerShell.Management Expand file tree Collapse file tree 2 files changed +20
-2
lines changed Original file line number Diff line number Diff line change 11---
2- ms.date : 2/19 /2019
2+ ms.date : 03/22 /2019
33schema : 2.0.0
44locale : en-us
55keywords : powershell,cmdlet
@@ -10,6 +10,7 @@ title: Get-ChildItem
1010# Get-ChildItem
1111
1212## SYNOPSIS
13+
1314Gets the items and child items in one or more specified locations.
1415
1516## SYNTAX
@@ -344,6 +345,14 @@ The `Get-ChildItem` cmdlet uses the **Path** parameter to specify **C:\Parent**.
344345parameter specifies two levels of recursion. ` Get-ChildItem ` displays the contents of the directory
345346specified by the ** Path** parameter and the two levels of subdirectories.
346347
348+ ### Example 9: Getting hardlink information
349+
350+ In 6.2, an alternate view was added to get hardlink information.
351+
352+ ``` powershell
353+ Get-ChildItem -Path C:\PathContainingHardLink | Format-Table -View childrenWithHardlink
354+ ```
355+
347356## Parameters
348357
349358### -Attributes
Original file line number Diff line number Diff line change 11---
2- ms.date : 10/18/2018
2+ ms.date : 03/22/2019
33schema : 2.0.0
44locale : en-us
55keywords : powershell,cmdlet
@@ -10,6 +10,7 @@ title: Get-Item
1010# Get-Item
1111
1212## SYNOPSIS
13+
1314Gets the item at the specified location.
1415
1516## SYNTAX
@@ -125,6 +126,14 @@ This command works only when the path includes a wildcard character ('*') to spe
125126Get-Item c:\Windows\*.* -Exclude "w*"
126127```
127128
129+ ### Example 8: Getting hardlink information
130+
131+ In 6.2, an alternate view was added to get hardlink information.
132+ To get the hardlink information, pipe the output to ` Format-Table -View childrenWithHardlink `
133+
134+ ``` powershell
135+ Get-Item -Path C:\PathWhichIsAHardLink | Format-Table -View childrenWithHardlink
136+ ```
128137
129138## PARAMETERS
130139
You can’t perform that action at this time.
0 commit comments