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 -- Problem reports: https://cygwin.com/problems.html FAQ: https://cygwin.com/faq/ Documentation: https://cygwin.com/docs.html Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple