Enable or disable shell built-in commands

Source: Internet
Author: User

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.