Linux Network & Process Management (October 25, 2023)
E02(Linux Network and Process Management) Process ; - a running program that is being executed by the Linux kernel. - each process has its own unique process ID(PID) and its own set of resources, such as memory and CPU time. - PID is the unique identifier given to a process Process state; One of the following states is possible for a process in the system: Running : The program is now being run. Ready : It is prepared to operate but is awaiting CPU time. Sleeping : It is briefly put on hold as it waits for an action or procedure to complete. Stopped : It has been stopped, either by the user or the system. Zombie : The process has finished running, but there is still a record in the process table. Process management ; Ps - report the snapshot of the current process - ps - ps aux - ps aux | grep username - cat /proc/<PID>/status top - display all the information about all the running processes - top - top -u root - ...