Friday, May 3, 2024
6
rated 0 times [  6] [ 0]  / answers: 1 / hits: 391  / 2 Years ago, wed, september 28, 2022, 6:47:18

I'm running Bash scripting, but sometimes I get confused which of these commands I use belong to who. Sometimes man xxx works, sometimes doesn't, so I use --help or info, mostly one of these works to show description of the command. Can anyone tell me how I would know what command belongs to what? Bash builtin, GNU utility, etc.


More From » command-line

 Answers
5

You can use type to find out:



$ type echo
echo is a shell builtin
$ type sudo
sudo is /usr/bin/sudo


For bash builtins, use help, as in help echo.


[#29097] Thursday, September 29, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
odenanno

Total Points: 207
Total Questions: 113
Total Answers: 94

Location: South Korea
Member since Sat, Oct 2, 2021
3 Years ago
odenanno questions
;