Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6350539
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T21:49:45+00:00 2026-05-24T21:49:45+00:00

I use the current version of Cygwin, 1.7.9-1. When I typed $ which python,

  • 0

I use the current version of Cygwin, 1.7.9-1.

When I typed “$ which python”, Cygwin output “/usr/bin/python”.

To confirm the root is the cygwin folder in my Windows 7 file system, I “cd /”, and then “ls”. The displayed result showed that the root is indeed the cygwin folder.

But the python executable is actually in the directory /bin. And there’s no executable named “python” whatsoever in /usr/bin/python.

Why does Cygwin mistake /bin for /usr/bin? Thanks.

Update: I think my questions have been resolved. As a reference from cygwin.com, I’ve found this:
“/usr/bin and /usr/lib are by default also automatic mount points generated by the Cygwin DLL similar to the way the root directory is evaluated. /usr/bin points to the directory the Cygwin DLL is installed in, /usr/lib is supposed to point to the /lib directory. This choice is safe and usually shouldn’t be changed.”
http://www.cygwin.com/cygwin-ug-net/using.html

Update: Here’s another good description:
“Q: Why is C:\cygwin\usr\bin invisible from windows? A: Because it does not really exist. In cygwin, /usr/bin is just a link to /bin. E.g., if you “ls” the files in /usr/bin and in /bin, you will see identical files.”
http://cs.nyu.edu/~yap/prog/cygwin/FAQs.html#usrbin

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T21:49:46+00:00Added an answer on May 24, 2026 at 9:49 pm
    1. which outputs the path to executables which would have been executed were the command be run (i.e. executable on the PATH).
    2. By default only /usr/bin is placed on the PATH (/bin being the set of essential commands). See this question for more info.
    3. /bin (or rather C:\path\to\cygwin\bin) is mounted on /usr/bin.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Short and sweet, Is it ok to use (current version) Ruby 1.9.1 with Rails
Is it possible to fetch the current application version programmatically for use in urls
Is there a library out there which I can use in my current ASP.NET
Is it possible to use Android 2.2 on Eclipse current version? And Is it
I want to use the current version of bundler (there have been quite some
I'm unable to use DBI in my current version of perl on my Mac.
Current situation: I have the current version of my MVC Framework which uses classes
Python library gevent , version 0.13.6 (the current version on PyPI) will not pip
I need to use the current library name explicitly in a CL program. CHGVAR
How to do it? I don't want to use this: HttpContext.Current.Server.MapPath Is there a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.