简介
在这个实验中,你将学习用于管理和监控进程的基础 Linux 技能。你将探索如何使用 ps aux 命令列出系统上所有正在运行的进程,该命令会提供当前进程的快照,并包含用户、PID、CPU 和内存使用情况等详细信息。
此外,你将了解如何使用 pgrep 命令高效地查找特定进程,并通过使用 top 命令深入了解实时进程活动和资源消耗情况。这些技术对于系统管理、故障排除和理解系统性能至关重要。
Skills Graph
%%%%{init: {'theme':'neutral'}}%%%%
flowchart RL
linux(("Linux")) -.-> linux/ProcessManagementandControlGroup(["Process Management and Control"])
linux(("Linux")) -.-> linux/SystemInformationandMonitoringGroup(["System Information and Monitoring"])
linux/ProcessManagementandControlGroup -.-> linux/kill("Process Terminating")
linux/ProcessManagementandControlGroup -.-> linux/pkill("Pattern-Based Killing")
linux/SystemInformationandMonitoringGroup -.-> linux/ps("Process Displaying")
linux/SystemInformationandMonitoringGroup -.-> linux/top("Task Displaying")
subgraph Lab Skills
linux/kill -.-> lab-558747{{"如何在 Linux 中检查进程是否正在运行"}}
linux/pkill -.-> lab-558747{{"如何在 Linux 中检查进程是否正在运行"}}
linux/ps -.-> lab-558747{{"如何在 Linux 中检查进程是否正在运行"}}
linux/top -.-> lab-558747{{"如何在 Linux 中检查进程是否正在运行"}}
end