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 /
).
git-bash
add a comment |
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 /
).
git-bash
4
Try runningmount
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 inC:Program FilesGit
. This still doesn't answer why/
has aproc
subdirectory andC: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 aproc
subdirectory thatC: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
add a comment |
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 /
).
git-bash
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
git-bash
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 runningmount
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 inC:Program FilesGit
. This still doesn't answer why/
has aproc
subdirectory andC: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 aproc
subdirectory thatC: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
add a comment |
4
Try runningmount
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 inC:Program FilesGit
. This still doesn't answer why/
has aproc
subdirectory andC: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 aproc
subdirectory thatC: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
add a comment |
1 Answer
1
active
oldest
votes
up vote
0
down vote
echo %USERPROFILE%
or echo %HOME%
3
please improve this answer by explaining how it is relevant to the OP's question.
– dinosaur
May 4 '17 at 18:45
add a comment |
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%
3
please improve this answer by explaining how it is relevant to the OP's question.
– dinosaur
May 4 '17 at 18:45
add a comment |
up vote
0
down vote
echo %USERPROFILE%
or echo %HOME%
3
please improve this answer by explaining how it is relevant to the OP's question.
– dinosaur
May 4 '17 at 18:45
add a comment |
up vote
0
down vote
up vote
0
down vote
echo %USERPROFILE%
or echo %HOME%
echo %USERPROFILE%
or echo %HOME%
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
add a comment |
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
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.
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.
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%2f1192563%2fwhere-is-the-git-bash-directory%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
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 aproc
subdirectory andC: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 aproc
subdirectory thatC: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