From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from omta001.cacentral1.a.cloudfilter.net (omta001.cacentral1.a.cloudfilter.net [3.97.99.32]) by sourceware.org (Postfix) with ESMTPS id C29CB3858D20 for ; Fri, 11 Aug 2023 16:21:14 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org C29CB3858D20 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=Shaw.ca Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=shaw.ca Received: from shw-obgw-4003a.ext.cloudfilter.net ([10.228.9.183]) by cmsmtp with ESMTP id UTbGq0lovLAoIUUt0qUh1B; Fri, 11 Aug 2023 16:21:14 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=shaw.ca; s=s20180605; t=1691770874; bh=MQoha9aNROuLnbApBukiRubfYVH2YClC0e02oz9IZqg=; h=Date:Reply-To:Subject:To:References:Cc:From:In-Reply-To; b=NOViDriyOhqX8MNXV6CoyzA/5pniB37bpRSwnvEBOSyFhHGbeCWW7DtPTK9mVHUhb TXz8j/T+FEckQ+y6X+V7OU4USF6gSY8W0K8YIxkUMJ0K7kMQvOtRIDBUv0PKgz0obD 9u/WaZJBcXtS5780kWbSO2YHSu8JcCH5qHUyY2YSsl7kDNVS4Kf/XIvELaLVfk6sVO zQE47uIWD8C9RINsUJEPJ3M5EiIqFYq1GXj8+SL0yDpTwgBjAr4BBtFN5B4oddUwmR 7YXuumF0LiuMWdQ9pLZ9H7bRC80FeHPWlwaMgRKAJyX/OWla8SnJ5GI4w3w5ELWQLe qJ8u2En2W+T1g== Received: from [10.0.0.5] ([184.64.102.149]) by cmsmtp with ESMTP id UUszqjm2qcyvuUUszqHoVq; Fri, 11 Aug 2023 16:21:14 +0000 X-Authority-Analysis: v=2.4 cv=VbHkgXl9 c=1 sm=1 tr=0 ts=64d65ffa a=DxHlV3/gbUaP7LOF0QAmaA==:117 a=DxHlV3/gbUaP7LOF0QAmaA==:17 a=IkcTkHD0fZMA:10 a=w_pzkKWiAAAA:8 a=30KeihfUasEDSKDPGhkA:9 a=QEXdDO2ut3YA:10 a=sRI3_1zDfAgwuvI8zelB:22 Message-ID: <1b03c681-a144-5953-1d15-388029f19ba3@Shaw.ca> Date: Fri, 11 Aug 2023 10:21:13 -0600 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.14.0 Reply-To: cygwin@cygwin.com Subject: Re: lsof for Windows processes? Content-Language: en-CA To: cygwin@cygwin.com References: Cc: Cedric Blancher From: Brian Inglis Organization: Inglis In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-CMAE-Envelope: MS4xfFRUEgFSR522D6D1Lky/vtclVBC4fBEjH9UUC8vffReMGYRclAFOgI9UyimG2vQuFRg2/ZwQO+33mDTJm0UBnDnj2Aj7iluz4LgOlHhw1Eyl/MYDL2lk lt5uY22/ePzTjxuAhIpDr3Lu/t3bHzEjSL/khtDV8In61/9FSyjFcQa4Buyn7EQADUh/HaHNNGB/OaEAGFioyZk91M78OMeMdfVv3TCj2UZbZI1VlLg6dOm2 X-Spam-Status: No, score=-3.8 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_LOW,SPF_HELO_NONE,SPF_PASS,TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: On 2023-08-11 09:45, Cedric Blancher via Cygwin wrote: > Does Cygwin have a tool like lsof which can list which files or > directories are in use by a Windows process? You can check these things yourself using the Cygwin Search Packages page: https://cygwin.com/packages/ type "usr/bin/lsof" and hit Enter: https://cygwin.com/cgi-bin2/package-grep.cgi?grep=usr%2Fbin%2Ffuser Search Results Found 0 matches for usr/bin/lsof and the same on the command line: $ cygcheck -p usr/bin/lsof Found 0 matches for usr/bin/lsof but Cygwin does have fuser: $ cygcheck -p usr/bin/fuser Found 6 matches for usr/bin/fuser cygfuse-3.2.0-2 - cygfuse: Cygwin interface to Windows FUSE providers cygfuse-3.2.0-3 - cygfuse: Cygwin interface to Windows FUSE providers psmisc-debuginfo-22.20-1 - psmisc-debuginfo: Debug info for psmisc psmisc-debuginfo-23.4-4 - psmisc-debuginfo: Debug info for psmisc psmisc-22.20-1 - psmisc: Utilities for managing processes on your system psmisc-23.4-4 - psmisc: Utilities for managing processes on your system and Windows has openfiles: $ cmd /c help openfiles OPENFILES /parameter [arguments] Description: Enables an administrator to list or disconnect files and folders that have been opened on a system. Parameter List: /Disconnect Disconnects one or more open files. /Query Displays files opened locally or from shared folders. /Local Enables / Disables the display of local open files. /? Displays this help message. Examples: OPENFILES /Disconnect /? OPENFILES /Query /? OPENFILES /Local /? -- Take care. Thanks, Brian Inglis Calgary, Alberta, Canada La perfection est atteinte Perfection is achieved non pas lorsqu'il n'y a plus rien à ajouter not when there is no more to add mais lorsqu'il n'y a plus rien à retirer but when there is no more to cut -- Antoine de Saint-Exupéry