Linux · 2021年4月28日 0

linux 想要知道当前系统支持的所有命令的列表,怎么做?


使用命令 compgen -c,可以打印出所有支持的命令列表

[root@localhost ~]$ compgen -c
l.
ll
ls
which
if
then else
elif
fi
case
esac
for
select
while
until
do
done