Forrest logo
back to the lsd tool

lsd:tldr:f24a6

lsd: List all files and directories in long format with size displayed using human-readable units (KiB, MiB, GiB).
$ lsd -lh
try on your machine

The command "lsd -lh" is a combination of two commands: "ls" and "d".

"ls" is a command used in UNIX and UNIX-like operating systems to list the files and directories in a particular directory. By default, it only displays the file names.

The options "-lh" are specific to the "ls" command:

  • The option "-l" (long format) displays more detailed information about the files and directories, including permissions, owner, group, file size, and date of last modification.
  • The option "-h" (human-readable) makes the file sizes more readable by displaying them in a format that is easier for humans to understand, such as using units like kilobytes (KB), megabytes (MB), etc.

So, when you run the command "lsd -lh", you will get a long format listing of the files and directories in the current directory, with file sizes shown in human-readable format.

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