How to generate list of *all* available commands and functions?TAB autocomplete in Bourne Shellhow to edit and color bash's tab completion listBash autocomplete: does not list files or directoriesContext-sensitive bash completion changes wildcard behaviorIs it possible for bash/readline to “clean up” completion suggestions out the terminal?How is findmnt able to list bind mounts?How do I find commands/files in my PATH through tab completion using wildcards?How to list all commands available from $PATHReading existing screen displayed valuesDebian terminal - how can navigate from history list?

How can I improve my violin intonation for enharmonic notes?

One to Eleven Sum to Twenty Five

Are there examples of rowers who also fought?

Is there any way to revive my Sim?

Why is it 出差去 and not 去出差?

Can the pre-order traversal of two different trees be the same even though they are different?

Definition of 'vrit'

In a list with unique pairs A, B, how can I sort them so that the last B is the first A in the next pair?

Is this series for Pi correct? And who has done it before?

How is the idea of "girlfriend material" naturally expressed in Russian?

How to make all magic-casting innate, but still rare?

King or Queen-Which piece is which?

Why are there no file insertion syscalls

Implementation of the Jacobi Symbol in C

What is the highest power supply a Raspberry pi 3 B can handle without getting damaged?

Can a character learn spells from someone else's spellbook and then sell it?

What preparations would Hubble have needed to return in a Shuttle?

My student in one course asks for paid tutoring in another course. Appropriate?

Convergent Licencing

First occurrence in the Sixers sequence

How could I create a situation in which a PC has to make a saving throw or be forced to pet a dog?

How is linear momentum conserved in circular motion?

Predict the product from the reaction

Basic power tool set for Home repair and simple projects



How to generate list of *all* available commands and functions?


TAB autocomplete in Bourne Shellhow to edit and color bash's tab completion listBash autocomplete: does not list files or directoriesContext-sensitive bash completion changes wildcard behaviorIs it possible for bash/readline to “clean up” completion suggestions out the terminal?How is findmnt able to list bind mounts?How do I find commands/files in my PATH through tab completion using wildcards?How to list all commands available from $PATHReading existing screen displayed valuesDebian terminal - how can navigate from history list?






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








5















In Linux (I am using CentOS 7), there is a built in functionality to view all runnable commands. The command is run by pressing tab twice in the console followed by the prompt:



Display all 1130 possibilities? (y or n)


Pressing y outputs a huge list of commands to the console.



Is there a way to capture this output in a file?



Or is this list already stored locally? If so, how can I access this?










share|improve this question









New contributor



