Why do I get this in MSYS?
user@lappy1 ~ $ mkdir test sh: mkdir: command not found
Basic commands like cd and pwd work just fine. What happened to mkdir?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
looks like your
$PATHis not set up properly, or your startup sequence is broken. what’s the result ofecho $PATH? there should be something like.:/usr/local/bin:/mingw/bin:/binin the beginning.mkdirshould be in/bin, so if you have/binin thePATH, it should work. if there is nomkdirin/bin, check your installation. thePATHis initialized from/etc/profile– look if there is something likeexport PATH=...in it./etc/profileis read when bash is invoked as login shell, so also check if bash is started with the--login(-l) option (this usually happens frommsys.bat). last,cdandpwdare shell builtin commands, so they work in the shell regardless of anyPATHsetting.