nushell/docs/commands/ps.md

38 lines
551 B
Markdown

---
title: ps
layout: command
version: 0.59.1
---
View information about system processes.
## Signature
```> ps --long```
## Parameters
- `--long`: list all available columns for each entry
## Examples
List the system processes
```shell
> ps
```
List the top 5 system processes with the highest memory usage
```shell
> ps | sort-by mem | last 5
```
List the top 3 system processes with the highest CPU usage
```shell
> ps | sort-by cpu | last 3
```
List the system processes with 'nu' in their names
```shell
> ps | where name =~ 'nu'
```