From 9373a1ab23d68b92d9c88517dfe8e8d9523badbb Mon Sep 17 00:00:00 2001 From: Alwin Lohrie <46248939+niwla23@users.noreply.github.com> Date: Thu, 7 Oct 2021 19:39:46 +0200 Subject: [PATCH] lsd: add page (#6654) --- pages/common/lsd.md | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 pages/common/lsd.md diff --git a/pages/common/lsd.md b/pages/common/lsd.md new file mode 100644 index 0000000000..a5fd4204ca --- /dev/null +++ b/pages/common/lsd.md @@ -0,0 +1,37 @@ +# lsd + +> List directory contents. +> The next generation `ls` command, written in Rust. +> More information: . + +- List files and directories, one per line: + +`lsd -1` + +- List all files and directories, including hidden ones, in the current directory: + +`lsd -a` + +- List all files and directories with trailing `/` added to directory names: + +`lsd -F` + +- List all files and directories in long format (permissions, ownership, size, and modification date): + +`lsd -la` + +- List all files and directories in long format with size displayed using human-readable units (KiB, MiB, GiB): + +`lsd -lh` + +- List all files and directories in long format, sorted by size (descending): + +`lsd -lS` + +- List all files and directories in long format, sorted by modification date (oldest first): + +`lsd -ltr` + +- Only list directories: + +`lsd -d {{*/}}`