Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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

(I'm using Ubuntu 12.04.)

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

3 Answers 3

up vote 5 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

WARNING

DO NOT TRY TO EDIT OR ANYTHING IN THOSE DIRECTORIES

cd /usr/bin/
ls

and

cd /usr/sbin/
ls

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

ss64

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

share|improve this answer

Your Answer

 
discard

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.