PrepAway - Latest Free Exam Questions & Answers

Which of the following commands will you use to accomplish the task?

You work as a Network Administrator for Perfect Solutions Inc. The company has a Linux-based
network. You want to view the status of the current processes running on a Linux computer. You
also want to save the output to the ProStat.txt file. Which of the following commands will you use
to accomplish the task?

PrepAway - Latest Free Exam Questions & Answers

A.
ps < ProStat.txt

B.
ps | ProStat.txt

C.
ps > ProStat.txt

D.
ps

Explanation:

The ps command reports the status of processes that are currently running on a Linux computer.
What is > command?
The > command is used for storing the output generated by different commands. It creates a file
specified to store the output. If the specified file already exists, it overwrites that file.


Leave a Reply