Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialHarrison Hondo
7,283 Pointsmkdir -p source/methods gives error
mkdir -p source/methods gives the error "the syntax of the command is incorrect"
I am also not in IRB when attempting to run the command.
2 Answers
William Li
Courses Plus Student 26,868 PointsOK, I guess I know what you've done wrong.
In case you haven't noticed yet, Jason is using the Terminal in Mac OS X, and you are probably using Command Prompt on Windows; these are two different things on different Operating System.
Travis Stewart
15,188 PointsI was having the same problem. Backslash for Windows, even in Cmder. However, the "you're wrong because mac dominates the development world" isn't exactly accurate. Although it is good to know your way around different OS's, use whatever you like (or can afford) to use. Worst case, get an ubuntu distribution to run on your windows machine. But you do not need a mac to be a developer.
William Li
Courses Plus Student 26,868 PointsDid I say that he should go buy a Mac? No, I did not. People use whatever OS they like, and OS is just OS, it helps you to do the job.
Travis Stewart
15,188 PointsTake it easy, Mr. Li. It wasn't an attack on you. Merely a clarification from a someone who works on PCs and Macs for a living. And I carry Ubuntu on my keychain so I can work on them both. The answer to the gentleman's question was "backslash." Not "I guess I know what you've done wrong...windows" The OS war can go on forever. I'm not here to jump all over people's opinions. I'm here to learn. "< / debate >"
Harrison Hondo
7,283 PointsHarrison Hondo
7,283 PointsAny idea what the equivalent command on windows would be then? And is there a way to more clearly know what you should be doing differently based on the different operating systems? It seems like for everything other than the installation of programs the instructors don't really make it clear what the differences are.
William Li
Courses Plus Student 26,868 PointsWilliam Li
Courses Plus Student 26,868 PointsI think it's
mkdir -p source\methods
, Notice that is\
as directory separator in Windows, as opposite to/
for unix and os x.Harrison Hondo
7,283 PointsHarrison Hondo
7,283 PointsIt worked thanks!
William Li
Courses Plus Student 26,868 PointsWilliam Li
Courses Plus Student 26,868 Pointsand on your other question, Harrison, I'm sure the instructor wanna help as many student as he can, but you have to consider the fact that most of the instructors here are mostly OS X users, they probably don't know much about windows.