Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Linux basic command-enable opens the shell command

2025-04-03 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

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

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report