Skip to content

Feature Request: Add lsof Command #61

@a-rookie-of-C-language

Description

@a-rookie-of-C-language

Based on #56: “If they have an equivalent on either Linux or macOS, are commonly installed by default, and commonly used: Yes, absolutely.”

I’m proposing the implementation of the lsof command here. lsof (“list open files”) is a very commonly used command, and Windows does not provide a similar command. This is especially useful when I want to delete a file but the file is in use: the usual Windows methods for finding what is occupying the file are often cumbersome, while lsof can quickly identify the problem.

This can be implemented through the Win32 API, Windows Native API, NtQuerySystemInformation, NtQueryObject, etc. — at least, that is how we do it in the winuxcmd project. Of course, this requires administrator privileges; otherwise, the Windows kernel will deny access.

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions