Movatterモバイル変換


[0]ホーム

URL:


Skip to content
DEV Community
Log in Create account

DEV Community

João Vitor
João Vitor

Posted on

     

exa instead of ls

exa describe itself as the "A modern version of ‘ls’.https://the.exa.website/".

I'm using exa instead of ls locally.

Here are my aliases making this official.

aliasl='exa'aliasla='exa -a'aliasll='exa -lah'alias ls='exa --color=auto'
Enter fullscreen modeExit fullscreen mode

Try it out.

Top comments(5)

Subscribe
pic
Create template

Templates let you quickly answer FAQs or store snippets for re-use.

Dismiss
CollapseExpand
 
moopet profile image
Ben Sinclair
I've been a professional C, Perl, PHP and Python developer.I'm an ex-sysadmin from the late 20th century.These days I do more Javascript and CSS and whatnot, and promote UX and accessibility.
  • Location
    Scotland
  • Education
    Something something cybernetics
  • Pronouns
    They/them
  • Work
    General-purpose software person
  • Joined
• Edited on• Edited

The thing that puts me off exa is the same as with things like oh-my-zsh:

You list files hundreds of times a day. Why spend your time squinting at black and white text?

exa is an improved file lister with more features and better defaults. It uses colours to distinguish file types and metadata. It knows about symlinks, extended attributes, and Git. And it’s small, fast, and just one single binary.

ls uses colours to distinguish file types.ls knows about symlinks.ls is small and fast and just one single file. On my system it's 10% the size ofexa and over 300% faster, while using 20% as much CPU.

 proteus ~ ls -lh $(which ls)$(which exa)-rwxr-xr-x 1 root root 135K Nov 12 11:00 /usr/bin/ls-rwxr-xr-x 1 root root 1.4M Jul 20 05:31 /usr/bin/exals -R projects  0.16s user 0.18s system 19% cpu 1.769 totalexa -R projects  4.06s user 0.21s system 99% cpu 4.278 total

I'm not saying it's bad, but I am saying that the reasons it might be good are not the ones people are pushing.

Personally, I prefer the wayls handles colours. It colourises only the file/directory name or the little symbol for "executable", etc.exa looks like a wall of colour, with everything vying for attention.

The only thing I seeexa do overls is thegit integration and the highlighting of the current username.

Not only is the standard tree tool built-in, but it’ll show you your files’ information alongside the hierarchy.

This is an anti-feature as far as I'm concerned. We already have a separatetree command, and it already does one thing, well.

CollapseExpand
 
joaovitor profile image
João Vitor
  • Location
    Belo Horizonte, MG, Brasil
  • Joined

@moopet I like the default settings from exa. The colors provides more information and it I got used with its output really fast.

Theexa output isdifferent from thels command but I like it better.

I can always use\ls when I need the rawls behaviour.

Important detail: I just use exalocally. In servers I keep using the plain oldls and thats why the size of the command don't affect me so much.

CollapseExpand
 
ragnarsalvator profile image
Saiful Islam Sakib
  • Joined
• Edited on• Edited

exa is by far the best alternative of ls.
I'm using these alias(s)

alias ls="exa --icons --grid --classify --colour=auto --sort=type --group-directories-first --header --modified --created --git --binary --group"alias la="ls -a"alias ll="ls -al"
Enter fullscreen modeExit fullscreen mode
CollapseExpand
 
nazareth profile image
َ
  • Work
    WebDev at -
  • Joined
alias ls="exa -1 --color=auto --icons"alias-gls="exa -1 --color=auto --icons"
Enter fullscreen modeExit fullscreen mode
CollapseExpand
 
abhimanyuaryan profile image
Abhi...
Julia 🟥🟩🟪 to space 🚀 and deep oceans 🌊.
  • Location
    remote
  • Work
    Genie Framework
  • Joined
• Edited on• Edited

nice can't keep usingexa because mistypesex which enters in Ex mode. Using this insteadalias ls='exa --grid --color=auto --icons'. I don't like long lists :)

Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment'spermalink.

For further actions, you may consider blocking this person and/orreporting abuse

  • Location
    Belo Horizonte, MG, Brasil
  • Joined

More fromJoão Vitor

DEV Community

We're a place where coders share, stay up-to-date and grow their careers.

Log in Create account

[8]ページ先頭

©2009-2025 Movatter.jp