Add Windows process listing command ps

Open
#54 1 comment 1 reaction 0 assignees View on GitHub

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

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

C-feature P-backlog P-low

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:

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from microsoft/coreutils

All issues in microsoft/coreutils

Similar issues

More Rust issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.