Why does `ls` work on my cmd? (Windows)












1















I'm running windows 7, it's old and I have messed around with it a bit. When I'm in cmd I find that ls works just like I would expect it to in Linux. So do a few other commands such as mv and rm. This isn't an issue in itself, but I would like to know where they are coming from. As far as I know Windows does not support these automatically. I probably added them myself at some point. Is there any way I can try and devise why they are working?










share|improve this question





























    1















    I'm running windows 7, it's old and I have messed around with it a bit. When I'm in cmd I find that ls works just like I would expect it to in Linux. So do a few other commands such as mv and rm. This isn't an issue in itself, but I would like to know where they are coming from. As far as I know Windows does not support these automatically. I probably added them myself at some point. Is there any way I can try and devise why they are working?










    share|improve this question



























      1












      1








      1








      I'm running windows 7, it's old and I have messed around with it a bit. When I'm in cmd I find that ls works just like I would expect it to in Linux. So do a few other commands such as mv and rm. This isn't an issue in itself, but I would like to know where they are coming from. As far as I know Windows does not support these automatically. I probably added them myself at some point. Is there any way I can try and devise why they are working?










      share|improve this question
















      I'm running windows 7, it's old and I have messed around with it a bit. When I'm in cmd I find that ls works just like I would expect it to in Linux. So do a few other commands such as mv and rm. This isn't an issue in itself, but I would like to know where they are coming from. As far as I know Windows does not support these automatically. I probably added them myself at some point. Is there any way I can try and devise why they are working?







      windows-7 command-line






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Sep 10 '17 at 9:16









      Kamil Maciorowski

      26.8k155781




      26.8k155781










      asked Sep 10 '17 at 7:37









      Clumsy catClumsy cat

      616




      616






















          2 Answers
          2






          active

          oldest

          votes


















          4














          From cmd you can use the where command to find the location of an executable:



          where ls


          This is similar to the Unix which command, and like which it does not report internal commands and aliases. It also has additional options not in which.



          If it's one of the Unix commands you have imported, you can use which itself.






          share|improve this answer



















          • 1





            The response I get to this is C:Program Files (x86)GnuWin32binls.exe So I guess that's where stuff is coming from. Thanks

            – Clumsy cat
            Sep 10 '17 at 9:11





















          2














          You might have installed Git repository. This might be from your C:Program FilesGitusrbinls.exe






          share|improve this answer























            Your Answer








            StackExchange.ready(function() {
            var channelOptions = {
            tags: "".split(" "),
            id: "3"
            };
            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: true,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: 10,
            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
            });


            }
            });














            draft saved

            draft discarded


















            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1248999%2fwhy-does-ls-work-on-my-cmd-windows%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









            4














            From cmd you can use the where command to find the location of an executable:



            where ls


            This is similar to the Unix which command, and like which it does not report internal commands and aliases. It also has additional options not in which.



            If it's one of the Unix commands you have imported, you can use which itself.






            share|improve this answer



















            • 1





              The response I get to this is C:Program Files (x86)GnuWin32binls.exe So I guess that's where stuff is coming from. Thanks

              – Clumsy cat
              Sep 10 '17 at 9:11


















            4














            From cmd you can use the where command to find the location of an executable:



            where ls


            This is similar to the Unix which command, and like which it does not report internal commands and aliases. It also has additional options not in which.



            If it's one of the Unix commands you have imported, you can use which itself.






            share|improve this answer



















            • 1





              The response I get to this is C:Program Files (x86)GnuWin32binls.exe So I guess that's where stuff is coming from. Thanks

              – Clumsy cat
              Sep 10 '17 at 9:11
















            4












            4








            4







            From cmd you can use the where command to find the location of an executable:



            where ls


            This is similar to the Unix which command, and like which it does not report internal commands and aliases. It also has additional options not in which.



            If it's one of the Unix commands you have imported, you can use which itself.






            share|improve this answer













            From cmd you can use the where command to find the location of an executable:



            where ls


            This is similar to the Unix which command, and like which it does not report internal commands and aliases. It also has additional options not in which.



            If it's one of the Unix commands you have imported, you can use which itself.







            share|improve this answer












            share|improve this answer



            share|improve this answer










            answered Sep 10 '17 at 9:03









            AFHAFH

            14.2k31938




            14.2k31938








            • 1





              The response I get to this is C:Program Files (x86)GnuWin32binls.exe So I guess that's where stuff is coming from. Thanks

              – Clumsy cat
              Sep 10 '17 at 9:11
















            • 1





              The response I get to this is C:Program Files (x86)GnuWin32binls.exe So I guess that's where stuff is coming from. Thanks

              – Clumsy cat
              Sep 10 '17 at 9:11










            1




            1





            The response I get to this is C:Program Files (x86)GnuWin32binls.exe So I guess that's where stuff is coming from. Thanks

            – Clumsy cat
            Sep 10 '17 at 9:11







            The response I get to this is C:Program Files (x86)GnuWin32binls.exe So I guess that's where stuff is coming from. Thanks

            – Clumsy cat
            Sep 10 '17 at 9:11















            2














            You might have installed Git repository. This might be from your C:Program FilesGitusrbinls.exe






            share|improve this answer




























              2














              You might have installed Git repository. This might be from your C:Program FilesGitusrbinls.exe






              share|improve this answer


























                2












                2








                2







                You might have installed Git repository. This might be from your C:Program FilesGitusrbinls.exe






                share|improve this answer













                You might have installed Git repository. This might be from your C:Program FilesGitusrbinls.exe







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Mar 22 '18 at 3:53









                ShanmugamShanmugam

                211




                211






























                    draft saved

                    draft discarded




















































                    Thanks for contributing an answer to Super User!


                    • 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%2fsuperuser.com%2fquestions%2f1248999%2fwhy-does-ls-work-on-my-cmd-windows%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

                    Plaza Victoria

                    Brian Clough

                    Cáceres