Get the App
SLTechnology News&Howtos  ›  Servers  › 

Linux basic command-enable opens the shell command

Shulou Source: shulou.com Published: 2022-06-02 18:41:39 09月30日 Update

enable

The enable command is used to disable or activate shell internal commands. This command applies to Red Hat, RHEL, Ubuntu, CentOS, Fedora.

1. Grammar

enable [-a] [-dnps] [-f filename] [name ...]

2. Option list

option

description

-a

Displays all shell internal commands, both active and closed

-n

Closes the specified shell command. If not specified, the closed command is displayed.

-f

Download new shell commands from the command file

-d

Delete previous commands

-p

Show all active shell commands

-s

Output commands that strictly follow the posix standard definition

3. Examples

1) Output posix standard command

[root@localhost ~]#enable -s //Displays commands that strictly follow the posix standard, much less than the result of the-a option

enable .

enable :

enable break

enable continue

enable eval

enable execen'a

enable exit

enable export

enable readonly

enable return

enable set

enable shift

enable source

enable times

enable trap

enable unset

2) Close command

[root@localhost ~]# enable -n break //close break command

You have new mail in /var/spool/mail/root

[root@localhost ~]# enable -n //Show closed commands

enable -n break

Made a Linux learning platform, currently out of a prototype, you can refer to the use

Link: https://pan.baidu.com/s/1GOLVU2CbpBNGtunztVpaCQ Password:n7bk

Tags: Commands standards activations instructions outputs instances passwords platforms files results scope syntax scope links prototypes references learning basics Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Linux Xiaomi Shulou Tech Info OPPO Reno MySQL