Added Zombie Ps Docs

This commit is contained in:
2026-04-14 18:02:10 +03:30
parent ded4f55fb8
commit edea1fe9e8
4 changed files with 196 additions and 69 deletions

View File

@@ -1,18 +1,18 @@
# ⚙️ PS Command
# PS Command
The `ps` (process status) command is used to **view running processes** on a Linux system. Its useful for monitoring and troubleshooting tasks.
---
## 🧾 Basic Usage
## Basic Usage
### 🔍 Show tasks in the current shell
### Show tasks in the current shell
```bash
ps
```
### 🔍 Show tasks in the current shell with **full info**
### Show tasks in the current shell with **full info**
```bash
ps -f
@@ -20,9 +20,9 @@ ps -f
---
## 🌍 View System-Wide Processes
## View System-Wide Processes
### 📋 Show **all** processes
### Show **all** processes
```bash
ps -A
@@ -32,17 +32,17 @@ ps -e
---
### 👤 Show tasks by **specific user**
### Show tasks by **specific user**
```bash
ps -u <username>
```
📌 Replace `<username>` with the actual user name.
Replace `<username>` with the actual user name.
---
### 📊 Show **detailed info for all** tasks
### Show **detailed info for all** tasks
```bash
ps aux
@@ -50,7 +50,7 @@ ps aux
---
## 📘 Output Fields Explained
## Output Fields Explained
| Column | Description |
| --------- | -------------------------------------------------- |
@@ -58,22 +58,20 @@ ps aux
| `PID` | Process ID |
| `%CPU` | CPU usage percentage |
| `%MEM` | Memory usage percentage |
| `STAT` | Process state: `R` (running), `S` (sleeping), etc. |
| `STAT` | Process state: `R` (running), `S` (sleeping), `Z` (zombie), etc. |
| `START` | Time when the process started |
| `TIME` | Total CPU time used |
| `COMMAND` | Command that started the process |
### 📑 Show List Jobs
### Show List Jobs
```bash
jobs
```
### 🔄Move Process From Background To Forground
### Move Process From Background To Foreground
```bash
fg
```