Forrest logo
back to the lsd tool

lsd:tldr:e6c71

lsd: Only list directories.
$ lsd -d ${*-}
try on your machine

The command "lsd" is typically used to list the contents of a directory in a more visually appealing manner compared to the traditional "ls" command.

The "-d" option in this command specifies that only the directory itself should be displayed, rather than its contents.

The "${-}" portion of the command expands to all the command-line arguments passed to it. The "$" variable represents all the arguments passed to the script or command, and the curly braces and "-" serve to sanitize the argument expansion.

Therefore, the overall command "lsd -d ${*-}" would display only the given directories themselves, without listing their contents, based on the command-line arguments passed to it.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the lsd tool