📌  相关文章
📜  linux 获取可用命令 - Shell-Bash 代码示例

📅  最后修改于: 2022-03-11 14:50:38.153000             🧑  作者: Mango

代码示例1
compgen -c will list all the commands you could run.
compgen -a will list all the aliases you could run.
compgen -b will list all the built-ins you could run.
compgen -k will list all the keywords you could run.
compgen -A function will list all the functions you could run.