Monitoring Processes
Define Process. Its Principle
Controlling Job
Getting ready
$ vagrant up
$ vagrant ssh
How to do it
From the man page ps, it report a snapshot of the current processes.
$ ps -ax
$ ps -aux
$ ps -ef
How it work
Background and Foreground process
Getting ready
$ vagrant up
$ vagrant ssh
How to do it
From the man pages bg, it background process
$ gedit *press CTRL+Z*
$ bg %1
$ fg %1
How it work
Killing Process
Getting ready
$ vagrant up
$ vagrant ssh
How to do it
From man pages kill, it terminate a process
check jobs process
$ jobs
Kill the process specifying by the command
$ kill -l
$ kill -TERM <pid>
$ kill -SIGTERM <pid>
$ kill -15 <pid>
$ kill -9 <pid>
search for PID
$ ps -ef |grep gedit
$ kill -9 %1
How it work
Real-time process monitoring**
Getting ready
$ vagrant up
$ vagrant ssh
How to do it
From the man pages top, it display Linux processes
$ top
How it work
Usage memory
Getting ready
$ vagrant up
$ vagrant ssh
How to do it
From the man pages free, it Display amount of free and used memory in the system.
$ free
Display for megabyte
$ free -m
How it work
CPU Details
Getting ready
$ vagrant up
$ vagrant ssh
How to do it
From the man pages lscpu, it display information about the CPU architecture.
$ lscpu