public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: Doug Henderson <djndnbvg@gmail.com>
To: J M <cesarjorgemartinez@gmail.com>
Cc: cygwin@cygwin.com
Subject: Re: See repeated /usr/bin in my path
Date: Wed, 17 Apr 2024 14:58:11 -0600	[thread overview]
Message-ID: <CAJ1FpuOMmPCTsMJVmF_XFuPEqBdv5D2TVsPYZ3qkLFBtjzGouw@mail.gmail.com> (raw)
In-Reply-To: <CAL8MddU6u9he5YjgaycQ2Su4qZAJ86a7zHD9buoN_3D6kW2VrQ@mail.gmail.com>

On Wed, Apr 17, 2024 at 11:11 AM J M via Cygwin <cygwin@cygwin.com> wrote:
>
> Hi,
>
> I see repeated /usr/bin in my path.
> I don't known if is something of my PC or not.
>
> To check I do:
> which -a ls
> Show:
> /usr/bin/ls
> /usr/bin/ls

This is normal! We do this because on Linux, the two paths may be different,
e.g on different file systems.

Try this:
$ ls -li $(which -a ls)
5910974510956900 -rwxr-xr-x 1 Admin None 148K Jul 14  2022 /bin/ls*
5910974510956900 -rwxr-xr-x 1 Admin None 148K Jul 14  2022 /usr/bin/ls*

and look at
$ mount
C:/cygwin64/bin on /usr/bin type ntfs (binary,auto)
C:/cygwin64/lib on /usr/lib type ntfs (binary,auto)
C:/cygwin64 on / type ntfs (binary,auto)
C: on /cygdrive/c type ntfs (binary,posix=0,user,noumount,auto)
D: on /cygdrive/d type ntfs (binary,posix=0,user,noumount,auto)

which shows that /usr/bin is mounted on C:/cygwin64/bin which,
inside the cgywin environment, is /bin
because on my system C:/cygwin64/ is the root e.g. /

HTH
Doug

-- 
Doug Henderson, Calgary, Alberta, Canada - from gmail.com

      parent reply	other threads:[~2024-04-17 20:58 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-04-17 17:10 J M
2024-04-17 17:29 ` J M
2024-04-17 21:22   ` Andrey Repin
2024-04-17 21:43     ` J M
2024-04-18 16:41       ` Andrey Repin
2024-04-18 16:59         ` Eliot Moss
2024-04-19 14:45         ` J M
2024-04-17 20:58 ` Doug Henderson [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAJ1FpuOMmPCTsMJVmF_XFuPEqBdv5D2TVsPYZ3qkLFBtjzGouw@mail.gmail.com \
    --to=djndnbvg@gmail.com \
    --cc=cesarjorgemartinez@gmail.com \
    --cc=cygwin@cygwin.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).