Skip to content

Latest commit

 

History

History
186 lines (142 loc) · 3.36 KB

File metadata and controls

186 lines (142 loc) · 3.36 KB
document type external help file HelpUri Locale Module Name ms.date PlatyPS schema version title
cmdlet
linuxtools-Help.xml
en-US
linuxtools
11/09/2025
2024-05-01
Get-OpenFiles

Get-OpenFiles

SYNOPSIS

Get open files on a Linux system.

SYNTAX

__AllParameterSets

Get-OpenFiles [[-Path] <string>] [[-UserName] <string[]>] [[-ProcessId] <int[]>] [-IPv4] [-IPv6]
 [<CommonParameters>]

ALIASES

This cmdlet has the following aliases, {{Insert list of aliases}}

DESCRIPTION

Get open files on a Linux system. This cmdlet uses the lsof command to list open files on a Linux system.

EXAMPLES

EXAMPLE 1

Get-OpenFiles -Path /tmp Get open files in the /tmp directory.

EXAMPLE 2

Get-OpenFiles -UserName root Get open files owned by the root user.

EXAMPLE 3

Get-OpenFiles -ProcessId 1234 Get open files for process ID 1234.

EXAMPLE 4

Get-OpenFiles -IPv4 Get open files using IPv4.

EXAMPLE 5

Get-OpenFiles -Path /home/user123 -UserName user123 Get open files in the /home/user123 directory owned by the user123 user.

PARAMETERS

-IPv4

Filter by IPv4.

Type: System.Management.Automation.SwitchParameter
DefaultValue: False
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
  Position: Named
  IsRequired: false
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''

-IPv6

Filter by IPv6.

Type: System.Management.Automation.SwitchParameter
DefaultValue: False
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
  Position: Named
  IsRequired: false
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''

-Path

Filter by path.

Type: System.String
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
  Position: 0
  IsRequired: false
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''

-ProcessId

Filter by process ID.

Type: System.Int32[]
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
  Position: 2
  IsRequired: false
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''

-UserName

Filter by user name.

Type: System.String[]
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
  Position: 1
  IsRequired: false
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

INPUTS

OUTPUTS

NOTES

RELATED LINKS