In: Computer Science
What is the command to view the process?
What is a zombie process & What is the command to take care of zombie process?
Please find the answer below. Let me know if you have any doubt. Please give thumbs up to my answer.
Part1: command to view the process:
To display all running process:
# ps aux | less
To see every process on the Linux system
# ps -A
# ps -e
To see every process except those running as root
# ps -U root -u root -N
To see process run by user specific user (eg. xyz)
# ps -u xyz
Part 2: zombie process
process have an exit status to report to its parent process when a process finishes execution. Due to this, the last tiny bit of information, the process will remain in the operating system’s process table as a zombie process. which will not to be scheduled for further execution, but that it cannot be completely removed until it has been determined that the exit status is no longer needed.
command to take care of zombie process:
kill -s SIGCHLD pid