# Dir does not work in the console?

**URL:** <https://discourse.julialang.org/t/dir-does-not-work-in-the-console/5732>\
**Category:** General Usage\
**Created:** [September 5, 2017, 5:38pm UTC](https://discourse.julialang.org/t/dir-does-not-work-in-the-console/5732 "2017-09-05T17:38:19Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![PetrKryslUCSD](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/petrkryslucsd/32/215825_2.png) [@PetrKryslUCSD](https://discourse.julialang.org/u/PetrKryslUCSD)\
**Post date:** [September 5, 2017, 5:38pm UTC](https://discourse.julialang.org/t/dir-does-not-work-in-the-console/5732/1 "2017-09-05T17:38:19Z")

</div>

I use Julia with the Atom console on Win 10. DIR does not work for some reason.  
 ![image](https://global.discourse-cdn.com/julialang/original/3X/7/2/728aa92d289232f632a2498deb1039f9512954b2.png)  
Is this expected, or is this a bug?

---

<div class="post-metadata">

**Author:** ![jameson](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jameson/32/23_2.png) [@jameson](https://discourse.julialang.org/u/jameson)\
**Post date:** [September 5, 2017, 6:28pm UTC](https://discourse.julialang.org/t/dir-does-not-work-in-the-console/5732/2 "2017-09-05T18:28:05Z")

</div>

As indicated by the error message, your operating system does not provide a `dir` program. Perhaps you were trying to run `cmd.exe /c dir`? Or perhaps you need `readdir()` / `walkdir()` / Glob.jl?

---

<div class="post-metadata">

**Author:** ![PetrKryslUCSD](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/petrkryslucsd/32/215825_2.png) [@PetrKryslUCSD](https://discourse.julialang.org/u/PetrKryslUCSD)\
**Post date:** [September 5, 2017, 7:03pm UTC](https://discourse.julialang.org/t/dir-does-not-work-in-the-console/5732/3 "2017-09-05T19:03:43Z")

</div>

@jameson: I’m confused. Some shell commands seem to be recognized (tree, help), but not others. And this goes not only for the console in Atom, but also for the Julia terminal:

 ![image](https://global.discourse-cdn.com/julialang/original/3X/a/d/ada436b5acc1846f2855e861a2d77225ce8129ae.png)  
Is this a Windows thing?

---

<div class="post-metadata">

**Author:** ![pfitzseb](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/pfitzseb/32/45566_2.png) [@pfitzseb](https://discourse.julialang.org/u/pfitzseb)\
**Post date:** [September 5, 2017, 7:17pm UTC](https://discourse.julialang.org/t/dir-does-not-work-in-the-console/5732/4 "2017-09-05T19:17:01Z")

</div>

Yes, Windows doesn’t implement `dir` as an actual callable program IIRC.

---

<div class="post-metadata">

**Author:** ![PetrKryslUCSD](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/petrkryslucsd/32/215825_2.png) [@PetrKryslUCSD](https://discourse.julialang.org/u/PetrKryslUCSD)\
**Post date:** [September 5, 2017, 7:54pm UTC](https://discourse.julialang.org/t/dir-does-not-work-in-the-console/5732/5 "2017-09-05T19:54:50Z")

</div>

@pfitzseb: Of course, the crippled Windows shell! That explains it.

It is a bummer though. It would have been nice to be able to use Julia for commandline stuff.
