From cd473e32a0eb837402b5eb0e9a4a558695ff1ec3 Mon Sep 17 00:00:00 2001 From: Chethan Date: Sat, 10 May 2025 16:12:00 +0530 Subject: [PATCH 1/2] Update README.md --- 07-process-management/README.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/07-process-management/README.md b/07-process-management/README.md index e3bbec7..cccfae4 100644 --- a/07-process-management/README.md +++ b/07-process-management/README.md @@ -168,3 +168,18 @@ systemctl enable service-name ## Conclusion Process management is crucial for system performance and stability. By using tools like `ps`, `top`, `htop`, `kill`, and `nice`, you can efficiently control and monitor Linux processes. + + +1. What is the difference between "ps aux" and "ps -ef" ? + +Ans: The "ps aux" shows you the memory utilisation it helps in knowing the memory utility of the process, but "ps -ef" does not show you the memory utilisation. + +2. What is the difference between "kill" and "kill -9" ? + +Ans: "kill" is used to remove the process and "kill -9" is used to forcefully remove the process. + +3. What is the difference between "service" and "process"? And can you convert a service into a process? + +Ans: A "process" is an active instance of a program, whereas a "service" is a special type of process running in the background, and it starts at the time of booting of the server. + +Yes you can convert a process into service but applications nowdays installation scripts such as application server and websever are starting thier application as processes. From 00f298d1211ac7209eeaea65ec555cddbdfc5ff2 Mon Sep 17 00:00:00 2001 From: Chethan Date: Sat, 10 May 2025 16:13:50 +0530 Subject: [PATCH 2/2] Update README.md --- 07-process-management/README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/07-process-management/README.md b/07-process-management/README.md index cccfae4..633cc6a 100644 --- a/07-process-management/README.md +++ b/07-process-management/README.md @@ -170,11 +170,11 @@ systemctl enable service-name Process management is crucial for system performance and stability. By using tools like `ps`, `top`, `htop`, `kill`, and `nice`, you can efficiently control and monitor Linux processes. -1. What is the difference between "ps aux" and "ps -ef" ? +1. What is the difference between "ps aux" and "ps -ef"? Ans: The "ps aux" shows you the memory utilisation it helps in knowing the memory utility of the process, but "ps -ef" does not show you the memory utilisation. -2. What is the difference between "kill" and "kill -9" ? +2. What is the difference between "kill" and "kill -9"? Ans: "kill" is used to remove the process and "kill -9" is used to forcefully remove the process. @@ -182,4 +182,4 @@ Ans: "kill" is used to remove the process and "kill -9" is used to forcefully re Ans: A "process" is an active instance of a program, whereas a "service" is a special type of process running in the background, and it starts at the time of booting of the server. -Yes you can convert a process into service but applications nowdays installation scripts such as application server and websever are starting thier application as processes. +Yes you can convert a process into a service, but nowadays installation scripts such as application server and web server are starting thier application as processes.