Browsing Folders in MSYS

后端 未结 3 442
情书的邮戳
情书的邮戳 2021-01-31 00:41

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

相关标签:
3条回答
  • 2021-01-31 01:18

    use df to see all mount point so you can navigate to them. my df output shows below:

        Filesystem           1K-blocks      Used Available Use% Mounted on
    C:\Users\Sam\AppData\Local\Temp
                          76694276  46239412  30454864  61% /tmp
    C:\MinGW\msys\1.0     76694276  46239412  30454864  61% /usr
    C:\MinGW\msys\1.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
    
    0 讨论(0)
  • 2021-01-31 01:21

    cd /c/ to access C:

    cd /d/ for D:

    etc.

    0 讨论(0)
  • 2021-01-31 01:41

    Your C: drive is mounted on /c automatically by MinGW, just type cd /c to get in.

    0 讨论(0)
提交回复
热议问题