this post was submitted on 13 Apr 2025
118 points (92.1% liked)

Linux

7296 readers
739 users here now

A community for everything relating to the GNU/Linux operating system

Also check out:

Original icon base courtesy of lewing@isc.tamu.edu and The GIMP

founded 2 years ago
MODERATORS
top 36 comments
sorted by: hot top controversial new old
[–] silasmariner@programming.dev 35 points 4 weeks ago

Why is fzf, the best utility, relegated to the end? And why is ripgrep - a huge improvement over grep, especially if you want to search only on committed files in a git directory - not even mentioned? This list is outrageous. Even more so because I can't pretend to have known about all of these before, and annoyingly now have to face the fact that some of these actually look pretty handy.

[–] Sunshine@lemmy.ca 28 points 1 month ago (1 children)

I had a feeling this would be controversial πŸ˜…

[–] andioop@programming.dev 19 points 1 month ago (1 children)

Am local village idiot curious as to why this would be controversial.

First guess: advising change from familiar workflow

Second guess: gotta download a lot of these

3rd thing: these tools may not be available on the remote server at your company. so you don't want to stumble on the commands (aliases exist but the outputs are wildly different)

[–] Nath@aussie.zone 21 points 4 weeks ago (1 children)

The problem is the standard apps are just that - standard. I can hop onto any Redhat, Debian or Solaris 10 box at work and use ls, cat etc.

If I went all-in on some bespoke alternatives on my special snowflake machine, I'd constantly be going nuts entering incorrect commands on remote machines and losing efficiency. Then, I'd go back to just using the standard commands everywhere.

[–] silasmariner@programming.dev 2 points 4 weeks ago

They're not though are they. Remember the pain of the last time you tried to write a portable sed then just gave up and used a `perl -pe'? That's real. We've all been there.

[–] 01011@monero.town 15 points 4 weeks ago* (last edited 4 weeks ago) (1 children)

Who doesn't already use rsync?

Anyway I'll give zoxide and eza a shot.

[–] Jakeroxs@sh.itjust.works 2 points 4 weeks ago

I have used it a couple times but I was unsure if using it to simply replace cp or mv commands was "proper"

[–] kurikai@lemmy.world 10 points 1 month ago (1 children)

Bat looks the most useful for me

[–] Overspark@feddit.nl 2 points 4 weeks ago* (last edited 4 weeks ago)

You can also let bat render your man pages, with some nicer coloration (and theming) than man does by default.

[–] grrgyle@slrpnk.net 8 points 4 weeks ago* (last edited 4 weeks ago) (1 children)

I fkn knew eza would be at the top of this list.

E: I can't talk, though. Here are my aliases:

alias    ls='eza --time-style="+%Y-%m-%d" --group-directories-first --hyperlink --colour=never -hlF always --icons --git'
alias    ll='eza --time-style="long-iso" --group-directories-first --no-permissions --hyperlink --colour=never -hoalF always --icons --git'
alias     l='eza --time-style=relative --group-directories-first --hyperlink --colour=auto -hlF=always --icons --no-permissions --no-user'
[–] absGeekNZ@lemmy.nz 2 points 3 weeks ago* (last edited 3 weeks ago) (2 children)

I'm running Linux Mint, I installed eza, which is nice but the icons are not showing up correctly.

Do you know how to get them to show correctly, I installed 'nerd fonts' but I'm not sure I got the correct one.

Don't worry. It works fine in the regular terminal, it is just quake that is giving me issues.

[–] grrgyle@slrpnk.net 2 points 3 weeks ago

I didn't install anything special, just used apt (on ubuntu), like sudo apt install eza. Looks like I'm using the font DejaVuSansMono.

What terminal/emulator are you using?

[–] MadhuGururajan@programming.dev 1 points 3 weeks ago (1 children)

you have to install a nerd font i guess. nerd-fonts dot com.

[–] absGeekNZ@lemmy.nz 1 points 3 weeks ago

All good now.

It is a problem with guake.

[–] swab148@lemm.ee 7 points 4 weeks ago (1 children)

I know what I'm doing tomorrow!

[–] Sunshine@lemmy.ca 5 points 4 weeks ago

Ferb nods in approval!

[–] SplashJackson@lemmy.ca 6 points 4 weeks ago

Start today! Replace "ls" with "dir /w"!

[–] jnerk@lemm.ee 4 points 4 weeks ago (1 children)

Can someone give me a summary? That website keeps crashing my browser..

[–] grrgyle@slrpnk.net 10 points 4 weeks ago* (last edited 4 weeks ago)

ls to eza
cat to bat
cp/scp to rsync
find to fd
cd to zoxide

[–] lemmydividebyzero@reddthat.com 4 points 4 weeks ago (1 children)

Are some of the commands replaced by Manjaro or similar? For me, it's normal to call ls and see colors...

[–] emzili@programming.dev 14 points 4 weeks ago (1 children)

The default output of ls is uncolored, but some distros include an alias in your .bashrc for 'ls' to 'ls --color=auto', so you definitely don't need a whole other utility just for colored output

[–] Overspark@feddit.nl 7 points 4 weeks ago (2 children)

Eza is a lot more than just ls with colours though.

[–] massive_bereavement@fedia.io 4 points 4 weeks ago (1 children)

Wow, pretty cool the tree and total size options, kind of substitutes other commands I commonly use.

Only thing is though I find it slower than du and tree.

[–] Overspark@feddit.nl 2 points 4 weeks ago

You can also try something like broot. Lovely TUI file manager that shows how big folders are when you start it with the -w option, faster than either du or tree in my experience.

[–] emzili@programming.dev 3 points 4 weeks ago (1 children)

That's true, I was mostly speaking to that specific use-case. It certainly sounds like it has generally superior functionality to ls, but for me personally it doesn't beat out the utility of already being present on every linux system I'll touch.

That's unlike something like rsync which is genuinely more useful than scp for anything other than simple file transfers.

[–] Overspark@feddit.nl 3 points 4 weeks ago

Yeah that's fair, I only use it on systems where I'm in full control and use enough to get all my toys set up properly, which goes for all the commands in the article. I've just aliased ls to eza though, so it'll mostly (options are a bit different) keep working on any system I'm on.

reboot to rm -rf ~/

[–] dirtycrow@programming.dev 4 points 4 weeks ago

One thing I will agree with is to stop using SCP.

https://www.brightblack.net/blog/2024-02-09-scp-was-deprecated/

It was deprecated a while back and older, but more experienced Unix wizards still suggest it. SFTP is an alternative, but rsync also works.

[–] Albbi@lemmy.ca 3 points 1 month ago

Nice list of commands! I'll definitely check out eza.

[–] LovableSidekick@lemmy.world 2 points 4 weeks ago (2 children)
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Unable to locate package batcat
[–] muusemuuse@lemm.ee 2 points 4 weeks ago
[–] zr0@lemmy.dbzer0.com 2 points 3 weeks ago

Yeah, all good and nice, but as long as they are not part of all linux distributions, I will not use them. I need a ls because I know it is working on all machines that I use. Additionally, don’t forget that introducing new tools also introduces new attack surfaces, something you want to avoid on very important servers.