this post was submitted on 23 May 2025
33 points (86.7% liked)

Linux

7481 readers
224 users here now

A community for everything relating to the GNU/Linux operating system

Also check out:

Original icon base courtesy of lewing@isc.tamu.edu and The GIMP

founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[–] DmMacniel@feddit.org 10 points 1 week ago (1 children)

^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.

[–] thingsiplay@beehaw.org 4 points 1 week ago (1 children)

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

Right, the ^search^replace is a Bash feature. It is a builtin command, like echo or cd in example. Just because a command is not available to any other shell or if its not an independent program, does not make it not a command (in my opinion).

However I agree its a little bit out of place here. A note that its a builtin and not universally available to every shell would have been nice in such a listing.

[–] DmMacniel@feddit.org 7 points 1 week ago (2 children)

just for the sake of being pedantic: echo is actually a program (just like ls) cd though is indeed a command. And I agree with your last statement.

[–] elmicha@feddit.org 6 points 1 week ago (1 children)

echo is a program, but some shells like Bash and zsh also have a built-in echo. You can run type echo to verify that.

[–] DmMacniel@feddit.org 5 points 1 week ago

whelp... i tried to be pedantic and then got schooled. Thanks :D

[–] thingsiplay@beehaw.org 5 points 1 week ago (1 children)

In Bash echo is a builtin command. The external indipendent /usr/bin/echo is only used by non Bash shells.

[–] DmMacniel@feddit.org 4 points 1 week ago (1 children)

whelp... i tried to be pedantic and then got schooled. Thanks :D

[–] thingsiplay@beehaw.org 4 points 1 week ago (1 children)

Well, you was not wrong though. Because it is both. I just forgot it, so you schooled me too. :-) We can have it all! :D

[–] DmMacniel@feddit.org 4 points 1 week ago* (last edited 1 week ago)

very sympathetic of you <3