Multiple choice technology packaged enterprise solutions

With which UNIX command can you find out if the SAP instance is running and also if the database is running?

  1. With the vmstat command

  2. With the ps command

  3. With the ls command

  4. With the jobs command

Reveal answer Fill a bubble to check yourself
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.