Save the output of the who command in the who.log file and run the following command on your system. What does this command do? Explain your answer. You must have the who.log file in your current directory for the command to work properly.

What will be an ideal response?


uptime | cat - who.log >> system.log

The output of the uptime command and the content of the who.log file are appended to the current contents of the system.log file. (The cat - command can be used to take input from standard input.) If who.log does not exist, the cat command displays the error message cat: cannot open who.log.

Computer Science & Information Technology

You might also like to view...

Which of the following refers to organizations that have been qualified by the PCI Security Standards Council to have their employees assess compliance to the PCI DSS standard?

A) Qualified Security Assessors (QSAs) B) Internal Security Assessors (ISAs) C) Approved Scanning Vendors (ASVs) D) All of the above

Computer Science & Information Technology

After entering a search string, press Enter or click the ________ icon next to the Search box in order to locate information on your search topic

A) small box B) magnifying glass C) question mark D) two overlapped boxes

Computer Science & Information Technology

Flash duration is not important? True or False

Indicate whether the statement is true or false

Computer Science & Information Technology

____________________ are used in specialized fields such as engineering and drafting and usually are very costly.

Fill in the blank(s) with the appropriate word(s).

Computer Science & Information Technology