Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion reference/6/Microsoft.PowerShell.Management/Get-ChildItem.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
ms.date: 2/19/2019
ms.date: 03/22/2019
schema: 2.0.0
locale: en-us
keywords: powershell,cmdlet
Expand All @@ -10,6 +10,7 @@ title: Get-ChildItem
# Get-ChildItem

## SYNOPSIS

Gets the items and child items in one or more specified locations.

## SYNTAX
Expand Down Expand Up @@ -344,6 +345,14 @@ The `Get-ChildItem` cmdlet uses the **Path** parameter to specify **C:\Parent**.
parameter specifies two levels of recursion. `Get-ChildItem` displays the contents of the directory
specified by the **Path** parameter and the two levels of subdirectories.

### Example 9: Getting hardlink information

In 6.2, an alternate view was added to get hardlink information.

```powershell
Get-ChildItem -Path C:\PathContainingHardLink | Format-Table -View childrenWithHardlink
```

## Parameters

### -Attributes
Expand Down
11 changes: 10 additions & 1 deletion reference/6/Microsoft.PowerShell.Management/Get-Item.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
ms.date: 10/18/2018
ms.date: 03/22/2019
schema: 2.0.0
locale: en-us
keywords: powershell,cmdlet
Expand All @@ -10,6 +10,7 @@ title: Get-Item
# Get-Item

## SYNOPSIS

Gets the item at the specified location.

## SYNTAX
Expand Down Expand Up @@ -125,6 +126,14 @@ This command works only when the path includes a wildcard character ('*') to spe
Get-Item c:\Windows\*.* -Exclude "w*"
```

### Example 8: Getting hardlink information

In 6.2, an alternate view was added to get hardlink information.
To get the hardlink information, pipe the output to `Format-Table -View childrenWithHardlink`

```powershell
Get-Item -Path C:\PathWhichIsAHardLink | Format-Table -View childrenWithHardlink
```

## PARAMETERS

Expand Down