Welcome to the Treehouse Community
The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.
'clear' is not recognized as an internal or external command, operable program or batch file.
I have ruby installed ruby -v returns ruby 2.3.1p112... irb returns irb(main):... puts "hello" returns hello => nil exit brings back the prompt Everything seems to be fine following along with the wideo I have a document on my desktop hello.rb in my editor, I type puts "Hello World" outputs Hello World to the document So I think I have things set up MOSTLY but I'm missing something BECAUSE... after typing exit (from irb) when I type clear, I get this error 'clear' is not recognized as an internal or external command, operable program or batch file.
Assuming you are using the Windows command line (cmd) there doesn't seem to be anything wrong. Clear is the command used to clear the terminal on OSX and Linux systems. For cmd the corresponding command is cls, short for clear screen.
Do note though that there is a different more advanced command line application available on Windows called Powershell which supports most of the standard OSX/Linux style commands. Using that instead of the normal cmd might make it easier for you to follow the tutorials on this site.
To open Powershell just open the start menu and type Powershell and the first result should launch it on your machine.