Forrest logo
back to the lsd tool

lsd:tldr:6e38c

lsd: List all files and directories with trailing `/` added to directory names.
$ lsd -F
try on your machine

The command "lsd -F" is used to list directories and files in a directory. Here is the breakdown of the command:

  • "lsd" stands for 'list directory' and is a command used in Unix-like operating systems (e.g., Linux) to display the contents of a directory.
  • The option "-F" is used to add additional information or symbols to the listing of directories and files. Specifically, it appends certain characters to the names, indicating the type of each entry.
    • A '/' character is added to the end of directories' names to differentiate them from regular files.
    • An '*' character is added to the end of executable files' names.
    • A '|' character is added to the end of special files' names.
    • An '=' character is added to the end of socket files' names.
    • A '@' character is added to the end of symbolic links' names.
    • A '%' character is added to the end of whiteout files' names (used in some file systems).

By using the "lsd -F" command, you will see a detailed list of directories and files in the current directory, with the additional characters indicating their types.

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