this post was submitted on 16 Jun 2025
62 points (100.0% liked)

Linux

55989 readers
1024 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
 

I've found this to be pretty useful when needing to do recursive / multi-file search and replace. Also has bindings to work within terminal text editors like vim and helix.

Uses rust and ripgrep under the hood for speed.

you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 2 points 2 weeks ago (3 children)

Thanks, that'll come in handy!

I guess it's worth mentioning that once (only once) I've seen ripgrep bring a whole LAMP stack production server to a full tilt. A dev using VSCode (which has rg as part of its 'trojan horse' vscode-server it installs and runs as root on any server it's used to edit) did a search and ripgrep went into some kind of death loop hogging 100% of all cpu cores. Probably rare, but kind of shocked me. All our servers now babysit vscode-server with cgroups...

[–] [email protected] 2 points 2 weeks ago (2 children)

I'm curious, why would VS Code be installed on the server and not a developers machine?

[–] [email protected] 4 points 2 weeks ago* (last edited 2 weeks ago) (1 children)

The dev's VSCode application installs a helper package in /root/.vscode-server. Separate copy for every user that connects. It runs a bunch of 'node' processes that often stack up more used CPU time than MySQL. I'm not a fan...

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

Interesting, I appreciate the explanation.

It's crazy how much a single node instance can max out my huge desktop CPU, so I can imagine.