CompTIA A+ Core 2 (220-1002) — Question 121
A technician logs on to a Linux computer and runs the following command: ps -aux | grep vi
Which of the following MOST accurately describes the effect of the command?
Answer options
- A. It kills any running programs starting with the letters vi.
- B. It opens a list of directories that start with the letters vi.
- C. It creates a new file named grep in the current working directory.
- D. If finds a list of processes running a text editor.
Correct answer: D
Explanation
The correct answer is D because the command 'ps -aux' lists all running processes, and 'grep vi' filters that list to show only those processes related to 'vi', which is a text editor. Options A, B, and C are incorrect as they misinterpret the function of the command; it does not terminate processes, display directories, or create files.