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 trial

Development Tools Console Foundations Getting Started with the Console Running Commands

Dejan Buric
Dejan Buric
12,560 Points

ls & clear command on Windows 7

I tried to use this two command in my CMD windows 7 console. Response was:

"ls is not recognized..." "clear is not recognized..."

Are these commands just for POSIX standard based systems command lines? Will we just learn commands for POSIX's systems? Are front end developers and programmers using command line on windows platform so often?

Thanks.

2 Answers

William Li
PLUS
William Li
Courses Plus Student 26,868 Points

Yes, ls & clear are commands for POSIX systems only. The equivalent ones for Windows' CMD would be

  • ls = dir
  • clear = cls

Will we just learn commands for POSIX's systems?

Yes.

Are front end developers and programmers using command line on windows platform so often?

To the best of my knowledge, a lot of frontend developers are using POSIX system. For those who're using Windows as frontend development machine, I'm not sure to what extent they're using CMD; truth is that, nowadays, there're few resources for learning CMD.

Dejan Buric
Dejan Buric
12,560 Points

Thanks on answer, sorry if my grammar was bad. English is my 2nd language. :)

William Li
William Li
Courses Plus Student 26,868 Points

no problem, I can understand your english just fine :)

Reuven Kishon
Reuven Kishon
5,270 Points

So what application can we use to run a console on a Windows machine that would emulate a console on a POSIX system?

jason chan
jason chan
31,009 Points

https://git-for-windows.github.io/

You can follow along with the git bash. Git bash is unix.

Reuven Kishon
Reuven Kishon
5,270 Points

I don't understand, are you saying that Git Bash is a terminal application that can be used on a Windows Machine that will enable us to effectively have a POSIX console instead of what is typically used on a Windows Machine (and thus requires knowing the other command set, which involves using dir instead of ls, as just one example?)