enable

用途

启动或关闭 shell 内建指令。

语法

enable [-n][-all][内建指令]

描述

若要执行的文件名称与shell内建指令相同,可用enable -n来关闭shell内建指令。若不加-n参数,enable可重新启动关闭的指令。

参数

-n  关闭指定的shell内建指令。
-all  显示shell所有关闭与启动的指令。

例子

显示目前 shell 所有内建指令的状态:

$ enable -all
…… 看到内建指令目前已经关闭
enable -n break
……

以下将 cd 指令关闭后,再重新启动:

$ enable -n cd
$ cd /root
bash:cd:command not found
$ enable -n
enable -n cd
$ enable cd

相关命令

shells/commands/enable.txt · 最后更改: 2010/03/30 13:01 (外部编辑)
[unknown link type]到顶部
GNU Free Documentation License 1.3
京ICP备05034962号 Debian Driven by DokuWiki get firefox browser Recent changes RSS feed Valid XHTML 1.0