Where is the Git Bash `/` directory?











up vote
4
down vote

favorite












When I open Git Bash on Windows 7, the default directory is /. It has *nix-style subdirectories, and cd .. doesn't change the directory. Where is this directory on my Windows machine?



The directory C:Program FilesGit has similar contents, except that / has a proc subdirectory, and C:Program FilesGit doesn't.



I put dir /s /a git-bash.exe in cmd.exe, and it only came up with the git-bash.exe in C:Program FilesGit, no other one (such as the one in /).










share|improve this question




















  • 4




    Try running mount in the the bash shell.
    – DavidPostill
    Mar 26 '17 at 17:54










  • Read danlimerick.wordpress.com/2011/07/11/… or shawnhymel.com/576/…
    – Lazy Badger
    Mar 26 '17 at 19:03










  • @LazyBadger OK so according to Git Bash Properties (I right-clicked on Git Bash), it starts in C:Program FilesGit . This still doesn't answer why / has a proc subdirectory and C:Program FilesGit doesn't. Do you know?
    – Joshua Meyers
    Mar 27 '17 at 5:05












  • @DavidPostill Thanks, this also corroborates this. mount gives the line: C:/Program Files/Git on / type ntfs (binary,noacl,auto). But why does / have a proc subdirectory that C:Program FIlesGit doesn't have then?
    – Joshua Meyers
    Mar 27 '17 at 5:08










  • Again: tldp.org/LDP/Linux-Filesystem-Hierarchy/html/proc.html "/proc is very special in that it is also a virtual filesystem. It's sometimes referred to as a process information pseudo-file system. It doesn't contain 'real' files but runtime system information (e.g. system memory, devices mounted, hardware configuration, etc)."
    – Lazy Badger
    Mar 27 '17 at 8:39















up vote
4
down vote

favorite












When I open Git Bash on Windows 7, the default directory is /. It has *nix-style subdirectories, and cd .. doesn't change the directory. Where is this directory on my Windows machine?



The directory C:Program FilesGit has similar contents, except that / has a proc subdirectory, and C:Program FilesGit doesn't.



I put dir /s /a git-bash.exe in cmd.exe, and it only came up with the git-bash.exe in C:Program FilesGit, no other one (such as the one in /).










share|improve this question




















  • 4




    Try running mount in the the bash shell.
    – DavidPostill
    Mar 26 '17 at 17:54










  • Read danlimerick.wordpress.com/2011/07/11/… or shawnhymel.com/576/…
    – Lazy Badger
    Mar 26 '17 at 19:03










  • @LazyBadger OK so according to Git Bash Properties (I right-clicked on Git Bash), it starts in C:Program FilesGit . This still doesn't answer why / has a proc subdirectory and C:Program FilesGit doesn't. Do you know?
    – Joshua Meyers
    Mar 27 '17 at 5:05












  • @DavidPostill Thanks, this also corroborates this. mount gives the line: C:/Program Files/Git on / type ntfs (binary,noacl,auto). But why does / have a proc subdirectory that C:Program FIlesGit doesn't have then?
    – Joshua Meyers
    Mar 27 '17 at 5:08










  • Again: tldp.org/LDP/Linux-Filesystem-Hierarchy/html/proc.html "/proc is very special in that it is also a virtual filesystem. It's sometimes referred to as a process information pseudo-file system. It doesn't contain 'real' files but runtime system information (e.g. system memory, devices mounted, hardware configuration, etc)."
    – Lazy Badger
    Mar 27 '17 at 8:39













up vote
4
down vote

favorite









up vote
4
down vote

favorite











When I open Git Bash on Windows 7, the default directory is /. It has *nix-style subdirectories, and cd .. doesn't change the directory. Where is this directory on my Windows machine?



The directory C:Program FilesGit has similar contents, except that / has a proc subdirectory, and C:Program FilesGit doesn't.



I put dir /s /a git-bash.exe in cmd.exe, and it only came up with the git-bash.exe in C:Program FilesGit, no other one (such as the one in /).










share|improve this question















When I open Git Bash on Windows 7, the default directory is /. It has *nix-style subdirectories, and cd .. doesn't change the directory. Where is this directory on my Windows machine?



The directory C:Program FilesGit has similar contents, except that / has a proc subdirectory, and C:Program FilesGit doesn't.



I put dir /s /a git-bash.exe in cmd.exe, and it only came up with the git-bash.exe in C:Program FilesGit, no other one (such as the one in /).







git-bash






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Aug 13 at 19:50









Peter Mortensen

8,301166184




8,301166184










asked Mar 26 '17 at 17:22









Joshua Meyers

12713




