What is the difference between the whatis and apropos commands?

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
5
down vote

favorite
2












CentOS 6.3 / RHEL 6.3



Can someone please explain the difference between the whatis command and the apropos command? I noticed that both appear to be installed by default and I'm not sure what the difference is between them.










share|improve this question

















  • 3




    Probably yum provides whatis and yum provides apropos will both list the same man, man-db or similar package. Actually whatis is the same as man -f and apropos the same as man -k. See whether those two switch's description in man man is easier to understand.
    – manatwork
    Mar 24 '13 at 16:47














up vote
5
down vote

favorite
2












CentOS 6.3 / RHEL 6.3



Can someone please explain the difference between the whatis command and the apropos command? I noticed that both appear to be installed by default and I'm not sure what the difference is between them.










share|improve this question

















  • 3




    Probably yum provides whatis and yum provides apropos will both list the same man, man-db or similar package. Actually whatis is the same as man -f and apropos the same as man -k. See whether those two switch's description in man man is easier to understand.
    – manatwork
    Mar 24 '13 at 16:47












up vote
5
down vote

favorite
2









up vote
5
down vote

favorite
2






2





CentOS 6.3 / RHEL 6.3



Can someone please explain the difference between the whatis command and the apropos command? I noticed that both appear to be installed by default and I'm not sure what the difference is between them.










share|improve this question













CentOS 6.3 / RHEL 6.3



Can someone please explain the difference between the whatis command and the apropos command? I noticed that both appear to be installed by default and I'm not sure what the difference is between them.







command-line centos rhel






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Mar 24 '13 at 16:29









Mike B

3,104175374




3,104175374







  • 3




    Probably yum provides whatis and yum provides apropos will both list the same man, man-db or similar package. Actually whatis is the same as man -f and apropos the same as man -k. See whether those two switch's description in man man is easier to understand.
    – manatwork
    Mar 24 '13 at 16:47












  • 3




    Probably yum provides whatis and yum provides apropos will both list the same man, man-db or similar package. Actually whatis is the same as man -f and apropos the same as man -k. See whether those two switch's description in man man is easier to understand.
    – manatwork
    Mar 24 '13 at 16:47







3




3




Probably yum provides whatis and yum provides apropos will both list the same man, man-db or similar package. Actually whatis is the same as man -f and apropos the same as man -k. See whether those two switch's description in man man is easier to understand.
– manatwork
Mar 24 '13 at 16:47




Probably yum provides whatis and yum provides apropos will both list the same man, man-db or similar package. Actually whatis is the same as man -f and apropos the same as man -k. See whether those two switch's description in man man is easier to understand.
– manatwork
Mar 24 '13 at 16:47










3 Answers
3






active

oldest

votes

















up vote
5
down vote













whatis displays one-line manual page descriptions, intended to give you a general idea of what a program do,



while apropos searches the manual page names and descriptions, intended to help you to learn what program to use when performing a certain job.



Some examples



Say, I want to know what does df program do. whatis gives me answer.



$ whatis df
df (1) - report file system disk space usage


And now, I want to unzip an archive. apropos gives me some choises for consideration.



$ apropos unzip
bunzip2 (1) - a block-sorting file compressor, v1.0.6
funzip (1) - filter for extracting from a ZIP archive in a pipe
gunzip (1) - compress or expand files
lz (1) - gunzips and shows a listing of a gzip'd tar'd archive
preunzip (1) - prefix delta compressor for Aspell
unzip (1) - list, test and extract compressed files in a ZIP archive
unzipsfx (1) - self-extracting stub for prepending to ZIP archives
uz (1) - gunzips and extracts a gzip'd tar'd archive


UPDATE:



Since both whatis and apropos search man database, you can only get info on what's already installed on your system.






