- Posted on
- • Software
lsd: Enhanced `ls` command with icons and colors
- Author
-
-
- User
- Linux Bash
- Posts by this author
- Posts by this author
-
Enhance Your Linux Experience with "lsd": The Prettier, More Informative ls
Command
When navigating the vast oceans of file directories in Linux, the plain old ls
command has been a reliable compass for ages. But what if this command could not only show you the files but also make the experience visually engaging and even more informative? Enter lsd
- a modern replacement for the ls
command that comes with icons, colors, and a range of customizations to help you make sense of the file jungle more efficiently.
What is lsd
?
lsd
, or "LSDeluxe," enhances the traditional directory listing with beautiful, customizable icons and color coding based on file types and permissions. It doesn't just brighten up the terminal with colors but improves readability and helps you to quickly identify file types and permissions with clever visual cues.
Features of lsd
Icons: Each file type has a specific icon, making them instantly recognizable.
Color coding: Colors are used to distinguish file types and permissions.
Customization: Users can tweak the appearance through various options and an alias configuration.
Performance: Built with Rust, it's not only pretty but also speedy and resource-efficient.
Installing lsd
on Your Linux System
The installation process varies slightly depending on your Linux distribution. Below are methods for several popular package managers:
For Ubuntu (using apt
):
lsd
is not directly available from the default Ubuntu repositories, but you can easily install it using snap or download the .deb
package from its GitHub Releases page.
Using Snap:
sudo snap install lsd
Using a
.deb
Package:- Download the latest
.deb
file from the GitHub Releases page. - Install it using the following command:
bash sudo dpkg -i lsd_0.x.y_amd64.deb # replace 0.x.y with the actual version number
- Download the latest
For Fedora (using dnf
):
lsd
can be installed from the Fedora repositories:
sudo dnf install lsd
For openSUSE (using zypper
):
While lsd
might not be available directly via zypper
, you can utilize the .rpm
packages from the releases section on GitHub or use snap
.
Using Snap:
sudo snap install lsd
Using a
.rpm
Package:- Download the latest
.rpm
file from GitHub's Releases page. - Install it using
zypper
:bash sudo zypper install lsd-0.x.y-1.x86_64.rpm # replace 0.x.y-1 with the actual version number
- Download the latest
Configuring lsd
After installation, you may want to set lsd
as the default for your directory listings. This can be achieved by adding an alias to your shell configuration file (.bashrc, .zshrc, etc.):
alias ls='lsd'
Reload your configuration by typing source ~/.bashrc
, or reopen your terminal.
Enjoy a Colorful Terminal
With lsd
installed and configured, your terminal will not only be more functional but also more visually pleasing. Whether you're a system administrator, a developer, or just a Linux enthusiast, lsd
can enhance your efficiency and make the command line experience a bit more fun.
Remember, while tools like lsd
offer aesthetic and practical upgrades, they respect the underlying Unix philosophy: doing more by doing one thing well. Now, go ahead and explore your directories with style and speed!