Site icon New Generation Enterprise Linux

Unleash `ls` with `lsd` for Enhanced Visuals

Quick Tip

Unleash `ls` with `lsd` for Enhanced Visuals

Challenge: The default `ls` command can be a bit bland and lacks visual cues for file types and permissions, making it harder to quickly scan directory contents.

The Solution: Install and use `lsd`, a modern alternative to `ls` with colorful icons and better formatting.

# Installation (example for Ubuntu/Debian) sudo apt update && sudo apt install lsd # Usage lsd lsd -l # Long listing format with icons lsd -a # Show all files, including hidden ones lsd --tree # Display directory structure as a tree 

Why it works: `lsd` leverages modern UTF-8 characters and Nerd Fonts to display visually distinct icons for different file types and color-codes output for enhanced readability, making it easier to differentiate files, directories, executables, and more at a glance.

Pro-Tip: Alias `ls` to `lsd` in your shell configuration (e.g., `~/.bashrc` or `~/.zshrc`) for seamless integration: `alias ls=’lsd’`.

Linux Tips & Tricks | © ngelinux.com | 4/26/2026

0 0 votes
Article Rating
Exit mobile version