Processes and resources
On This Lesson 4 topics
This lesson is planned. The outline below lists the topics it will cover. The full lesson has not been published yet.
In this lesson
see what is running and how much it uses, and stop it safely.
Planned topics
- A process is a running program with a PID (process id).
ps auxlists processes;topshows live use of CPU and memory.free -hshows memory;df -hshows disk space;du -sh *shows folder sizes.kill PIDasks politely (SIGTERM);kill -9 PIDforces (SIGKILL) and should be a last resort.- A full disk or out-of-memory state is a common cause of "the app just died".
Draft outline details
Demonstration
ps aux | grep java
free -h
df -h
kill 4242Check your understanding
Which command shows free disk space?
Show answer
df -h.
Practice
Apply this lesson with the module's lab, exercises and quiz.
Marking a lesson complete is optional and you can undo it any time. Your progress stays in this browser.