Advanced `ls` with `lsd` for a Visually Richer Directory Listing
Quick Tip
Advanced `ls` with `lsd` for a Visually Richer Directory Listing
Challenge: The default `ls` command can be a bit bland and lacks visual cues for file types, permissions, and other important metadata, making quick scans of directory contents less efficient.
The Solution: Install and use `lsd`, a modern `ls` replacement that provides vibrant color-coding, icons, and a more intuitive layout.
# Installation (example for Ubuntu/Debian): # sudo apt update && sudo apt install lsd # Installation (example for RHEL/CentOS - may require EPEL or custom repo): # sudo dnf install lsd # or sudo yum install lsd # Basic Usage: lsd # With details and tree view: lsd -l -T
Why it works: `lsd` leverages Nerd Fonts or similar icon sets to display visual icons for different file types and directories. Its enhanced color scheme differentiates between file permissions, ownership, and other attributes, providing an at-a-glance understanding of your directory contents.
Pro-Tip: Alias `ls` to `lsd` in your `~/.bashrc` or `~/.zshrc` for seamless integration: alias ls='lsd'. Don’t forget to run source ~/.bashrc (or your shell’s config file) after making the change.
Linux Tips & Tricks | © ngelinux.com | 4/28/2026
