{"id":1522,"date":"2010-12-17T10:50:54","date_gmt":"2010-12-17T18:50:54","guid":{"rendered":"http:\/\/www.curlybrace.com\/words\/?p=1522"},"modified":"2011-02-13T10:51:46","modified_gmt":"2011-02-13T18:51:46","slug":"console-and-cygwin-dont-show-all-files-on-64-bit-windows","status":"publish","type":"post","link":"https:\/\/www.curlybrace.com\/words\/2010\/12\/console-and-cygwin-dont-show-all-files-on-64-bit-windows\/","title":{"rendered":"Console and Cygwin Don&#8217;t Show All Files on 64-bit Windows"},"content":{"rendered":"<p>Running Cygwin bash or <a href=\"http:\/\/sourceforge.net\/projects\/console\/\">Console<\/a> under 64-bit versions of Windows, directory listings sometimes differ from results shown in Explorer or <tt>cmd.exe<\/tt>.  For example, <tt>Defrag.exe<\/tt> is visible to the default command shell (CMD):<\/p>\n<blockquote>\n<pre class=\"DOS\">C:\\Windows\\System32>dir Defr*\r\n\r\n07\/13\/2009  05:39 PM           183,296 Defrag.exe\r\n07\/13\/2009  05:40 PM            16,384 defragproxy.dll\r\n07\/13\/2009  05:40 PM           291,328 defragsvc.dll<\/pre>\n<\/blockquote>\n<p>The same listing under Cygwin bash yields no results:<\/p>\n<blockquote>\n<pre class=\"bash\">$ cd \/cygdrive\/c\/Windows\/System32\r\n\r\n$ ls Defra*\r\nls: cannot access Defra*: No such file or directory<\/pre>\n<\/blockquote>\n<p>In fact, on this system, Cygwin reports sees only 2,465 files in System32, while CMD sees 2,857 files.<\/p>\n<p>This is because Cygwin bash and Console are 32-bit applications, and I&#8217;m running 64-bit Windows.  With filesystem virtualization on Windows, when a 32-bit process attempts to access <tt>%SYSTEMROOT%\\System32<\/tt>, it is redirected to <tt>%SYSTEMROOT%\\SYSWOW64<\/tt>.  Ironically named, <tt>System32<\/tt> contains 64-bit applications, while <tt>SYSWOW64<\/tt> contains 32-bit applications.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Running Cygwin bash or Console under 64-bit versions of Windows, directory listings sometimes differ from results shown in Explorer or cmd.exe. For example, Defrag.exe is visible to the default command shell (CMD): C:\\Windows\\System32>dir Defr* 07\/13\/2009 05:39 PM 183,296 Defrag.exe 07\/13\/2009 &hellip; <a href=\"https:\/\/www.curlybrace.com\/words\/2010\/12\/console-and-cygwin-dont-show-all-files-on-64-bit-windows\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[15,283],"tags":[],"class_list":["post-1522","post","type-post","status-publish","format-standard","hentry","category-technology","category-windows-technology"],"_links":{"self":[{"href":"https:\/\/www.curlybrace.com\/words\/wp-json\/wp\/v2\/posts\/1522","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.curlybrace.com\/words\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.curlybrace.com\/words\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.curlybrace.com\/words\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/www.curlybrace.com\/words\/wp-json\/wp\/v2\/comments?post=1522"}],"version-history":[{"count":10,"href":"https:\/\/www.curlybrace.com\/words\/wp-json\/wp\/v2\/posts\/1522\/revisions"}],"predecessor-version":[{"id":1588,"href":"https:\/\/www.curlybrace.com\/words\/wp-json\/wp\/v2\/posts\/1522\/revisions\/1588"}],"wp:attachment":[{"href":"https:\/\/www.curlybrace.com\/words\/wp-json\/wp\/v2\/media?parent=1522"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.curlybrace.com\/words\/wp-json\/wp\/v2\/categories?post=1522"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.curlybrace.com\/words\/wp-json\/wp\/v2\/tags?post=1522"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}