TestOut Linux Pro Practice Test

Question: 1 / 400

Which command would you use to find zombie processes on your system?

ps aux | find

ps aux | less

The best command to identify zombie processes on a Linux system involves using the `ps aux` command in combination with a filtering method. The correct approach is to utilize the `grep` utility, which specializes in searching for specific patterns within the output.

Zombie processes are dead processes that have completed execution but still have an entry in the process table, typically due to the parent process not having read the exit status. They are designated with a 'Z' in the STATUS column when you run the command `ps aux`.

Using `ps aux` alone shows all running processes along with their status, but without filtering, it can be overwhelming to sift through that information manually. The correct command would be structured as `ps aux | grep 'Z'` to filter the output specifically for these zombie processes. This means applying `grep` to search for the 'Z' character in the output, giving you a concise result that highlights only the zombie processes you are interested in monitoring or addressing.

Options involving `find`, `less`, and `more` serve different purposes. `find` is used for searching files in a directory hierarchy, while `less` and `more` are pagination tools that help display the output one screen at a time but do not filter the

Get further explanation with Examzify DeepDiveBeta

ps aux | grep

ps aux | more

Next Question

Report this question

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy