Fundamental of Computing Week 10: 16 October to 22 October (Linux Network and Process Management)
Linux Network and Process Management What is a Process? In Linux, a process is a running program. It is a program instance that is being executed by the Linux kernel. Each process has its own unique process ID (PID) and resources like as memory and CPU time. Process ID(PID) is a unique identifier assigned to a process. Process States A system process can be in one of the following states: Running: it is currently running the code. Ready: it is ready to run but is awaiting CPU time. sleeping: it is briefly paused while waiting for some event or procedure to occur. Stopped: it has been stopped by the user or the system. Zombie: the process has finished but there is still an entry in the process table. Process Management The following commands can be used to manage the processes: ps: report the snapshot of current process. top: real time process monitor that displays the information about all running processes. kill: used to stop the process. systemctl: can be used if some services a...