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 append this information into the StatPro.txt file without deleting its content. 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 append this information into the StatPro.txt file without deleting its content. Which of
the following commands will you use to accomplish the task?

A.
ps StatPro.txt

B.
ps >> StatPro.txt

C.
ps | more StatPro.txt

D.
ps > StatPro.txt

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 appends that file.



Leave a Reply 0

Your email address will not be published. Required fields are marked *