Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update #69

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 18 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -349,8 +349,24 @@ Useful resources:
<details>
<summary><b>Before you can manage processes, you must be able to identify them. Which tools will you use? ***</b></summary><br>

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
```
</details>

<details>
Expand Down Expand Up @@ -382,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)

</details>

Expand Down