# lsd
> The next gen ls command with colors, icons, and tree view

## Summary
A modern ls replacement with file type icons, colors, and tree view. Provides a visually rich directory listing with Git integration and configurable layouts.

## Capabilities
- File type icons (requires Nerd Font)
- Color-coded file types and permissions
- Built-in tree view
- Git status integration

## When to Use
- Want a visually richer directory listing than ls
- Need a built-in tree view with ls-like output
- Prefer icons for quick file type identification

## When NOT to Use
- Terminal doesn't support Nerd Fonts or icons
- Scripting where ls output parsing is needed

## Usage Patterns
### List directory with icons
```
lsd -la
```
Shows long listing with icons and colors

### Tree view
```
lsd --tree --depth 2
```
Displays directory tree limited to 2 levels

## Installation
- **homebrew**: `brew install lsd`
- **cargo**: `cargo install lsd`
- **pacman**: `sudo pacman -S lsd`

## Related Tools
- [eza](/tools/eza) (alternative): eza is another modern ls replacement with similar features

---
Source: https://littlescripts.sh/tools/lsd
