delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2023/08/11/12:21:54

X-Recipient: archive-cygwin AT delorie DOT com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 9D653385773F
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
s=default; t=1691770913;
bh=6D0IjFp1yLfCXarBbJaaX1lFiUv6wfdobsS+tHvwfcw=;
h=Date:Subject:To:References:In-Reply-To:List-Id:List-Unsubscribe:
List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:Cc:
From;
b=UCA9y9sohQStR8GVuDry2O5/lux+ZZTVaW6G12KKy0Q0JsdiGr2GA6buW+Jm+F5nT
VRqVSpMWFqXO3EDR5o22RSb4efIxHvp9GT15uuE92vVYoiV3KiljHKR7b600bFP/9y
78OK7kRFe/pUvq5Q417Rg2MD6zfZd5dX0VAcFuD4=
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org C29CB3858D20
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
Subject: Re: lsof for Windows processes?
To: cygwin AT cygwin DOT com
References: <CALXu0Uc3099vxF5um3fa5=tWBAmq6gq99fJCitguVV2DEnqYgA AT mail DOT gmail DOT com>
Organization: Inglis
In-Reply-To: <CALXu0Uc3099vxF5um3fa5=tWBAmq6gq99fJCitguVV2DEnqYgA@mail.gmail.com>
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
X-BeenThere: cygwin AT cygwin DOT com
X-Mailman-Version: 2.1.29
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Unsubscribe: <https://cygwin.com/mailman/options/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=unsubscribe>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-request AT cygwin DOT com?subject=help>
List-Subscribe: <https://cygwin.com/mailman/listinfo/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=subscribe>
From: Brian Inglis via Cygwin <cygwin AT cygwin DOT com>
Reply-To: cygwin AT cygwin DOT com
Cc: Brian Inglis <Brian DOT Inglis AT Shaw DOT ca>,
Cedric Blancher <cedric DOT blancher AT gmail DOT com>
Errors-To: cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin DOT com
Sender: "Cygwin" <cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin DOT com>
X-MIME-Autoconverted: from base64 to 8bit by delorie.com id 37BGLsjr025678

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

-- 
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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019