Skip to content

feat: add lsof command#62

Open
a-rookie-of-C-language wants to merge 1 commit into
microsoft:mainfrom
a-rookie-of-C-language:feature/lsof
Open

feat: add lsof command#62
a-rookie-of-C-language wants to merge 1 commit into
microsoft:mainfrom
a-rookie-of-C-language:feature/lsof

Conversation

@a-rookie-of-C-language

@a-rookie-of-C-language a-rookie-of-C-language commented Jun 4, 2026

Copy link
Copy Markdown

Fixes #61.

Implemented the lsof command using the Windows Native API and Win32 API.

Includes:

-p PID        Only list files opened by the specified process ID
-c COMMAND    Only list files opened by processes whose name matches COMMAND
--help        Show help
--version     Show version information
--            Stop parsing options; treat everything after this as a FILE filter

The command’s options could certainly be expanded, but this is at least a starting point.

@lhecker

lhecker commented Jun 4, 2026

Copy link
Copy Markdown
Member

I know I said I would prefer your native language over AI comments, and while I meant it in earnest, it still was somewhat hyperbolic. 😄 At least for PR titles and some of the description English is mandatory, so I'll use AI to translate it.

@lhecker lhecker changed the title feature: 添加了lsof命令 feat: add lsof command Jun 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Feature Request: Add lsof Command

2 participants