From e599b2e73e0e6f1b14b3a40313e1bf54dddf2d85 Mon Sep 17 00:00:00 2001 From: NoPreserveRoot Date: Tue, 12 Oct 2021 02:18:02 -0400 Subject: [PATCH] get-childitem: add page (#6818) --- pages/windows/get-childitem.md | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 pages/windows/get-childitem.md diff --git a/pages/windows/get-childitem.md b/pages/windows/get-childitem.md new file mode 100644 index 0000000000..4a97dcf636 --- /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}}`