Feature Request: Add lsof Command
Nobody has claimed this yet.
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 35/100
- Issue type
- Feature
- Clarity
- Mostly clear
- Activity status
- Quiet
- Tech stack
- rust
- Domain
- cli, operating-systems
Research direction
Start by reviewing the existing command implementations and the referenced winuxcmd project, then compare the Win32 API, Windows Native API, NtQuerySystemInformation, and NtQueryObject approaches mentioned in the issue. Done means the project provides an lsof command that identifies processes holding files on Windows, with behavior and privilege requirements defined for the implementation.
Written by the indexing model from the issue text.
Description
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.
- Dominant language
- Rust
- Stars
- 5.2k
- Forks
- 107
- Avg merge
- 2d 19h
- Merged PRs (30d)
- 4
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from microsoft/coreutils
-
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
sleep has 9MB Open
Difficulty 5/5 Over a week Newbie friendliness 35/100
-
grep not work Open
Difficulty 3/5 1-2 days Newbie friendliness 55/100
-
Difficulty 3/5 1-2 days Newbie friendliness 52/100
All issues in microsoft/coreutils
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
Eynzof/Hermes-CN-Desktop#610 ·
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
gitbutlerapp/gitbutler#15998 · 1 comment ·
-
bug triage:deciding
Difficulty 1/5 Under an hour Newbie friendliness 88/100
open-telemetry/otel-arrow#4132 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100