Mkdir is missing from MSYS
Why am I getting this in MSYS?
user @ lappy1 ~ $ mkdir test sh: mkdir: command not found
Basic commands like cd and pwd work fine. What's wrong with mkdir?
it looks like yours is $PATH
not configured correctly, or your startup sequence is not working. what is the result echo $PATH
? there should be something like .:/usr/local/bin:/mingw/bin:/bin
at the beginning. mkdir
should be in /bin
, so if yours is /bin
in PATH
, it should work. if /bin
not mkdir
, check your installation. PATH
initialized from /etc/profile
- see if it contains something like export PATH=...
. /etc/profile
is read when bash is invoked as an input shell, so also check if bash is started with the --login
( -l
) option ( this usually comes from msys.bat
). last, cd
and pwd
are shell built-in commands, so they work in the shell regardless of any parameter PATH
.