With which UNIX command can you find out if the SAP instance is running and also if the database is running?
-
With the vmstat command
-
With the ps command
-
With the ls command
-
With the jobs command
B
Correct answer
Explanation
The 'ps' command in UNIX shows running processes and their status. You can use 'ps -ef | grep ' to check if SAP instance processes are running, and 'ps -ef | grep ' to check database processes. Commands like vmstat show virtual memory statistics, ls lists files, and jobs shows shell background jobs - none of these directly show SAP or database process status.