mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-07-23 02:55:36 +02:00
get-childitem: add page (#6818)
This commit is contained in:
parent
be1e7b9d5c
commit
e599b2e73e
1 changed files with 24 additions and 0 deletions
24
pages/windows/get-childitem.md
Normal file
24
pages/windows/get-childitem.md
Normal file
|
@ -0,0 +1,24 @@
|
|||
# Get-ChildItem
|
||||
|
||||
> List items in a directory.
|
||||
> More information: <https://docs.microsoft.com/powershell/module/microsoft.powershell.management/get-childitem>.
|
||||
|
||||
- List all non-hidden items in the current directory:
|
||||
|
||||
`Get-ChildItem`
|
||||
|
||||
- List only directories in the current directory:
|
||||
|
||||
`Get-ChildItem -Directory`
|
||||
|
||||
- List only files in the current directory:
|
||||
|
||||
`Get-ChildItem -File`
|
||||
|
||||
- List items in the current directory, including hidden items:
|
||||
|
||||
`Get-ChildItem -Hidden`
|
||||
|
||||
- List items in a directory other than the current one:
|
||||
|
||||
`Get-ChildItem -Path {{path/to/directory}}`
|
Loading…
Add table
Reference in a new issue