Big Jolene is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.

























    5















    In Linux (I am using CentOS 7), there is a built in functionality to view all runnable commands. The command is run by pressing tab twice in the console followed by the prompt:



    Display all 1130 possibilities? (y or n)


    Pressing y outputs a huge list of commands to the console.



    Is there a way to capture this output in a file?



    Or is this list already stored locally? If so, how can I access this?










    share|improve this question









    New contributor



    Big Jolene is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
    Check out our Code of Conduct.





















      5












      5








      5


      1






      In Linux (I am using CentOS 7), there is a built in functionality to view all runnable commands. The command is run by pressing tab twice in the console followed by the prompt:



      Display all 1130 possibilities? (y or n)


      Pressing y outputs a huge list of commands to the console.



      Is there a way to capture this output in a file?



      Or is this list already stored locally? If so, how can I access this?










      share|improve this question









      New contributor



      Big Jolene is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.











      In Linux (I am using CentOS 7), there is a built in functionality to view all runnable commands. The command is run by pressing tab twice in the console followed by the prompt:



      Display all 1130 possibilities? (y or n)


      Pressing y outputs a huge list of commands to the console.



      Is there a way to capture this output in a file?



      Or is this list already stored locally? If so, how can I access this?







      linux bash command autocomplete






      share|improve this question









      New contributor



      Big Jolene is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.










      share|improve this question









      New contributor



      Big Jolene is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.








      share|improve this question




      share|improve this question








      edited Jun 10 at 14:03









      glenn jackman

      54.2k675115




      54.2k675115






      New contributor



      Big Jolene is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.








      asked Jun 10 at 11:22









      Big JoleneBig Jolene

      787




      787




      New contributor



      Big Jolene is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.




      New contributor




      Big Jolene is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.






















          2 Answers
          2






          active

          oldest

          votes


















          5














          It seems compgen outputs duplicates: perhaps programs that appear in multiple locations in your PATH:



          autocomplete says:



          $ [tab][tab]
          Display all 2328 possibilities? (y or n)


          compgen says:



          $ compgen -A function -abck | wc -l
          2647
          $ compgen -A function -abck | sort -u | wc -l
          2328


          I don't know if this is important for you.






          share|improve this answer
































            5














            The solution I chose was to run the command:



            $ compgen -A function -abck | sort -u >> cmds.txt


            which appends all runnable commands, functions and aliases to a text file cmds.txt



            Taken from: https://stackoverflow.com/questions/948008/linux-command-to-list-all-available-commands-and-aliases



            Edit: added sort -u to command to remove duplicates as suggested by glenn jackman






            share|improve this answer










            New contributor



            Big Jolene is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
            Check out our Code of Conduct.














            • 2





              <pedantry>It's actually appending, not writing.</pedantry>

              – wizzwizz4
              Jun 10 at 21:26











            Your Answer








            StackExchange.ready(function()
            var channelOptions =
            tags: "".split(" "),
            id: "106"
            ;
            initTagRenderer("".split(" "), "".split(" "), channelOptions);

            StackExchange.using("externalEditor", function()
            // Have to fire editor after snippets, if snippets enabled
            if (StackExchange.settings.snippets.snippetsEnabled)
            StackExchange.using("snippets", function()
            createEditor();
            );

            else
            createEditor();

            );

            function createEditor()
            StackExchange.prepareEditor(
            heartbeatType: 'answer',
            autoActivateHeartbeat: false,
            convertImagesToLinks: false,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: null,
            bindNavPrevention: true,
            postfix: "",
            imageUploader:
            brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
            contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
            allowUrls: true
            ,
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            );



            );






            Big Jolene is a new contributor. Be nice, and check out our Code of Conduct.









            draft saved

            draft discarded


















            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f523989%2fhow-to-generate-list-of-all-available-commands-and-functions%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown

























            2 Answers
            2






            active

            oldest

            votes








            2 Answers
            2






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            5














            It seems compgen outputs duplicates: perhaps programs that appear in multiple locations in your PATH:



            autocomplete says:



            $ [tab][tab]
            Display all 2328 possibilities? (y or n)


            compgen says:



            $ compgen -A function -abck | wc -l
            2647
            $ compgen -A function -abck | sort -u | wc -l
            2328


            I don't know if this is important for you.






            share|improve this answer





























              5














              It seems compgen outputs duplicates: perhaps programs that appear in multiple locations in your PATH:



              autocomplete says:



              $ [tab][tab]
              Display all 2328 possibilities? (y or n)


              compgen says:



              $ compgen -A function -abck | wc -l
              2647
              $ compgen -A function -abck | sort -u | wc -l
              2328


              I don't know if this is important for you.






              share|improve this answer



























                5












                5








                5







                It seems compgen outputs duplicates: perhaps programs that appear in multiple locations in your PATH:



                autocomplete says:



                $ [tab][tab]
                Display all 2328 possibilities? (y or n)


                compgen says:



                $ compgen -A function -abck | wc -l
                2647
                $ compgen -A function -abck | sort -u | wc -l
                2328


                I don't know if this is important for you.






                share|improve this answer















                It seems compgen outputs duplicates: perhaps programs that appear in multiple locations in your PATH:



                autocomplete says:



                $ [tab][tab]
                Display all 2328 possibilities? (y or n)


                compgen says:



                $ compgen -A function -abck | wc -l
                2647
                $ compgen -A function -abck | sort -u | wc -l
                2328


                I don't know if this is important for you.







                share|improve this answer














                share|improve this answer



                share|improve this answer








                answered Jun 10 at 14:10


























                community wiki





                glenn jackman
























                    5














                    The solution I chose was to run the command:



                    $ compgen -A function -abck | sort -u >> cmds.txt


                    which appends all runnable commands, functions and aliases to a text file cmds.txt



                    Taken from: https://stackoverflow.com/questions/948008/linux-command-to-list-all-available-commands-and-aliases



                    Edit: added sort -u to command to remove duplicates as suggested by glenn jackman






                    share|improve this answer










                    New contributor



                    Big Jolene is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                    Check out our Code of Conduct.














                    • 2





                      <pedantry>It's actually appending, not writing.</pedantry>

                      – wizzwizz4
                      Jun 10 at 21:26















                    5














                    The solution I chose was to run the command:



                    $ compgen -A function -abck | sort -u >> cmds.txt


                    which appends all runnable commands, functions and aliases to a text file cmds.txt



                    Taken from: https://stackoverflow.com/questions/948008/linux-command-to-list-all-available-commands-and-aliases



                    Edit: added sort -u to command to remove duplicates as suggested by glenn jackman






                    share|improve this answer










                    New contributor



                    Big Jolene is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                    Check out our Code of Conduct.














                    • 2





                      <pedantry>It's actually appending, not writing.</pedantry>

                      – wizzwizz4
                      Jun 10 at 21:26













                    5












                    5








                    5







                    The solution I chose was to run the command:



                    $ compgen -A function -abck | sort -u >> cmds.txt


                    which appends all runnable commands, functions and aliases to a text file cmds.txt



                    Taken from: https://stackoverflow.com/questions/948008/linux-command-to-list-all-available-commands-and-aliases



                    Edit: added sort -u to command to remove duplicates as suggested by glenn jackman






                    share|improve this answer










                    New contributor



                    Big Jolene is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                    Check out our Code of Conduct.









                    The solution I chose was to run the command:



                    $ compgen -A function -abck | sort -u >> cmds.txt


                    which appends all runnable commands, functions and aliases to a text file cmds.txt



                    Taken from: https://stackoverflow.com/questions/948008/linux-command-to-list-all-available-commands-and-aliases



                    Edit: added sort -u to command to remove duplicates as suggested by glenn jackman







                    share|improve this answer










                    New contributor



                    Big Jolene is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                    Check out our Code of Conduct.








                    share|improve this answer



                    share|improve this answer








                    edited Jun 11 at 10:55





















                    New contributor



                    Big Jolene is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                    Check out our Code of Conduct.








                    answered Jun 10 at 11:32









                    Big JoleneBig Jolene

                    787




                    787




                    New contributor



                    Big Jolene is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                    Check out our Code of Conduct.




                    New contributor




                    Big Jolene is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                    Check out our Code of Conduct.









                    • 2





                      <pedantry>It's actually appending, not writing.</pedantry>

                      – wizzwizz4
                      Jun 10 at 21:26












                    • 2





                      <pedantry>It's actually appending, not writing.</pedantry>

                      – wizzwizz4
                      Jun 10 at 21:26







                    2




                    2





                    <pedantry>It's actually appending, not writing.</pedantry>

                    – wizzwizz4
                    Jun 10 at 21:26





                    <pedantry>It's actually appending, not writing.</pedantry>

                    – wizzwizz4
                    Jun 10 at 21:26










                    Big Jolene is a new contributor. Be nice, and check out our Code of Conduct.









                    draft saved

                    draft discarded


















                    Big Jolene is a new contributor. Be nice, and check out our Code of Conduct.












                    Big Jolene is a new contributor. Be nice, and check out our Code of Conduct.











                    Big Jolene is a new contributor. Be nice, and check out our Code of Conduct.














                    Thanks for contributing an answer to Unix & Linux Stack Exchange!


                    • Please be sure to answer the question. Provide details and share your research!

                    But avoid


                    • Asking for help, clarification, or responding to other answers.

                    • Making statements based on opinion; back them up with references or personal experience.

                    To learn more, see our tips on writing great answers.




                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function ()
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f523989%2fhow-to-generate-list-of-all-available-commands-and-functions%23new-answer', 'question_page');

                    );

                    Post as a guest















                    Required, but never shown





















































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown

































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown







                    Popular posts from this blog

                    Grendel Contents Story Scholarship Depictions Notes References Navigation menu10.1093/notesj/gjn112Berserkeree

                    Area configuration aggregation error after install Porto themeMagento 2.1 CE Installed but front/backend not loading/workingCSS not loading on page within Magento 2 pageCannot install module in Magento 2no commands defined in the “setup” namespace. in Magento2Magento 2: Static files are present but shows 404Why do i have to always run the commands to clean cache in Magento 2.1.8?Failure reason: 'Unable to unserialize value.'Error 500 after magento migrationIn production mode the site does not loadMagento 2 : Error 500 after installing

                    Middle Expansion Olielle Resaix Definition: Uttering songs of triumph shouting with joy triumphant exulting Sejunction Journal 붙다 달 고급 품목 외출 The stretch trades the screeching tin. Definition: The act of speaking with a drawl a drawl Cough Sand Definition: An uproar a quarrel a noisy outbreak Shake Iron Publicize Horse House Baby 사과 Resaix Flaggy Jelly Temporary Unequaled Puppet A drop in the bucket Shrew 성격 회원 성질 미팅 The burn frames the tacky quality. Materialistic The smoke reduces the way. Yammoe Nondescript Cheek 얼굴 배 약하다 날리다 타다 The illegal country shows the iron. Help Rule Drearien Smoke Teaching Meaty Wasp Abraham Lincoln Jaws 진심 수리하다 Size Cork Idea Convert Think Lark John Lennon 거울 청소 군 추천하다 아이스크림