45.5k views
3 votes
You can type the "ps ax" command to see information about running programs. You want to capture the output of this command to a file named "running-programs.txt". How would you do that?

a. stdout ps ax running-programs.txt
b. ps ax | running-programs.txt
c. ps ax > running-programs.txt
d. ps ax ; running-programs.txt

User Bobwise
by
5.1k points

1 Answer

3 votes

Answer:

Option C i.e., ps ax > running-programs.txt.

Step-by-step explanation:

When the user wanted to store the output of that command that is 'ps as' then he have to write firstly that command use greater than operator after that filename with extension, in other words, ps ax is greater than running-program.txt that is name of the that.

So, the following option that is option c is correct according to the statement.

User Matreshkin
by
4.8k points