Vân Anh Nguyen
Member
What does the type command do in bash?
Answer
By knowing the type of a command you can ensure the proper behavior of your shell script. A command type in bash will be identified either as an
alias , keyword , functions , builtin , file , or an empty string for unknown types
. The command builtin can also be used to execute a command by suppressing the shell lookup.
Answer
By knowing the type of a command you can ensure the proper behavior of your shell script. A command type in bash will be identified either as an
alias , keyword , functions , builtin , file , or an empty string for unknown types
. The command builtin can also be used to execute a command by suppressing the shell lookup.