From 9d12b126975f6e18a3b9d0b136e9ea750ec0c08d Mon Sep 17 00:00:00 2001 From: fin Date: Thu, 19 Sep 2024 23:33:01 +0530 Subject: [PATCH 1/2] minor update --- README.md | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 857fd7c..6bed608 100644 --- a/README.md +++ b/README.md @@ -349,8 +349,24 @@ Useful resources:
Before you can manage processes, you must be able to identify them. Which tools will you use? ***
-To be completed. - +ps - (process statement) is a no-brainer, it provides a snapshot of currently running process, we get information like PIDs, CPU usage, memory usage and more. +```bash +ps aux # Show all processes with detailed information +ps -ef # Another format to show all processes +``` +pidof is used to get the process ID (PID) of a running program by specifying its name. +```bash +pidof apache2 # Finds the PID of the Apache web server process +``` +top provides a real-time view of all running processes. It allows users to filter and sort inofrmation +```bash +top +``` +lsof provides list of open files and the processes that opened them. Since everything in a Linux is a file(even network sockets) this will be seful in identifying the processes that are using specific files or ports. +```bash +lsof /var/log/syslog # Find the process that has the syslog file open +lsof -i :80 # Find the process using port 80 +```
From 63556f65709452d8eb40095696d5d3a7d46f503b Mon Sep 17 00:00:00 2001 From: fin Date: Fri, 20 Sep 2024 00:22:33 +0530 Subject: [PATCH 2/2] minor updates --- README.md | 1 - 1 file changed, 1 deletion(-) diff --git a/README.md b/README.md index 6bed608..9fbc5b9 100644 --- a/README.md +++ b/README.md @@ -398,7 +398,6 @@ You'd use `top/htop` for both. Using `free` and `vmstat` command we can display Useful resources: - [How do I Find Out Linux CPU Utilization?](https://www.cyberciti.biz/tips/how-do-i-find-out-linux-cpu-utilization.html) -- [16 Linux server monitoring commands you really need to know](https://www.hpe.com/us/en/insights/articles/16-linux-server-monitoring-commands-you-really-need-to-know-1703.html)