Skip to content

Commit c0f374b

Browse files
TravisEz13sdwheeler
authored andcommitted
Document how to get hardlink information #3665 (#4044)
* Add examples to document #3665 * update date metadata
1 parent 0af7fdb commit c0f374b

File tree

2 files changed

+20
-2
lines changed

2 files changed

+20
-2
lines changed

reference/6/Microsoft.PowerShell.Management/Get-ChildItem.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
ms.date: 2/19/2019
2+
ms.date: 03/22/2019
33
schema: 2.0.0
44
locale: en-us
55
keywords: powershell,cmdlet
@@ -10,6 +10,7 @@ title: Get-ChildItem
1010
# Get-ChildItem
1111

1212
## SYNOPSIS
13+
1314
Gets 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**.
344345
parameter specifies two levels of recursion. `Get-ChildItem` displays the contents of the directory
345346
specified 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

reference/6/Microsoft.PowerShell.Management/Get-Item.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
ms.date: 10/18/2018
2+
ms.date: 03/22/2019
33
schema: 2.0.0
44
locale: en-us
55
keywords: powershell,cmdlet
@@ -10,6 +10,7 @@ title: Get-Item
1010
# Get-Item
1111

1212
## SYNOPSIS
13+
1314
Gets 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
125126
Get-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

0 commit comments

Comments
 (0)