this post was submitted on 23 May 2025
43 points (100.0% liked)

Linux

8467 readers
656 users here now

A community for everything relating to the GNU/Linux operating system (except the memes!)

Also, check out:

Original icon base courtesy of [email protected] and The GIMP

founded 2 years ago
MODERATORS
top 8 comments
sorted by: hot top controversial new old
[–] [email protected] 11 points 1 month ago

"Advanced Linux Commands You've Probably Never Used"

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

^foo^bar Command – Quick Text Substitution

doesn't work for me (using fish) and is apparantly only available in bash; would you call that then a command?

at Command – Schedule One-Time Tasks

at is also not a built-in but an external tool you have to install first; but its an interesting one.

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

Mine you, this page is clearly targeted at an audience who've never opened a shell before; they're all quite common, and it's almost impossible to have spent any time in bash, zsh, or any bash-ish shell without encountering or using these. Also, a couple are not going to work at all in non-standard shells like fish, nushell, or even more common shells like ash, BusyBox, or the venerable csh, because they're bash built-ins. There's dependency on the GNU toolset, too; some of these commands won't work on FreeBSD, even when running bash, because the SysV tools have different argument lists.

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

du -sh * | sort -h is a thing I type frequently.

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

Yea, I love du -hd 1 | sort -h when cleaning up. I absolutely love that I don't need any extra software to quickly locate whatever takes up space. I can do this on any machine without installing anything extra.

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

That's a completely different tool, though, no? I just do this for determining when I need to clean up:

df -hx tmpfs

Gives me enough information for this purpose and, again, does not require any additional software, df is part of coreutils.

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

Just thinking of commands I need to learn, and I think chroot is up there. Iirc, you can recover from some extremely bad system states with an ISO and chroot.

I understand the basics of what it does from it's description, I just haven't really dived deep enough to feel comfortable with it.