Multiple choice unix

Which option will be used with ps command to slow the entire command line of the process being run?

  1. -4

  2. -f

  3. -1

  4. -5

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

The -f option provides a full-format listing that displays the complete command line for each process, showing the entire command with all its arguments rather than truncating it. The question likely has a typo where 'slow' should read 'show'.

AI explanation

To answer this question, you need to understand the options that can be used with the ps command.

Let's go through each option to understand why it is correct or incorrect:

Option A) -4 - This option is incorrect because -4 is not a valid option for the ps command.

Option B) -f - This option is correct because the -f option is used with the ps command to provide full-format listing. It displays additional information about each process, including the command line of the process being run.

Option C) -1 - This option is incorrect because -1 is not a valid option for the ps command.

Option D) -5 - This option is incorrect because -5 is not a valid option for the ps command.

The correct answer is Option B) -f. This option is correct because it provides a full-format listing, including the command line of the process being run.