312-97 practice question 34 of 35

(Richard Harris carries an experience of 5 years as a DevSecOps engineer. On February 1, 2022, he got the job of senior DevSecOps engineer in an IT…

Full set: 100 questions
(Richard Harris carries an experience of 5 years as a DevSecOps engineer. On February 1, 2022, he got the job of senior DevSecOps engineer in an IT company located Raleigh, North Carolin a. He would like to trigger scan on each build in Jenkins, run customize scans for some specific vulnerabilities, fail the build process if a particular threat-level is reached, and generate reports automatically by integrating Acunetix DAST Tool with Jenkins. Richard installed Acunetix plugin successfully in Jenkins, after which he restarted Jenkins. He would like to find the path and install the certificate in Linux. Which of the following commands should Richard execute to find out the currently running Java binary in the Jenkins service?.)
Answer options
A: pc - aux | grep Jenkins.
B: as - aux | grep Jenkins.
C: ac - aux | grep Jenkins.
D: ps - aux | grep Jenkins. Correct answer
Correct Answer:
D. ps - aux | grep Jenkins.
Explanation

To identify the running Java binary for the Jenkins service on a Linux system, the ps (process status) command is used. The -aux flags provide a detailed list of all running processes for all users in a user-oriented format. This output is then piped (|) to the grep command, which filters the results to show only the lines containing the string "Jenkins". This allows the user to isolate the Jenkins process and inspect its details, including the full path to the Java executable that is running it. This is a standard administrative procedure for process inspection on Unix-like operating systems.

Why Incorrect

A. pc is not a standard Linux command for listing processes. The correct command is ps.
B. as is the GNU assembler and is not used for listing running system processes.
C. ac is a command that prints statistics about user connect time, not for listing active processes.

References

1. Sobell, M. G. (2012). A Practical Guide to Linux Commands, Editors, and Shell Programming. Prentice Hall. Chapter 11: The Process, Section: "Displaying a List of Processes with ps", pp. 413-418. (Demonstrates usage of ps -aux).

2. Massachusetts Institute of Technology (MIT) OpenCourseWare. (2016). 6.828: Operating System Engineering. Lecture 2: Shell & System Calls. The course materials cover fundamental shell commands including ps and grep for process management.

3. The Linux man-pages project. (2021). ps(1) — Linux manual page. Retrieved from https://man7.org/linux/man-pages/man1/ps.1.html. Section: "EXAMPLES". (Provides examples of ps aux).

Scroll to Top