What is Nostr?
b9AcE #NoEdits /
npub14hy…jycy
2023-05-03 19:19:15
in reply to nevent1q…599r

b9AcE #NoEdits on Nostr: But... but... how do you know if a command is "built in" into the command-shell?, for ...

But... but... how do you know if a command is "built in" into the command-shell?, for the purposes of the previous toot?

For that, you just have to ask your command-shell (if it's BASH or one of the related) to "type" out the thing it would interpret that command as,
with the command "type".

Say for example you had entered my previous "\builtin alias la='\/bin/ls -halF --color=force'" and now forgot if the resulting new command "la" was built-in or an alias, you just enter "type la" and it will tell you that "la is aliased to `\/bin/ls -halF --color=force'".

This is very similar to the command "which", which will tell you which "ls" the command "ls" will run if there are several "ls" to choose from.
You can also use "type -p [the command]" to get it to type out the entire "path" of the command it would run, to be extra-super-sure (but not if it's an alias, of course because then there is no "path" to type out to you).
Author Public Key
npub14hy0uajlrmsmt4ep5ex7ayqxyaamq0rqsf8yt4h4crmcjay9l4xsaqjycy