From cd7a06ae805a75a8e461b0eee998ed8a18ae8dec Mon Sep 17 00:00:00 2001 From: Amarjeet Sinha <54766242+amarjeetsinha@users.noreply.github.com> Date: Wed, 6 Oct 2021 17:26:50 +0530 Subject: [PATCH] dir: add page (#6817) --- pages/linux/dir.md | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 pages/linux/dir.md diff --git a/pages/linux/dir.md b/pages/linux/dir.md new file mode 100644 index 000000000..ea7af1332 --- /dev/null +++ b/pages/linux/dir.md @@ -0,0 +1,25 @@ +# dir + +> List directory contents using one line per file, special characters are represented by backslash escape sequences. +> Works as `ls -C --escape`. +> More information: . + +- List all files, including hidden files: + +`dir -all` + +- List files including their author (`-l` is required): + +`dir -l --author` + +- List files excluding those that match a specified blob pattern: + +`dir --hide={{pattern}}` + +- List subdirectories recursively: + +`dir --recursive` + +- Display help: + +`dir --help`