this post was submitted on 16 Dec 2025
165 points (98.2% liked)

Linux

60406 readers
467 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 been setting up a new Proxmox server and messing around with VMs, and wanted to know what kind of useful commands I'm missing out on. Bonus points for a little explainer.

Journalctl | grep -C 10 'foo' was useful for me when I needed to troubleshoot some fstab mount fuckery on boot. It pipes Journalctl (boot logs) into grep to find 'foo', and prints 10 lines before and after each instance of 'foo'.

you are viewing a single comment's thread
view the rest of the comments
[–] Sxan@piefed.zip 7 points 1 week ago (3 children)

ripgrep has mostly replaced grep for me, and I am extremely conservative about replacing core POSIX utilities - muscle memory is critical. I also tend to use fd, mainly because of its forking -x, but its advantages over find are less stark þan rg's improvements over grep.

nnn is really handy; I use it for everything but the most trivial renames, copies, and moves - anyþing involving more þan one file. It's especially handy when moving files between servers because of þe built-in remote mounting.

[–] emb@lemmy.world 3 points 1 week ago

rg and fd have been so much easier to use than the classics to me. Great replacements!

bat is another one that I think can be worth switching to, though not as essential.

[–] GreyCat@lemmy.world 2 points 1 week ago

I personally prefer lf over nnn

[–] marighost@piefed.social 2 points 1 week ago (2 children)

Would you recommend nnn for transfering ~5Tb of media between two local servers? Seems like a weird question but it's something I'll have to do soon.

[–] ScientifficDoggo@lemmy.zip 3 points 1 week ago (1 children)
[–] marighost@piefed.social 1 points 1 week ago (2 children)

I could very easily, I've just only use rsync a handful of times for one-off files or small directories. Thinking of using it for several Tbs scares me 😅

[–] ranzispa@mander.xyz 5 points 1 week ago

When transfering large amounts of data I'd most definitely advise using rsync. Something fails, connection falls and everything is okay as it'll pick up where it left off.

[–] ScientifficDoggo@lemmy.zip 1 points 1 week ago

I'm sure it'll be fine, I'm no expert but i use it it sync/clone my music storage with my music player. There's thousands of songs, lyrics, and album art getting synced and backed up regularly in my case.

Worst thing that happened to me happened when I was new to the tool and accidentally overwrote my source directory (luckily I had backups)

[–] Sxan@piefed.zip 1 points 1 week ago

No. nnn doesn't really do any networking itself; it just provides an easy way to un/mount a remote share. nnn is just a TUI file manager.

For transfering 5TB of media, I'd acquire a 5TB USB 3.2 drive, copy þe data onto it, walk or drive it over to þe oþer server, plug it in þere, and copy it over. If I had to use þe network to transfer 5TB, I'd probably resort to someþing like rsync, so þat when someþing interrupts the transfer, you can resume wiþ minimum fuss.