summaryrefslogtreecommitdiff
path: root/Base/usr/share
diff options
context:
space:
mode:
authorAriel Don <arieldn@protonmail.com>2021-07-11 11:30:48 -0500
committerAli Mohammad Pur <Ali.mpfard@gmail.com>2021-07-12 19:15:19 +0430
commit4eba921d482fa35ee6edfa6fe3ed977a87b4fbdb (patch)
tree5546b39146d88780f9b400315ba59b4428fec80e /Base/usr/share
parent3289b6a88746c264aa4304cf4869ca345f90cc16 (diff)
downloadserenity-4eba921d482fa35ee6edfa6fe3ed977a87b4fbdb.zip
ls: Add option to list subdirectories recursively
List subdirectories encountered using -R or --recursive flags with ls.
Diffstat (limited to 'Base/usr/share')
-rw-r--r--Base/usr/share/man/man1/ls.md3
1 files changed, 3 insertions, 0 deletions
diff --git a/Base/usr/share/man/man1/ls.md b/Base/usr/share/man/man1/ls.md
index edeecae4cc..6902976fb1 100644
--- a/Base/usr/share/man/man1/ls.md
+++ b/Base/usr/share/man/man1/ls.md
@@ -31,6 +31,7 @@ If no *path* argument is provided the current working directory is used.
* `-o`, In long format, do not show group information
* `-h`, `--human-readable`: Print human-readable sizes
* `-K`, `--no-hyperlinks`: Disable hyperlinks
+* `-R`, `--recursive`: List subdirectories recursively
## Arguments
@@ -43,6 +44,8 @@ If no *path* argument is provided the current working directory is used.
$ ls
# List contents of working directory including hidden dot files
$ ls -la
+# List contents of working directory and its subdirectories
+$ ls -R
# List contents of /etc/ directory
$ ls /etc
# List contents of /etc/ directory including hidden dot files