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

Linux

49658 readers
602 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 3) 50 comments
sorted by: hot top controversial new old
[–] [email protected] 14 points 1 month ago

kde connect

[–] [email protected] 34 points 1 month ago (5 children)

Control+r == search through your bash history.

I used linux for ten years before finding out about that one.

load more comments (5 replies)
[–] [email protected] 10 points 1 month ago* (last edited 1 month ago) (1 children)

|

Honorary mention to < and &

load more comments (1 replies)
[–] [email protected] 8 points 1 month ago* (last edited 4 weeks ago) (1 children)

Underrated

Both linked projects have over 60k+ stars on GitHub

Pick one

[–] [email protected] 2 points 1 month ago

It has not taken over NGINX and Apache yet.

[–] [email protected] 28 points 1 month ago (2 children)
bc

It's a simple command line calculator! I use it all the time.

load more comments (2 replies)
[–] [email protected] 26 points 1 month ago (5 children)

yes

The most positive command you'll ever use.

Run it normally and it just spams 'y' from the keyboard. But when one of the commands above is piped to it, then it will respond with 'y'. Not every command has a true -y to automate acceptance of prompts and that's what this is for.

[–] [email protected] 2 points 1 month ago (12 children)

What's the syntax here? Do I go

command && yes

I'm not sure if I've had a use case for it, but it's interesting.

[–] [email protected] 4 points 1 month ago* (last edited 1 month ago)

true delivers error level 0, false error level 1.

yes && echo True || echo False will always be True.

false && echo True || echo False will always be False.

Common usage is for tools that ask for permissions and similiar. yes | cp -i has the same effect as cp --force (-i: prompt before overwrites).

[–] [email protected] 9 points 1 month ago

That will just wait for command to finish properly and then run yes.

What you want to run is yes | command, so it spams the command with confirmations.

load more comments (10 replies)
load more comments (4 replies)
[–] [email protected] 8 points 1 month ago

tmsu is pretty cool - it creates a little db and uses that to track tags on your files without ever touching them. It also has it's own little tag based filesystem.

[–] [email protected] 16 points 1 month ago* (last edited 1 month ago)

ddccontrol... it looks complicated on the surface but it's really not and being able to control monitor brightness without fcking around in some garbage monitor OSD is a god sent and should be the standard

load more comments
view more: ‹ prev next ›