diff --git a/pages/windows/get-childitem.md b/pages/windows/get-childitem.md new file mode 100644 index 000000000..4a97dcf63 --- /dev/null +++ b/pages/windows/get-childitem.md @@ -0,0 +1,24 @@ +# Get-ChildItem + +> List items in a directory. +> More information: . + +- 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}}`