bash 在 MSYS 中浏览文件夹
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/11376899/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Browsing Folders in MSYS
提问by AndroidDev
This will be the toughest question of the day. How do I navigate through my Windows folder structure within the MSYS shell? When I start the shell, all I see is a '~'. I type 'ls' and the folder is empty. I just want to know how to get to my c drive.
这将是今天最棘手的问题。如何在 MSYS shell 中浏览我的 Windows 文件夹结构?当我启动 shell 时,我看到的只是一个 '~'。我输入'ls',文件夹是空的。我只想知道如何进入我的c盘。
回答by GL770
cd /c/
to access C:
cd /c/
访问 C:
cd /d/
for D:
cd /d/
对于 D:
etc.
等等。
回答by babyromeo
use df
to see all mount point so you can navigate to them. my df
output shows below:
用于df
查看所有挂载点,以便您可以导航到它们。我的df
输出显示如下:
Filesystem 1K-blocks Used Available Use% Mounted on
C:\Users\Sam\AppData\Local\Temp
76694276 46239412 30454864 61% /tmp
C:\MinGW\msys.0 76694276 46239412 30454864 61% /usr
C:\MinGW\msys.0 76694276 46239412 30454864 61% /
C:\MinGW\build32 76694276 46239412 30454864 61% /build32
C:\MinGW\build64 76694276 46239412 30454864 61% /build64
C:\MinGW\local32 76694276 46239412 30454864 61% /local32
C:\MinGW\local64 76694276 46239412 30454864 61% /local64
C:\MinGW\mingw32 76694276 46239412 30454864 61% /mingw32
C:\MinGW\mingw64 76694276 46239412 30454864 61% /mingw64
C:\MinGW\opt 76694276 46239412 30454864 61% /opt
C:\MinGW\src 76694276 46239412 30454864 61% /src
c: 76694276 46239412 30454864 61% /c
d: 62471380 33791832 28679548 55% /d
e: 163839996 129349800 34490196 79% /e
f: 266237948 222816904 43421044 84% /f
g: 407410152 346169248 61240904 85% /g
h: 65328288 22612768 42715520 35% /h
i: 122881152 54066728 68814424 44% /i
j: 409601240 176372780 233228460 44% /j
k: 378949628 56153980 322795648 15% /k
回答by strnk
Your C:
drive is mounted on /c
automatically by MinGW, just type cd /c
to get in.
您的C:
驱动器/c
由 MinGW 自动安装,只需键入cd /c
即可进入。