| document type | cmdlet |
|---|---|
| external help file | linuxtools-Help.xml |
| HelpUri | https://github.com/Skatterbrainz/linuxtools/blob/master/docs/Get-OpenFiles.md |
| Locale | en-US |
| Module Name | linuxtools |
| ms.date | 11/09/2025 |
| PlatyPS schema version | 2024-05-01 |
| title | Get-OpenFiles |
Get open files on a Linux system.
Get-OpenFiles [[-Path] <string>] [[-UserName] <string[]>] [[-ProcessId] <int[]>] [-IPv4] [-IPv6]
[<CommonParameters>]
This cmdlet has the following aliases, {{Insert list of aliases}}
Get open files on a Linux system. This cmdlet uses the lsof command to list open files on a Linux system.
Get-OpenFiles -Path /tmp Get open files in the /tmp directory.
Get-OpenFiles -UserName root Get open files owned by the root user.
Get-OpenFiles -ProcessId 1234 Get open files for process ID 1234.
Get-OpenFiles -IPv4 Get open files using IPv4.
Get-OpenFiles -Path /home/user123 -UserName user123 Get open files in the /home/user123 directory owned by the user123 user.
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: ''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: ''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: ''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: ''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: ''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.