commands.sh

lsd

all

List directory contents. The next generation `ls` command, written in Rust.

More info →

Options (7)

-1, --onelineboolean

List files and directories, one per line

Example: lsd {{[-1|--oneline]}}
-a, --allboolean

List all files and directories, including hidden ones, in the current directory

Example: lsd {{[-a|--all]}}
-F, --classifyboolean

List files and directories with trailing `/` added to directory names

Example: lsd {{[-F|--classify]}}
boolean

List all files and directories in long format (permissions, ownership, size in human-readable format, and modification date)

Example: lsd {{[-lha|--long --human-readable --all]}}
boolean

List files and directories in long format, sorted by size (descending)

Example: lsd {{[-lS|--long --sizesort]}}
boolean

List files and directories in long format, sorted by modification date (oldest first)

Example: lsd {{[-ltr|--long --timesort --reverse]}}
-d, --directory-onlyboolean

Only list directories

Example: lsd {{[-d|--directory-only]}} {{*/}}

Examples (8)

List files and directories, one per line

lsd [-1|--oneline]

List all files and directories, including hidden ones, in the current directory

lsd [-a|--all]

List files and directories with trailing `/` added to directory names

lsd [-F|--classify]

List all files and directories in long format (permissions, ownership, size in human-readable format, and modification date)

lsd [-lha|--long --human-readable --all]

List files and directories in long format, sorted by size (descending)

lsd [-lS|--long --sizesort]

List files and directories in long format, sorted by modification date (oldest first)

lsd [-ltr|--long --timesort --reverse]

Only list directories

lsd [-d|--directory-only] */

Recursively list all directories in a tree format

lsd --tree [-d|--directory-only]
made by @shridhargupta | data from tldr-pages