share|improve this answer





























    up vote
    3
    down vote













    whatis ls lists the manual pages for ls, apropos ls lists all manual pages that contain ls in their title. The first list here gives 2 entries, the second 1385.






    share|improve this answer



























      up vote
      0
      down vote













      they act the same with one different:
      whatis need a accurate parameter:



      whatis passwd


      But apropos need a string or first characters of something that you know:



      apropos pass





      share|improve this answer




















        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',
        convertImagesToLinks: false,
        noModals: false,
        showLowRepImageUploadWarning: true,
        reputationToPostImages: null,
        bindNavPrevention: true,
        postfix: "",
        onDemand: true,
        discardSelector: ".discard-answer"
        ,immediatelyShowMarkdownHelp:true
        );



        );













         

        draft saved


        draft discarded


















        StackExchange.ready(
        function ()
        StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f68998%2fwhat-is-the-difference-between-the-whatis-and-apropos-commands%23new-answer', 'question_page');

        );

        Post as a guest






























        3 Answers
        3






        active

        oldest

        votes








        3 Answers
        3






        active

        oldest

        votes









        active

        oldest

        votes






        active

        oldest

        votes








        up vote
        5
        down vote













        whatis displays one-line manual page descriptions, intended to give you a general idea of what a program do,



        while apropos searches the manual page names and descriptions, intended to help you to learn what program to use when performing a certain job.



        Some examples



        Say, I want to know what does df program do. whatis gives me answer.



        $ whatis df
        df (1) - report file system disk space usage


        And now, I want to unzip an archive. apropos gives me some choises for consideration.



        $ apropos unzip
        bunzip2 (1) - a block-sorting file compressor, v1.0.6
        funzip (1) - filter for extracting from a ZIP archive in a pipe
        gunzip (1) - compress or expand files
        lz (1) - gunzips and shows a listing of a gzip'd tar'd archive
        preunzip (1) - prefix delta compressor for Aspell
        unzip (1) - list, test and extract compressed files in a ZIP archive
        unzipsfx (1) - self-extracting stub for prepending to ZIP archives
        uz (1) - gunzips and extracts a gzip'd tar'd archive


        UPDATE:



        Since both whatis and apropos search man database, you can only get info on what's already installed on your system.






        share|improve this answer


























          up vote
          5
          down vote













          whatis displays one-line manual page descriptions, intended to give you a general idea of what a program do,



          while apropos searches the manual page names and descriptions, intended to help you to learn what program to use when performing a certain job.



          Some examples



          Say, I want to know what does df program do. whatis gives me answer.



          $ whatis df
          df (1) - report file system disk space usage


          And now, I want to unzip an archive. apropos gives me some choises for consideration.



          $ apropos unzip
          bunzip2 (1) - a block-sorting file compressor, v1.0.6
          funzip (1) - filter for extracting from a ZIP archive in a pipe
          gunzip (1) - compress or expand files
          lz (1) - gunzips and shows a listing of a gzip'd tar'd archive
          preunzip (1) - prefix delta compressor for Aspell
          unzip (1) - list, test and extract compressed files in a ZIP archive
          unzipsfx (1) - self-extracting stub for prepending to ZIP archives
          uz (1) - gunzips and extracts a gzip'd tar'd archive


          UPDATE:



          Since both whatis and apropos search man database, you can only get info on what's already installed on your system.






          share|improve this answer
























            up vote
            5
            down vote










            up vote
            5
            down vote









            whatis displays one-line manual page descriptions, intended to give you a general idea of what a program do,



            while apropos searches the manual page names and descriptions, intended to help you to learn what program to use when performing a certain job.



            Some examples



            Say, I want to know what does df program do. whatis gives me answer.



            $ whatis df
            df (1) - report file system disk space usage


            And now, I want to unzip an archive. apropos gives me some choises for consideration.



            $ apropos unzip
            bunzip2 (1) - a block-sorting file compressor, v1.0.6
            funzip (1) - filter for extracting from a ZIP archive in a pipe
            gunzip (1) - compress or expand files
            lz (1) - gunzips and shows a listing of a gzip'd tar'd archive
            preunzip (1) - prefix delta compressor for Aspell
            unzip (1) - list, test and extract compressed files in a ZIP archive
            unzipsfx (1) - self-extracting stub for prepending to ZIP archives
            uz (1) - gunzips and extracts a gzip'd tar'd archive


            UPDATE:



            Since both whatis and apropos search man database, you can only get info on what's already installed on your system.






            share|improve this answer














            whatis displays one-line manual page descriptions, intended to give you a general idea of what a program do,



            while apropos searches the manual page names and descriptions, intended to help you to learn what program to use when performing a certain job.



            Some examples



            Say, I want to know what does df program do. whatis gives me answer.



            $ whatis df
            df (1) - report file system disk space usage


            And now, I want to unzip an archive. apropos gives me some choises for consideration.



            $ apropos unzip
            bunzip2 (1) - a block-sorting file compressor, v1.0.6
            funzip (1) - filter for extracting from a ZIP archive in a pipe
            gunzip (1) - compress or expand files
            lz (1) - gunzips and shows a listing of a gzip'd tar'd archive
            preunzip (1) - prefix delta compressor for Aspell
            unzip (1) - list, test and extract compressed files in a ZIP archive
            unzipsfx (1) - self-extracting stub for prepending to ZIP archives
            uz (1) - gunzips and extracts a gzip'd tar'd archive


            UPDATE:



            Since both whatis and apropos search man database, you can only get info on what's already installed on your system.







            share|improve this answer














            share|improve this answer



            share|improve this answer








            edited Sep 10 '14 at 8:50

























            answered Sep 10 '14 at 8:29









            pallxk

            53056




            53056






















                up vote
                3
                down vote













                whatis ls lists the manual pages for ls, apropos ls lists all manual pages that contain ls in their title. The first list here gives 2 entries, the second 1385.






                share|improve this answer
























                  up vote
                  3
                  down vote













                  whatis ls lists the manual pages for ls, apropos ls lists all manual pages that contain ls in their title. The first list here gives 2 entries, the second 1385.






                  share|improve this answer






















                    up vote
                    3
                    down vote










                    up vote
                    3
                    down vote









                    whatis ls lists the manual pages for ls, apropos ls lists all manual pages that contain ls in their title. The first list here gives 2 entries, the second 1385.






                    share|improve this answer












                    whatis ls lists the manual pages for ls, apropos ls lists all manual pages that contain ls in their title. The first list here gives 2 entries, the second 1385.







                    share|improve this answer












                    share|improve this answer



                    share|improve this answer










                    answered Mar 24 '13 at 16:49









                    vonbrand

                    14k22444




                    14k22444




















                        up vote
                        0
                        down vote













                        they act the same with one different:
                        whatis need a accurate parameter:



                        whatis passwd


                        But apropos need a string or first characters of something that you know:



                        apropos pass





                        share|improve this answer
























                          up vote
                          0
                          down vote













                          they act the same with one different:
                          whatis need a accurate parameter:



                          whatis passwd


                          But apropos need a string or first characters of something that you know:



                          apropos pass





                          share|improve this answer






















                            up vote
                            0
                            down vote










                            up vote
                            0
                            down vote









                            they act the same with one different:
                            whatis need a accurate parameter:



                            whatis passwd


                            But apropos need a string or first characters of something that you know:



                            apropos pass





                            share|improve this answer












                            they act the same with one different:
                            whatis need a accurate parameter:



                            whatis passwd


                            But apropos need a string or first characters of something that you know:



                            apropos pass






                            share|improve this answer












                            share|improve this answer



                            share|improve this answer










                            answered Aug 26 at 18:12









                            Amin

                            1




                            1



























                                 

                                draft saved


                                draft discarded















































                                 


                                draft saved


                                draft discarded














                                StackExchange.ready(
                                function ()
                                StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f68998%2fwhat-is-the-difference-between-the-whatis-and-apropos-commands%23new-answer', 'question_page');

                                );

                                Post as a guest













































































                                Popular posts from this blog

                                How to check contact read email or not when send email to Individual?

                                Bahrain

                                Postfix configuration issue with fips on centos 7; mailgun relay