12713








  • 4




    Try running mount in the the bash shell.
    – DavidPostill
    Mar 26 '17 at 17:54










  • Read danlimerick.wordpress.com/2011/07/11/… or shawnhymel.com/576/…
    – Lazy Badger
    Mar 26 '17 at 19:03










  • @LazyBadger OK so according to Git Bash Properties (I right-clicked on Git Bash), it starts in C:Program FilesGit . This still doesn't answer why / has a proc subdirectory and C:Program FilesGit doesn't. Do you know?
    – Joshua Meyers
    Mar 27 '17 at 5:05












  • @DavidPostill Thanks, this also corroborates this. mount gives the line: C:/Program Files/Git on / type ntfs (binary,noacl,auto). But why does / have a proc subdirectory that C:Program FIlesGit doesn't have then?
    – Joshua Meyers
    Mar 27 '17 at 5:08










  • Again: tldp.org/LDP/Linux-Filesystem-Hierarchy/html/proc.html "/proc is very special in that it is also a virtual filesystem. It's sometimes referred to as a process information pseudo-file system. It doesn't contain 'real' files but runtime system information (e.g. system memory, devices mounted, hardware configuration, etc)."
    – Lazy Badger
    Mar 27 '17 at 8:39














  • 4




    Try running mount in the the bash shell.
    – DavidPostill
    Mar 26 '17 at 17:54










  • Read danlimerick.wordpress.com/2011/07/11/… or shawnhymel.com/576/…
    – Lazy Badger
    Mar 26 '17 at 19:03










  • @LazyBadger OK so according to Git Bash Properties (I right-clicked on Git Bash), it starts in C:Program FilesGit . This still doesn't answer why / has a proc subdirectory and C:Program FilesGit doesn't. Do you know?
    – Joshua Meyers
    Mar 27 '17 at 5:05












  • @DavidPostill Thanks, this also corroborates this. mount gives the line: C:/Program Files/Git on / type ntfs (binary,noacl,auto). But why does / have a proc subdirectory that C:Program FIlesGit doesn't have then?
    – Joshua Meyers
    Mar 27 '17 at 5:08










  • Again: tldp.org/LDP/Linux-Filesystem-Hierarchy/html/proc.html "/proc is very special in that it is also a virtual filesystem. It's sometimes referred to as a process information pseudo-file system. It doesn't contain 'real' files but runtime system information (e.g. system memory, devices mounted, hardware configuration, etc)."
    – Lazy Badger
    Mar 27 '17 at 8:39








4




4




Try running mount in the the bash shell.
– DavidPostill
Mar 26 '17 at 17:54




Try running mount in the the bash shell.
– DavidPostill
Mar 26 '17 at 17:54












Read danlimerick.wordpress.com/2011/07/11/… or shawnhymel.com/576/…
– Lazy Badger
Mar 26 '17 at 19:03




Read danlimerick.wordpress.com/2011/07/11/… or shawnhymel.com/576/…
– Lazy Badger
Mar 26 '17 at 19:03












@LazyBadger OK so according to Git Bash Properties (I right-clicked on Git Bash), it starts in C:Program FilesGit . This still doesn't answer why / has a proc subdirectory and C:Program FilesGit doesn't. Do you know?
– Joshua Meyers
Mar 27 '17 at 5:05






@LazyBadger OK so according to Git Bash Properties (I right-clicked on Git Bash), it starts in C:Program FilesGit . This still doesn't answer why / has a proc subdirectory and C:Program FilesGit doesn't. Do you know?
– Joshua Meyers
Mar 27 '17 at 5:05














@DavidPostill Thanks, this also corroborates this. mount gives the line: C:/Program Files/Git on / type ntfs (binary,noacl,auto). But why does / have a proc subdirectory that C:Program FIlesGit doesn't have then?
– Joshua Meyers
Mar 27 '17 at 5:08




@DavidPostill Thanks, this also corroborates this. mount gives the line: C:/Program Files/Git on / type ntfs (binary,noacl,auto). But why does / have a proc subdirectory that C:Program FIlesGit doesn't have then?
– Joshua Meyers
Mar 27 '17 at 5:08












Again: tldp.org/LDP/Linux-Filesystem-Hierarchy/html/proc.html "/proc is very special in that it is also a virtual filesystem. It's sometimes referred to as a process information pseudo-file system. It doesn't contain 'real' files but runtime system information (e.g. system memory, devices mounted, hardware configuration, etc)."
– Lazy Badger
Mar 27 '17 at 8:39




Again: tldp.org/LDP/Linux-Filesystem-Hierarchy/html/proc.html "/proc is very special in that it is also a virtual filesystem. It's sometimes referred to as a process information pseudo-file system. It doesn't contain 'real' files but runtime system information (e.g. system memory, devices mounted, hardware configuration, etc)."
– Lazy Badger
Mar 27 '17 at 8:39










1 Answer
1






active

oldest

votes

















up vote
0
down vote













echo %USERPROFILE% or echo %HOME%






share|improve this answer

















  • 3




    please improve this answer by explaining how it is relevant to the OP's question.
    – dinosaur
    May 4 '17 at 18:45











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',
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%2f1192563%2fwhere-is-the-git-bash-directory%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes








up vote
0
down vote













echo %USERPROFILE% or echo %HOME%






share|improve this answer

















  • 3




    please improve this answer by explaining how it is relevant to the OP's question.
    – dinosaur
    May 4 '17 at 18:45















up vote
0
down vote













echo %USERPROFILE% or echo %HOME%






share|improve this answer

















  • 3




    please improve this answer by explaining how it is relevant to the OP's question.
    – dinosaur
    May 4 '17 at 18:45













up vote
0
down vote










up vote
0
down vote









echo %USERPROFILE% or echo %HOME%






share|improve this answer












echo %USERPROFILE% or echo %HOME%







share|improve this answer












share|improve this answer



share|improve this answer










answered Mar 26 '17 at 19:04









Lazy Badger

3,455912




3,455912








  • 3




    please improve this answer by explaining how it is relevant to the OP's question.
    – dinosaur
    May 4 '17 at 18:45














  • 3




    please improve this answer by explaining how it is relevant to the OP's question.
    – dinosaur
    May 4 '17 at 18:45








3




3




please improve this answer by explaining how it is relevant to the OP's question.
– dinosaur
May 4 '17 at 18:45




please improve this answer by explaining how it is relevant to the OP's question.
– dinosaur
May 4 '17 at 18:45


















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.





Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


Please pay close attention to the following guidance:


  • 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%2f1192563%2fwhere-is-the-git-bash-directory%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

If I really need a card on my start hand, how many mulligans make sense? [duplicate]

Alcedinidae

Can an atomic nucleus contain both particles and antiparticles? [duplicate]