linux命令网

当前位置:linux命令 > linux常用命令

compgen命令 – 列出所有Linux命令

compgen一个很棒的命令列出所有Linux命令,compgen是bash内置命令,它将显示所有可用的命令,别名和函数。

语法格式:compgen [参数]

常用参数:

-c列出所有可用的命令
-a列出可用的所有bash shell别名
-b显示所有bash内置插件
-k显示所有bash关键字
-A显示所有bash函数

参考实例

列出所有可用的命令:

[root@linuxmingling ~]# compgen -c

列出可用的所有bash shell别名:

[root@linuxmingling ~]# compgen -a

显示所有bash内置插件:

[root@linuxmingling ~]# compgen -b

显示所有bash关键字:

[root@linuxmingling ~]# compgen -k

显示所有bash函数:

[root@linuxmingling ~]# compgen -A

标签列出 Linux compgen


相关linux命令
苏ICP备2022026517号-3  |   苏公网安备 32081202000317号
淮安先皓网络科技有限公司 © 版权所有  联系我们