This host maintenance note, published on June 16, 2025, is titled "A Summary of 10 Linux Commands for Viewing Process IDs." The actual environment or tools involved include Linux.
This host maintenance note, published on June 16, 2025, is titled "A Summary of 10 Linux Commands for Viewing Process IDs." The actual environment or tools involved include Linux.
demonstration
Order
Function
Example
pgrep nginx
Find the PID of the Nginx process
`pgrep -u root nginx` (only for the root user's Nginx)
pidof nginx
Directly return the Nginx PID
pidof python
demonstration
Order
Function
Example
kill PID
Terminate the process with the specified PID.
kill -9 1234 (force termination)
killall nginx
Terminate all processes named "nginx".
killall -9 python
Function: Manages systemd-managed services (for modern Linux distributions).
Order
Function
Example
vmstat 1
Check the overall system resource usage (CPU, memory, etc.)
Refreshes once per second
pidstat -p 1234
Monitor CPU, memory, I/O, etc. of a specified PID.
pidstat -u -p 1234 1 (refreshes every second)
Matters mentioned in the article
1. The ps command (to view a snapshot of the current process)
2. The `top` command (for dynamically viewing processes)
7. lsof (to view the files/ports opened by a process)
8. `kill` and `killall` (terminate processes)
9. systemctl (to view system service processes)
10. vmstat and pidstat (process resource monitoring)
Prices, currencies, and billing cycles are as used at the time of publication. Different cycles, regions, initial discounts, or renewal fees should be compared separately.
This host maintenance note, published on August 6, 2025, is titled "How to Configure Network on an Ubuntu Server." The actual environment and tools involved include Ubuntu.
This host maintenance note, published on August 1, 2025, is titled "How to retrieve or reset the root password when it's forgotten on a CentOS server." The actual environment and tools involved include CentOS.
This host maintenance note, published on July 11, 2025, focuses on "CentOS file deletion commands and how to recover accidentally deleted files." The actual environments and tools involved include Linux, CentOS, and FTP.