Type [-AFTPP] name [name,...]
-A prints all possible cases of name, such as Type-a ls, which will print LS is aliased to ' ls--color=auto ' and LS is/bin/ls
-F does not go to find function
-T Print alias,keyword,function,built-in,file these 5 types
-P If type-t name outputs file, the path of name is printed
-P Regardless of whether TYPE-T name is output file, it will search for the path of name, such as Type-p ls, although type-t ls prints alias (because alias has precedence over file), but still searches for the path where LS is located/bin/ls
If the type does not have any options, add 1 or more name directly, then the type of these name will be printed sequentially. Only the type of all name can print successfully, the type returns success, otherwise, if any one of the name types cannot print, then the failure is returned.
The type command in the shell