Why does `ls` work on my cmd? (Windows)
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
add a comment |
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
add a comment |
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
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
windows-7 command-line
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
add a comment |
add a comment |
2 Answers
2
active
oldest
votes
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.
1
The response I get to this isC:Program Files (x86)GnuWin32binls.exeSo I guess that's where stuff is coming from. Thanks
– Clumsy cat
Sep 10 '17 at 9:11
add a comment |
You might have installed Git repository. This might be from your C:Program FilesGitusrbinls.exe
add a comment |
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
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
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.
1
The response I get to this isC:Program Files (x86)GnuWin32binls.exeSo I guess that's where stuff is coming from. Thanks
– Clumsy cat
Sep 10 '17 at 9:11
add a comment |
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.
1
The response I get to this isC:Program Files (x86)GnuWin32binls.exeSo I guess that's where stuff is coming from. Thanks
– Clumsy cat
Sep 10 '17 at 9:11
add a comment |
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.
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.
answered Sep 10 '17 at 9:03
AFHAFH
14.2k31938
14.2k31938
1
The response I get to this isC:Program Files (x86)GnuWin32binls.exeSo I guess that's where stuff is coming from. Thanks
– Clumsy cat
Sep 10 '17 at 9:11
add a comment |
1
The response I get to this isC:Program Files (x86)GnuWin32binls.exeSo 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
add a comment |
You might have installed Git repository. This might be from your C:Program FilesGitusrbinls.exe
add a comment |
You might have installed Git repository. This might be from your C:Program FilesGitusrbinls.exe
add a comment |
You might have installed Git repository. This might be from your C:Program FilesGitusrbinls.exe
You might have installed Git repository. This might be from your C:Program FilesGitusrbinls.exe
answered Mar 22 '18 at 3:53
ShanmugamShanmugam
211
211
add a comment |
add a comment |
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.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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