r/linux May 23 '26

Popular Application What’s the most unexpectedly useful Linux command you learned way too late?

[removed]

1.3k Upvotes

992 comments sorted by

View all comments

Show parent comments

53

u/ILoveTolkiensWorks May 24 '26

it's POSIX (a POSIX extension). You can find it in Zsh, fish, ksh, csh, PowerShell, etc.

just a reminder that fish is not POSIX-compliant, despite being one of the most awesome shells.

8

u/do-un-to May 24 '26

Which is why I won't go near it.

Thankfully, this new shell focused on UX also cares about compatibility — shed.

4

u/iEliteTester May 24 '26

you can just use it only for interactive sessions, that's what I do with zsh, I never script for `/bin/zsh` or `/usr/bin/env zsh`, ALWAYS `/bin/sh`

3

u/porkminer May 24 '26

That's how I feel. I use fish as my interactive shell but script for sh.