2022-02-14 03:22:51 +01:00
|
|
|
---
|
|
|
|
title: ps
|
|
|
|
layout: command
|
2022-03-04 13:10:09 +01:00
|
|
|
version: 0.59.1
|
2022-02-14 03:22:51 +01:00
|
|
|
---
|
2019-11-30 12:48:23 +01:00
|
|
|
|
2022-02-14 03:22:51 +01:00
|
|
|
View information about system processes.
|
2019-11-30 12:48:23 +01:00
|
|
|
|
2022-02-14 03:22:51 +01:00
|
|
|
## Signature
|
2019-11-30 12:48:23 +01:00
|
|
|
|
2022-02-14 03:22:51 +01:00
|
|
|
```> ps --long```
|
2019-11-30 12:48:23 +01:00
|
|
|
|
2022-02-14 03:22:51 +01:00
|
|
|
## Parameters
|
|
|
|
|
|
|
|
- `--long`: list all available columns for each entry
|
|
|
|
|
|
|
|
## Examples
|
|
|
|
|
|
|
|
List the system processes
|
2019-11-30 12:48:23 +01:00
|
|
|
```shell
|
|
|
|
> ps
|
2020-06-23 20:21:47 +02:00
|
|
|
```
|
2022-03-04 13:10:09 +01:00
|
|
|
|
|
|
|
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'
|
|
|
|
```
|