Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

What should I write in Terminal to see all main commands?

share|improve this question
What do you consider to be "main commands"? And just the executables or also "main commands" including "main options". In my opinion this is too broad as it currently stands. – gertvdijk Aug 27 '13 at 15:44
up vote 8 down vote accepted

I think the most direct answer to your question is:

compgen -b

which lists all built-in commands

compgen -c

lists all commands (maybe better to use compgen -c | more since it's a long list)

A nice list of core commands can be found here.

share|improve this answer

I don't know it's the correct way or not but in my opinion you can try the following trick as you want the list of commands through terminal

To see the available commands in Ubuntu you can go to the following directories and get a listing of them



cd /usr/bin/


cd /usr/sbin/

By using the above commands you can see the list of commands then to get to know more about those commands use

man {command-name}

Or try online resources which lists the commands so that you don't screw up anything on your system

Linux Commands

Also see the link below:

List commands in Linux

share|improve this answer

A compilation of all commands used in linux is given here


they even linked the man pages, so it is a great resource to check out!

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.