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

Linux

54354 readers
222 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 6 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 4 months ago

kde connect

[–] [email protected] 34 points 4 months 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 4 months ago* (last edited 4 months ago) (1 children)

|

Honorary mention to < and &

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

Underrated

Both linked projects have over 60k+ stars on GitHub

Pick one

[–] [email protected] 2 points 4 months ago

It has not taken over NGINX and Apache yet.

[–] [email protected] 28 points 4 months 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 4 months 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 4 months ago (8 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] 11 points 4 months ago (2 children)

Also my favourite way to push a core to 100% CPU

yes > /dev/null
load more comments (2 replies)
[–] [email protected] 3 points 4 months ago* (last edited 4 months ago) (2 children)

Sorry, I should have explained that. it's ~~command | yes~~ yes|command - Eg, yes|apt-get update (Not a great example since apt-get has -y, but sometimes that fails when prompting for new keys to accept)

Edit: I got it backwards, thanks @[email protected] for the correction.

load more comments (2 replies)
[–] [email protected] 4 points 4 months ago* (last edited 4 months 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 4 months 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 (4 replies)
load more comments (4 replies)
[–] [email protected] 8 points 4 months 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.

load more comments
view more: ‹ prev next ›