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 trialJuliette Delannoy
1,112 Pointswhat is the difference between the console and terminal ?
can i know the difference between the console and terminal? thank you! :)
2 Answers
Brandon White
Full Stack JavaScript Techdegree Graduate 34,662 PointsHi Tijani Sylla,
The terminal lets you interact with your computer as a whole (although that doesn't really do it justice). Your console, on the other hand, is a bit like a REPL (read-eval-print-loop).
Sometimes your terminal and console are one in the same. So say you had a python file that printed something (a string for instance). In your terminal you'd run your file with the command...
python <name of file>
And the string would be printed to the console (which in this case is the terminal). Once the end of the file/program had been reached, you would regain access to your terminal, where you could enter the command...
mkdir new_directory
Which would create a new directory in whatever directory you are currently in, but you could not do that in a console.
I really hoped that explanation helped, and didn't just confuse you further. Really good question.
Gino Del Valle
379 PointsThank you for this! Very helpful!
Juliette Delannoy
1,112 PointsJuliette Delannoy
1,112 Pointsthank you! the answer was clear and helpful! :)