Browse folders in MSYS

This will be the most difficult question of the day. How to navigate my Windows folder structure in MSYS shell? When I run the shell, all I see is "~". I type 'ls' and the folder is empty. I just want to know how to get to my c drive.

+46
bash msys
Jul 07 '12 at 16:50
source share
3 answers

cd /c/ to access C:

cd /d/ for D:

and etc.

+63
Jul 07 2018-12-12T00:
source share

Your C: drive C: automatically installed on /c automatically using MinGW, just type cd /c to enter.

+10
Jul 07 2018-12-12T00:
source share

use df to see all the mount points so you can go to them. My df output is shown 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 
+9
Nov 10 '13 at
source share



All Articles