Move pages under tldr, lint run.sh, update docs

This commit is contained in:
2024-02-21 13:58:43 +02:00
parent 3d653cc7e6
commit 2c475fa62d
4806 changed files with 36 additions and 35 deletions

34
tldr/windows/get-command Normal file
View File

@@ -0,0 +1,34 @@
---
syntax: markdown
tags: [tldr, windows]
source: https://github.com/tldr-pages/tldr.git
---
# Get-Command
> List and get available commands in the current PowerShell session.
> This command can only be run through PowerShell.
> More information: <https://learn.microsoft.com/powershell/module/microsoft.powershell.core/get-command>.
- List all available PowerShell commands (aliases, cmdlets, functions) in the current computer:
`Get-Command`
- List all available PowerShell commands in the current session:
`Get-Command -ListImported`
- List only PowerShell aliases/cmdlets/functions available in the computer:
`Get-Command -Type {{Alias|Cmdlet|Function}}`
- List only programs or commands available on PATH in the current session:
`Get-Command -Type Application`
- List only PowerShell commands by the module name, e.g. `Microsoft.PowerShell.Utility` for utility-related commands:
`Get-Command -Module {{module}}`
- Get the command information (e.g. version number or module name) by its name:
`Get-Command {{command}}`