this post was submitted on 03 Jan 2025
377 points (98.0% liked)

Linux

48935 readers
1313 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 5 years ago
MODERATORS
 

Which Linux command or utility is simple, powerful, and surprisingly unknown to many people or used less often?

This could be a command or a piece of software or an application.

For example I'm surprised to find that many people are unaware of Caddy, a very simple web server that can make setting up a reverse proxy incredibly easy.

Another example is fzf. Many people overlook this, a fast command-line fuzzy finder. It’s versatile for searching files, directories, or even shell history with minimal effort.

(page 5) 50 comments
sorted by: hot top controversial new old
[–] z3rOR0ne@lemmy.ml 9 points 1 week ago (3 children)
[–] KnightontheSun@lemmy.world 9 points 1 week ago (1 children)

Do you have to wear the fedora to run this command?

[–] z3rOR0ne@lemmy.ml 7 points 1 week ago* (last edited 1 week ago)

No sorry, I should have elaborated. The package name is mlocate but the command is locate. Occasionally run updatedb as it populates an sqlite db with every file on your system that you can then list out using locate followed by the filename you want to locate.

EDIT: Lol. Sorry barely read your reply. Yes, you should wear a fedora while installing mlocate.

load more comments (2 replies)
[–] krolden@lemmy.ml 8 points 1 week ago
[–] ComradeMiao@lemmy.dbzer0.com 8 points 1 week ago (2 children)

Idk a lot of commands but I think wget for downloading webpages and rsync for syncing devices are pretty awesome

load more comments (2 replies)
[–] Kekin@lemy.lol 8 points 1 week ago

I like btop Maybe not really "unknown", but hey for those that don't know about it, check it out!

[–] stembolts@programming.dev 7 points 1 week ago (1 children)

awk

..for parsing the output of other commands quickly and simply. Then that parsed output can be used to create simple log messages or be passed as args to other scripts. Powerful.

[–] mfat@lemmy.ml 9 points 1 week ago (1 children)

awk and sed have always been intimidating for me with that cryptic syntax.

[–] stembolts@programming.dev 8 points 1 week ago* (last edited 1 week ago)

I agree with your sentiment regarding confusing syntax, however I think that confusion simply requires a calculated approach to dispell it.

It's a prime example of why I use scripts as reminders as much as I use them functionally. I work out the syntax once.. save it to an example script, then save myself 20 minutes of remembering by just $ cat ./path/to/script.sh and copying said syntax.

So if you can change your workflow such that learned things stay around as examples, I feel that you will pick it up much more quickly :)

[–] hperrin@lemmy.ca 7 points 1 week ago (5 children)

degit is a tool that will check out a git repo (or a specific branch or commit), but not set it up as a git repo. Basically just downloading a specific commit to a directory.

load more comments (5 replies)
[–] jbrains@sh.itjust.works 7 points 1 week ago (1 children)

Underrated or not widely known?

I love lazygit and I'm still surprised at how many people are shocked when they see it for the first time. Not exactly a command, but a very handy text UI tool.

For more elementary tools, I can't believe how many people know about ! and ctrl+r who don't also know about fc and edit-and-execute-command.

load more comments (1 replies)
[–] learnbyexample@programming.dev 7 points 1 week ago (1 children)
load more comments (1 replies)
[–] zorro@lemmy.world 7 points 1 week ago
[–] a_good_hunter@lemmy.world 7 points 1 week ago (2 children)

Bat, a cat alternative.

Lsd, an ls alternative.

Procs, a ps alternative.

Renane, because it's great.

load more comments (2 replies)
[–] MonkderVierte@lemmy.ml 6 points 1 week ago (6 children)

Lightweight sudo alternatives, hard to google too. I know ssu and rdo, please mention others.

load more comments (6 replies)
[–] Static_Rocket@lemmy.world 6 points 1 week ago (2 children)

People always sleep on script. It's badass and let's you do goofy things like this while keeping standard terminal formatting: https://github.com/StaticRocket/dotfiles/blob/043e9a56cc9515060188ec4642e4048c0dd6c000/dot_bashrc#L79-L94

load more comments (2 replies)
[–] Static_Rocket@lemmy.world 5 points 1 week ago* (last edited 1 week ago) (2 children)

+1 to caddy. There are some services that set safe headers following the recommendations outlined by Mozilla but others don't control headers as strictly. Caddy is the only web server that I found that supports loose default header values. These values will be selected unless the upstream application specifies their own values.

You can do something similar in nginx but it requires playing with maps and has a little more indirection than I'd like.

Just wish caddy was capable of starting as root and stepping down permissions like Nginx. I have certs being managed by other tools and have to make sure they are installed and chowned for caddy's use when they are cycled.

load more comments (2 replies)
[–] iii@mander.xyz 5 points 1 week ago (2 children)
load more comments (2 replies)
load more comments
view more: ‹ prev next ›