Add Windows process listing command ps
Nobody has claimed this yet.
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 38/100
- Issue type
- Feature
- Clarity
- Mostly clear
- Activity status
- Quiet
- Tech stack
- powershell, rust
- Domain
- cli, operating-systems
Research direction
Start by locating the existing Windows kill command and the PSReadLine rewrite list mentioned in the issue. Review the Windows API approach and settle the supported listing, filtering, and formatting options; done means a native ps command works without external binaries and bare ps is routed to ps.cmd in interactive PowerShell.
Written by the indexing model from the issue text.
Description
Summary
Users asking for kill also asked for a simple ps command, since terminating a process by PID is much easier when there is a native way to list processes first.
This came up in #45:
- https://github.com/microsoft/coreutils/issues/45#issuecomment-4620824270 asked not to forget
pswhen addingkill - https://github.com/microsoft/coreutils/issues/45#issuecomment-4620986770 also asked for
ps/killbecause Windows command-line process management is hard to remember
ps is not GNU coreutils, so this should probably be treated as a Windows-specific convenience command rather than part of the strict coreutils set.
Proposed behavior
Add a small native Windows ps implementation that lists running processes, for example:
ps
ps -A
ps -e
ps aux
ps -p <PID>
ps --ppid <PID>
ps -o pid,ppid,comm
A minimal output could include PID, parent PID, and process image name. A few common filtering/formatting options would make it useful together with kill.
This should be implemented with Windows APIs rather than wrapping Sysinternals tools, so the package does not depend on external binaries.
For PowerShell integration, ps should also be added to the PSReadLine rewrite list so bare ps can be routed to ps.cmd in interactive PowerShell sessions, even though Get-Command ps may still show the built-in PowerShell alias.
- 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 85/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
Eynzof/Hermes-CN-Desktop#610 ·
-
bug team:backend track:services-maintenance
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
cowprotocol/services#4950 ·
-
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 ·