View types of commands: type
[[Email protected] ~]# type CDCD is a shell builtin[[email protected] ~]# type Lsls are aliased to ' ls--color=auto ' [[Email Protected] ~]# type-a Lsls is aliased to ' ls--color=auto ' ls is/bin/ls[[email protected] ~]#
See if the built-in command is turned off on the system: Enable-n
[Email protected] ~]# Enable-n[[email protected] ~]# # There is no shell built-in command in the disabled state.
Close the specified shell built-in command: Enable-n <command_name>
[[email protected] ~]# enable-n cd[[email protected] ~]# enable-nenable-n cd[[email protected] ~]# Cd-bash:cd:command Not found[[email protected] ~]#
Re-enable the shell built-in command in the disabled state: Enable <command_name>
[[email protected] ~]# enable Cd[[email protected] ~]# enable-n[[email protected] ~]# cd[[email protected] ~]# cd/var[[e Mail protected] var]#
This article is from the "Hezhang" blog, make sure to keep this source http://hezhang.blog.51cto.com/1347601/1649601
Enable or disable shell built-in commands