How do I list all commands in shell?

How do I list all commands in shell?
Answer
20 Answers
  1. compgen -c will list all the commands you could run.
  2. compgen -a will list all the aliases you could run.
  3. compgen -b will list all the built-ins you could run.
  4. compgen -k will list all the keywords you could run.
  5. compgen -A function will list all the functions you could run.
 

Tìm kiếm

Back
Top