lsd
List directory contents with improved visuals
TLDR
List files and directories, one per line
List all files and directories, including hidden ones, in the current directory
List files and directories with trailing / added to directory names
List all files and directories in long format (permissions, ownership, size in human-readable format, and modification date)
List files and directories in long format, sorted by size (descending)
List files and directories in long format, sorted by modification date (oldest first)
Only list directories
Recursively list all directories in a tree format
SYNOPSIS
lsd [options] [file...]
PARAMETERS
-l
Use a long listing format.
-a, --all
Do not ignore entries starting with .
-A, --almost-all
Do not list implied . and ..
-d, --directory
List directories themselves, not their contents.
-h, --human-readable
With -l and -s, print sizes in human readable format (e.g., 1K 234M 2G).
-R, --recursive
List subdirectories recursively.
-t, --sort=time
Sort by modification time, newest first.
--tree
Show output as a tree.
-v, --version
Output version information and exit.
--help
Display help message.
DESCRIPTION
The `lsd` command is a modern alternative to the standard `ls` command, providing a more visually appealing and informative way to list directory contents. It improves upon `ls` with color-coded output, icons for file types, and a more human-readable format for file sizes and modification dates. `lsd` is designed to be easy to use out-of-the-box while remaining highly customizable. It supports various sorting options, display filters, and output formatting to tailor the display to specific user needs. It also has support for git integration to show statuses of file tracked under git. The command is available on various operating systems, not only linux but also windows or mac.
Unlike `ls`, `lsd` aims to enhance the user experience by making directory listings more intuitive and easier to parse at a glance. This can improve productivity by allowing users to quickly identify important files and directories.
CONFIGURATION
lsd can be configured through environment variables or a configuration file. This allows users to customize the display format, color scheme, and default options to their liking.
ICONS
lsd utilizes font awesome icons to visually represent file types. These icons are enabled by default and contribute to the command's improved readability.