X-Recipient: archive-cygwin AT delorie DOT com DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 16C203858C60 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com; s=default; t=1713387559; bh=lBfgfyumGthL+7re2m8hTSFPCsbKWlWgktIEEEE6z40=; h=References:In-Reply-To:Date:Subject:To:Cc:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From:Reply-To:From; b=POgAMV3sZepyT0NbVC31/pfbDUTSIEig5rudFy2mdieez1vUaAtus2/iemQqErnlg J2UbIrZ+EvaKqsTQ7xWdyr7s+VCCiUIANEIcDPjDJu5x9uOHB7jTePZ5yhnNB8LuTa sXsm2KoCCvzF2ObmSYhlgoOnzr4aJXBjoEc3+p/Y= X-Original-To: cygwin AT cygwin DOT com Delivered-To: cygwin AT cygwin DOT com DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 48F153858D20 ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 48F153858D20 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1713387507; cv=none; b=QrFwvRQtQjg6iUBH4CP4aOqJey64OACOmU63pqrFe1l985c6yw7Ykd0WuIpJNclRi1MM4S6QRaUoJ9K5MsFwQva+2ml4bM31tMwOj9h7N24MLcY0Oa+ptmw9dm6yVN5amxwrgC/jk3qolkJzpOnAMn3fNf2Wh7Gx2JtvOESXcgs= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1713387507; c=relaxed/simple; bh=ZgVQVcug5saJ9ig6FW4XkILSiAT51UBXbr2Kjk14PxY=; h=DKIM-Signature:MIME-Version:From:Date:Message-ID:Subject:To; b=CAHM4wPuNN0QgQmS4X9VkLW16HurfFOL+oNZxZEZzRzq95IWYxaCuy5Ias0qbKwTiCJwHwsftRTT4mJ6WsfU68/V2m/XJQnlyWPJ2/kfuQKSQudVJW3KZyY0X0ObrEh3U8onfcDO/W7g/FkKTYu/xv4RPxZYX9IlvxU1QcXvtSc= ARC-Authentication-Results: i=1; server2.sourceware.org X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1713387505; x=1713992305; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=rc31+TsMXlaezFVZQJF5Xt/lECzgCJL5jAcew4UKpBk=; b=Ot2iyaiFGYwUziMlRYyaZ8oSDgzYRJAWE9aHS653YC7hxN4ZCTse+Kx00slt3tSSTm GLH15f50fW8rCLmmmejjxBj3NP9vAP3JLqWzrx/u8E8C4IiIGQPJYiU+ZXU3NFwkF5o7 ThRIT/9t/Dmy9rRnmyW3XbIIUtDgwXrwDhJMbBWQqnb4YCjRfvhjNpe76KOH7CFnzNCn yBEOS3ryHZwpL/jbpEc42EC0XW/kRKKhI+mH1omG11UzfmXyCXxOC5XF0Grx2L2T9xGC 4Nw7Zz6uqw2fKQZCTP4RC16fspRQTurvSoTyKtV2w5fadV/mye8JSszgMbZ0KarzF46w 4LsA== X-Gm-Message-State: AOJu0YzMpg7jvYFHs+U3viwTDFeCejAIxnFD8aSb3abJn37IkiniucbF fmMjUlvokFRuf/oQqQ05dkarocXN90qXFh4f145/h9g8HyKb0c3OhceDE+iQfq+98S45V4LMJVY 2DIdenqHzTkdZv04oe9WBoq3UICE= X-Google-Smtp-Source: AGHT+IE+e7IgS8xJxctcrVBFwF44CilTa1wQQD3N+FLOo/s3z95TamuaBzgorQ/OwxR8ZkA2lT3MQ41Vh9y7ZYCNr/w= X-Received: by 2002:a17:906:1553:b0:a52:6afa:1805 with SMTP id c19-20020a170906155300b00a526afa1805mr199366ejd.32.1713387504390; Wed, 17 Apr 2024 13:58:24 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: Date: Wed, 17 Apr 2024 14:58:11 -0600 Message-ID: Subject: Re: See repeated /usr/bin in my path To: J M Cc: cygwin AT cygwin DOT com X-Spam-Status: No, score=1.0 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, FROM_LOCAL_NOVOWEL, HK_RANDOM_ENVFROM, HK_RANDOM_FROM, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: cygwin AT cygwin DOT com X-Mailman-Version: 2.1.30 List-Id: General Cygwin discussions and problem reports List-Archive: List-Post: List-Help: List-Subscribe: , From: Doug Henderson via Cygwin Reply-To: Doug Henderson Content-Type: text/plain; charset="utf-8" Sender: "Cygwin" Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from base64 to 8bit by delorie.com id 43HKxK8l3353415 On Wed, Apr 17, 2024 at 11:11 AM J M via Cygwin 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