← Linux// SCRIPTS
System & Processes
How to kill a process in Linux
Stop a process by PID or name with kill, pkill, and killall, including when to use SIGKILL (-9) as a last resort.
How to start, stop, restart, or enable a service with systemctl in Linux
Start, stop, restart, reload, or enable a systemd service with systemctl, and verify the new state.
How to check the status of a service with systemctl in Linux
Check whether a systemd service is running, enabled at boot, and see its recent log lines with systemctl status, is-active, and is-enabled.
How to check system load average and uptime in Linux
Check the load average, uptime, and logged-in users with uptime, /proc/loadavg, and w to gauge how busy a Linux server is.
How to find the top CPU and memory consuming processes in Linux
Find the processes using the most CPU or memory with ps --sort and top, so you can spot what is loading a Linux server.
How to list running processes in Linux
List running processes with ps, including the full command, owner, CPU and memory, using ps -ef and ps aux.